Package org.lwjgl.vulkan
Class VkImageViewASTCDecodeModeEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageViewASTCDecodeModeEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageViewASTCDecodeModeEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the ASTC decode mode for an image view.Valid Usage
decodeModemust be one ofFORMAT_R16G16B16A16_SFLOAT,FORMAT_R8G8B8A8_UNORM, orFORMAT_E5B9G9R9_UFLOAT_PACK32- If the
decodeModeSharedExponentfeature is not enabled,decodeModemust not beFORMAT_E5B9G9R9_UFLOAT_PACK32 - If
decodeModeisFORMAT_R8G8B8A8_UNORMthe image view must not include blocks using any of the ASTC HDR modes formatof the image view must be one ofFORMAT_ASTC_4x4_UNORM_BLOCK,FORMAT_ASTC_4x4_SRGB_BLOCK,FORMAT_ASTC_5x4_UNORM_BLOCK,FORMAT_ASTC_5x4_SRGB_BLOCK,FORMAT_ASTC_5x5_UNORM_BLOCK,FORMAT_ASTC_5x5_SRGB_BLOCK,FORMAT_ASTC_6x5_UNORM_BLOCK,FORMAT_ASTC_6x5_SRGB_BLOCK,FORMAT_ASTC_6x6_UNORM_BLOCK,FORMAT_ASTC_6x6_SRGB_BLOCK,FORMAT_ASTC_8x5_UNORM_BLOCK,FORMAT_ASTC_8x5_SRGB_BLOCK,FORMAT_ASTC_8x6_UNORM_BLOCK,FORMAT_ASTC_8x6_SRGB_BLOCK,FORMAT_ASTC_8x8_UNORM_BLOCK,FORMAT_ASTC_8x8_SRGB_BLOCK,FORMAT_ASTC_10x5_UNORM_BLOCK,FORMAT_ASTC_10x5_SRGB_BLOCK,FORMAT_ASTC_10x6_UNORM_BLOCK,FORMAT_ASTC_10x6_SRGB_BLOCK,FORMAT_ASTC_10x8_UNORM_BLOCK,FORMAT_ASTC_10x8_SRGB_BLOCK,FORMAT_ASTC_10x10_UNORM_BLOCK,FORMAT_ASTC_10x10_SRGB_BLOCK,FORMAT_ASTC_12x10_UNORM_BLOCK,FORMAT_ASTC_12x10_SRGB_BLOCK,FORMAT_ASTC_12x12_UNORM_BLOCK, orFORMAT_ASTC_12x12_SRGB_BLOCK
If
formatuses sRGB encoding then thedecodeModehas no effect.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXTdecodeModemust be a validVkFormatvalue
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.decodeMode– the intermediate format used to decode ASTC compressed formats.
Layout
struct VkImageViewASTCDecodeModeEXT { VkStructureType sType; void const * pNext; VkFormat decodeMode; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageViewASTCDecodeModeEXT.BufferAn array ofVkImageViewASTCDecodeModeEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDECODEMODE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageViewASTCDecodeModeEXT(java.nio.ByteBuffer container)Creates aVkImageViewASTCDecodeModeEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageViewASTCDecodeModeEXTcalloc()Returns a newVkImageViewASTCDecodeModeEXTinstance allocated withmemCalloc.static VkImageViewASTCDecodeModeEXT.Buffercalloc(int capacity)Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated withmemCalloc.static VkImageViewASTCDecodeModeEXTcallocStack()Returns a newVkImageViewASTCDecodeModeEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageViewASTCDecodeModeEXT.BuffercallocStack(int capacity)Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageViewASTCDecodeModeEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewASTCDecodeModeEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewASTCDecodeModeEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewASTCDecodeModeEXTcreate()Returns a newVkImageViewASTCDecodeModeEXTinstance allocated withBufferUtils.static VkImageViewASTCDecodeModeEXT.Buffercreate(int capacity)Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated withBufferUtils.static VkImageViewASTCDecodeModeEXTcreate(long address)Returns a newVkImageViewASTCDecodeModeEXTinstance for the specified memory address.static VkImageViewASTCDecodeModeEXT.Buffercreate(long address, int capacity)Create aVkImageViewASTCDecodeModeEXT.Bufferinstance at the specified memory.static VkImageViewASTCDecodeModeEXTcreateSafe(long address)static VkImageViewASTCDecodeModeEXT.BuffercreateSafe(long address, int capacity)intdecodeMode()Returns the value of thedecodeModefield.VkImageViewASTCDecodeModeEXTdecodeMode(int value)Sets the specified value to thedecodeModefield.static VkImageViewASTCDecodeModeEXTmalloc()Returns a newVkImageViewASTCDecodeModeEXTinstance allocated withmemAlloc.static VkImageViewASTCDecodeModeEXT.Buffermalloc(int capacity)Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated withmemAlloc.static VkImageViewASTCDecodeModeEXTmallocStack()Returns a newVkImageViewASTCDecodeModeEXTinstance allocated on the thread-localMemoryStack.static VkImageViewASTCDecodeModeEXT.BuffermallocStack(int capacity)Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkImageViewASTCDecodeModeEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkImageViewASTCDecodeModeEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewASTCDecodeModeEXTinstance allocated on the specifiedMemoryStack.static intndecodeMode(long struct)Unsafe version ofdecodeMode().static voidndecodeMode(long struct, int value)Unsafe version ofdecodeMode.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkImageViewASTCDecodeModeEXTpNext(long value)Sets the specified value to thepNextfield.VkImageViewASTCDecodeModeEXTset(int sType, long pNext, int decodeMode)Initializes this struct with the specified values.VkImageViewASTCDecodeModeEXTset(VkImageViewASTCDecodeModeEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkImageViewASTCDecodeModeEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkImageViewASTCDecodeModeEXT
public VkImageViewASTCDecodeModeEXT(java.nio.ByteBuffer container)
Creates aVkImageViewASTCDecodeModeEXTinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
decodeMode
public int decodeMode()
Returns the value of thedecodeModefield.
-
sType
public VkImageViewASTCDecodeModeEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageViewASTCDecodeModeEXT pNext(long value)
Sets the specified value to thepNextfield.
-
decodeMode
public VkImageViewASTCDecodeModeEXT decodeMode(int value)
Sets the specified value to thedecodeModefield.
-
set
public VkImageViewASTCDecodeModeEXT set(int sType, long pNext, int decodeMode)
Initializes this struct with the specified values.
-
set
public VkImageViewASTCDecodeModeEXT set(VkImageViewASTCDecodeModeEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageViewASTCDecodeModeEXT malloc()
Returns a newVkImageViewASTCDecodeModeEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageViewASTCDecodeModeEXT calloc()
Returns a newVkImageViewASTCDecodeModeEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageViewASTCDecodeModeEXT create()
Returns a newVkImageViewASTCDecodeModeEXTinstance allocated withBufferUtils.
-
create
public static VkImageViewASTCDecodeModeEXT create(long address)
Returns a newVkImageViewASTCDecodeModeEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageViewASTCDecodeModeEXT createSafe(long address)
-
malloc
public static VkImageViewASTCDecodeModeEXT.Buffer malloc(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageViewASTCDecodeModeEXT.Buffer calloc(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewASTCDecodeModeEXT.Buffer create(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewASTCDecodeModeEXT.Buffer create(long address, int capacity)
Create aVkImageViewASTCDecodeModeEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageViewASTCDecodeModeEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageViewASTCDecodeModeEXT mallocStack()
Returns a newVkImageViewASTCDecodeModeEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageViewASTCDecodeModeEXT callocStack()
Returns a newVkImageViewASTCDecodeModeEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageViewASTCDecodeModeEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageViewASTCDecodeModeEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageViewASTCDecodeModeEXT.Buffer mallocStack(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageViewASTCDecodeModeEXT.Buffer callocStack(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageViewASTCDecodeModeEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageViewASTCDecodeModeEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
ndecodeMode
public static int ndecodeMode(long struct)
Unsafe version ofdecodeMode().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ndecodeMode
public static void ndecodeMode(long struct, int value)Unsafe version ofdecodeMode.
-
-