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.NativeResource
Structure describing the ASTC decode mode for an image view.Valid Usage
decodeMode
must be one ofFORMAT_R16G16B16A16_SFLOAT
,FORMAT_R8G8B8A8_UNORM
, orFORMAT_E5B9G9R9_UFLOAT_PACK32
- If the
decodeModeSharedExponent
feature is not enabled,decodeMode
must not beFORMAT_E5B9G9R9_UFLOAT_PACK32
- If
decodeMode
isFORMAT_R8G8B8A8_UNORM
the image view must not include blocks using any of the ASTC HDR modes format
of 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
format
uses sRGB encoding then thedecodeMode
has no effect.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXT
decodeMode
must be a validVkFormat
value
Member documentation
sType
– the type of this structure.pNext
–NULL
or 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 class
VkImageViewASTCDecodeModeEXT.Buffer
An array ofVkImageViewASTCDecodeModeEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DECODEMODE
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageViewASTCDecodeModeEXT(java.nio.ByteBuffer container)
Creates aVkImageViewASTCDecodeModeEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageViewASTCDecodeModeEXT
calloc()
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated withmemCalloc
.static VkImageViewASTCDecodeModeEXT.Buffer
calloc(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated withmemCalloc
.static VkImageViewASTCDecodeModeEXT
callocStack()
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageViewASTCDecodeModeEXT.Buffer
callocStack(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageViewASTCDecodeModeEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageViewASTCDecodeModeEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageViewASTCDecodeModeEXT
create()
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated withBufferUtils
.static VkImageViewASTCDecodeModeEXT.Buffer
create(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated withBufferUtils
.static VkImageViewASTCDecodeModeEXT
create(long address)
Returns a newVkImageViewASTCDecodeModeEXT
instance for the specified memory address.static VkImageViewASTCDecodeModeEXT.Buffer
create(long address, int capacity)
Create aVkImageViewASTCDecodeModeEXT.Buffer
instance at the specified memory.static VkImageViewASTCDecodeModeEXT
createSafe(long address)
static VkImageViewASTCDecodeModeEXT.Buffer
createSafe(long address, int capacity)
int
decodeMode()
Returns the value of thedecodeMode
field.VkImageViewASTCDecodeModeEXT
decodeMode(int value)
Sets the specified value to thedecodeMode
field.static VkImageViewASTCDecodeModeEXT
malloc()
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated withmemAlloc
.static VkImageViewASTCDecodeModeEXT.Buffer
malloc(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated withmemAlloc
.static VkImageViewASTCDecodeModeEXT
mallocStack()
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated on the thread-localMemoryStack
.static VkImageViewASTCDecodeModeEXT.Buffer
mallocStack(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkImageViewASTCDecodeModeEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageViewASTCDecodeModeEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated on the specifiedMemoryStack
.static int
ndecodeMode(long struct)
Unsafe version ofdecodeMode()
.static void
ndecodeMode(long struct, int value)
Unsafe version ofdecodeMode
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkImageViewASTCDecodeModeEXT
pNext(long value)
Sets the specified value to thepNext
field.VkImageViewASTCDecodeModeEXT
set(int sType, long pNext, int decodeMode)
Initializes this struct with the specified values.VkImageViewASTCDecodeModeEXT
set(VkImageViewASTCDecodeModeEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkImageViewASTCDecodeModeEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkImageViewASTCDecodeModeEXT
public VkImageViewASTCDecodeModeEXT(java.nio.ByteBuffer container)
Creates aVkImageViewASTCDecodeModeEXT
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
decodeMode
public int decodeMode()
Returns the value of thedecodeMode
field.
-
sType
public VkImageViewASTCDecodeModeEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkImageViewASTCDecodeModeEXT pNext(long value)
Sets the specified value to thepNext
field.
-
decodeMode
public VkImageViewASTCDecodeModeEXT decodeMode(int value)
Sets the specified value to thedecodeMode
field.
-
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 newVkImageViewASTCDecodeModeEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkImageViewASTCDecodeModeEXT calloc()
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkImageViewASTCDecodeModeEXT create()
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated withBufferUtils
.
-
create
public static VkImageViewASTCDecodeModeEXT create(long address)
Returns a newVkImageViewASTCDecodeModeEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkImageViewASTCDecodeModeEXT createSafe(long address)
-
malloc
public static VkImageViewASTCDecodeModeEXT.Buffer malloc(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkImageViewASTCDecodeModeEXT.Buffer calloc(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageViewASTCDecodeModeEXT.Buffer create(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageViewASTCDecodeModeEXT.Buffer create(long address, int capacity)
Create aVkImageViewASTCDecodeModeEXT.Buffer
instance 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 newVkImageViewASTCDecodeModeEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkImageViewASTCDecodeModeEXT callocStack()
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkImageViewASTCDecodeModeEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkImageViewASTCDecodeModeEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewASTCDecodeModeEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkImageViewASTCDecodeModeEXT.Buffer callocStack(int capacity)
Returns a newVkImageViewASTCDecodeModeEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-