public class VkImageViewASTCDecodeModeEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
decodeMode must be one of FORMAT_R16G16B16A16_SFLOAT, FORMAT_R8G8B8A8_UNORM, or FORMAT_E5B9G9R9_UFLOAT_PACK32decodeModeSharedExponent feature is not enabled, decodeMode must not be FORMAT_E5B9G9R9_UFLOAT_PACK32decodeMode is FORMAT_R8G8B8A8_UNORM the image view must not include blocks using any of the ASTC HDR modesformat of the image view must be one of FORMAT_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, or FORMAT_ASTC_12x12_SRGB_BLOCKIf format uses sRGB encoding then the decodeMode has no effect.
sType must be STRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXTdecodeMode must be a valid VkFormat valuesType – 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.
struct VkImageViewASTCDecodeModeEXT {
VkStructureType sType;
void const * pNext;
VkFormat decodeMode;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageViewASTCDecodeModeEXT.Buffer
An array of
VkImageViewASTCDecodeModeEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DECODEMODE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageViewASTCDecodeModeEXT(java.nio.ByteBuffer container)
Creates a
VkImageViewASTCDecodeModeEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageViewASTCDecodeModeEXT |
calloc()
Returns a new
VkImageViewASTCDecodeModeEXT instance allocated with memCalloc. |
static VkImageViewASTCDecodeModeEXT.Buffer |
calloc(int capacity)
Returns a new
VkImageViewASTCDecodeModeEXT.Buffer instance allocated with memCalloc. |
static VkImageViewASTCDecodeModeEXT |
callocStack()
Returns a new
VkImageViewASTCDecodeModeEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageViewASTCDecodeModeEXT.Buffer |
callocStack(int capacity)
Returns a new
VkImageViewASTCDecodeModeEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageViewASTCDecodeModeEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewASTCDecodeModeEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageViewASTCDecodeModeEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewASTCDecodeModeEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageViewASTCDecodeModeEXT |
create()
Returns a new
VkImageViewASTCDecodeModeEXT instance allocated with BufferUtils. |
static VkImageViewASTCDecodeModeEXT.Buffer |
create(int capacity)
Returns a new
VkImageViewASTCDecodeModeEXT.Buffer instance allocated with BufferUtils. |
static VkImageViewASTCDecodeModeEXT |
create(long address)
Returns a new
VkImageViewASTCDecodeModeEXT instance for the specified memory address. |
static VkImageViewASTCDecodeModeEXT.Buffer |
create(long address,
int capacity)
Create a
VkImageViewASTCDecodeModeEXT.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 the
decodeMode field. |
VkImageViewASTCDecodeModeEXT |
decodeMode(int value)
Sets the specified value to the
decodeMode field. |
static VkImageViewASTCDecodeModeEXT |
malloc()
Returns a new
VkImageViewASTCDecodeModeEXT instance allocated with memAlloc. |
static VkImageViewASTCDecodeModeEXT.Buffer |
malloc(int capacity)
Returns a new
VkImageViewASTCDecodeModeEXT.Buffer instance allocated with memAlloc. |
static VkImageViewASTCDecodeModeEXT |
mallocStack()
Returns a new
VkImageViewASTCDecodeModeEXT instance allocated on the thread-local MemoryStack. |
static VkImageViewASTCDecodeModeEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkImageViewASTCDecodeModeEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageViewASTCDecodeModeEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewASTCDecodeModeEXT.Buffer instance allocated on the specified MemoryStack. |
static VkImageViewASTCDecodeModeEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewASTCDecodeModeEXT instance allocated on the specified MemoryStack. |
static int |
ndecodeMode(long struct)
Unsafe version of
decodeMode(). |
static void |
ndecodeMode(long struct,
int value)
Unsafe version of
decodeMode. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkImageViewASTCDecodeModeEXT |
pNext(long value)
Sets the specified value to the
pNext 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 the
sType field. |
VkImageViewASTCDecodeModeEXT |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int DECODEMODE
public VkImageViewASTCDecodeModeEXT(java.nio.ByteBuffer container)
VkImageViewASTCDecodeModeEXT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int decodeMode()
decodeMode field.public VkImageViewASTCDecodeModeEXT sType(int value)
sType field.public VkImageViewASTCDecodeModeEXT pNext(long value)
pNext field.public VkImageViewASTCDecodeModeEXT decodeMode(int value)
decodeMode field.public VkImageViewASTCDecodeModeEXT set(int sType, long pNext, int decodeMode)
public VkImageViewASTCDecodeModeEXT set(VkImageViewASTCDecodeModeEXT src)
src - the source structpublic static VkImageViewASTCDecodeModeEXT malloc()
VkImageViewASTCDecodeModeEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageViewASTCDecodeModeEXT calloc()
VkImageViewASTCDecodeModeEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageViewASTCDecodeModeEXT create()
VkImageViewASTCDecodeModeEXT instance allocated with BufferUtils.public static VkImageViewASTCDecodeModeEXT create(long address)
VkImageViewASTCDecodeModeEXT instance for the specified memory address.@Nullable public static VkImageViewASTCDecodeModeEXT createSafe(long address)
public static VkImageViewASTCDecodeModeEXT.Buffer malloc(int capacity)
VkImageViewASTCDecodeModeEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageViewASTCDecodeModeEXT.Buffer calloc(int capacity)
VkImageViewASTCDecodeModeEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageViewASTCDecodeModeEXT.Buffer create(int capacity)
VkImageViewASTCDecodeModeEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageViewASTCDecodeModeEXT.Buffer create(long address, int capacity)
VkImageViewASTCDecodeModeEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageViewASTCDecodeModeEXT.Buffer createSafe(long address, int capacity)
public static VkImageViewASTCDecodeModeEXT mallocStack()
VkImageViewASTCDecodeModeEXT instance allocated on the thread-local MemoryStack.public static VkImageViewASTCDecodeModeEXT callocStack()
VkImageViewASTCDecodeModeEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageViewASTCDecodeModeEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageViewASTCDecodeModeEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageViewASTCDecodeModeEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkImageViewASTCDecodeModeEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageViewASTCDecodeModeEXT.Buffer mallocStack(int capacity)
VkImageViewASTCDecodeModeEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageViewASTCDecodeModeEXT.Buffer callocStack(int capacity)
VkImageViewASTCDecodeModeEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageViewASTCDecodeModeEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageViewASTCDecodeModeEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageViewASTCDecodeModeEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageViewASTCDecodeModeEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int ndecodeMode(long struct)
decodeMode().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndecodeMode(long struct,
int value)
decodeMode.Copyright LWJGL. All Rights Reserved. License terms.