Package org.lwjgl.vulkan
Class VkPhysicalDeviceASTCDecodeFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceASTCDecodeFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceASTCDecodeFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing ASTC decode mode features.Description
If the
VkPhysicalDeviceASTCDecodeFeaturesEXT
structure is included in thepNext
chain ofVkPhysicalDeviceFeatures2
, it is filled with values indicating whether each feature is supported.VkPhysicalDeviceASTCDecodeFeaturesEXT
can also be used in thepNext
chain ofCreateDevice
to enable features.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT
Member documentation
decodeModeSharedExponent
– indicates whether the implementation supports decoding ASTC compressed formats toFORMAT_E5B9G9R9_UFLOAT_PACK32
internal precision.
Layout
struct VkPhysicalDeviceASTCDecodeFeaturesEXT { VkStructureType sType; void * pNext; VkBool32 decodeModeSharedExponent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
An array ofVkPhysicalDeviceASTCDecodeFeaturesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DECODEMODESHAREDEXPONENT
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceASTCDecodeFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceASTCDecodeFeaturesEXT
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 VkPhysicalDeviceASTCDecodeFeaturesEXT
calloc()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated withmemCalloc
.static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceASTCDecodeFeaturesEXT
callocStack()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceASTCDecodeFeaturesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceASTCDecodeFeaturesEXT
create()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated withBufferUtils
.static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceASTCDecodeFeaturesEXT
create(long address)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance for the specified memory address.static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance at the specified memory.static VkPhysicalDeviceASTCDecodeFeaturesEXT
createSafe(long address)
static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
createSafe(long address, int capacity)
boolean
decodeModeSharedExponent()
Returns the value of thedecodeModeSharedExponent
field.VkPhysicalDeviceASTCDecodeFeaturesEXT
decodeModeSharedExponent(boolean value)
Sets the specified value to thedecodeModeSharedExponent
field.static VkPhysicalDeviceASTCDecodeFeaturesEXT
malloc()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated withmemAlloc
.static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceASTCDecodeFeaturesEXT
mallocStack()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceASTCDecodeFeaturesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated on the specifiedMemoryStack
.static int
ndecodeModeSharedExponent(long struct)
Unsafe version ofdecodeModeSharedExponent()
.static void
ndecodeModeSharedExponent(long struct, int value)
Unsafe version ofdecodeModeSharedExponent
.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.VkPhysicalDeviceASTCDecodeFeaturesEXT
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceASTCDecodeFeaturesEXT
set(int sType, long pNext, boolean decodeModeSharedExponent)
Initializes this struct with the specified values.VkPhysicalDeviceASTCDecodeFeaturesEXT
set(VkPhysicalDeviceASTCDecodeFeaturesEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceASTCDecodeFeaturesEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceASTCDecodeFeaturesEXT
public VkPhysicalDeviceASTCDecodeFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceASTCDecodeFeaturesEXT
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.
-
decodeModeSharedExponent
public boolean decodeModeSharedExponent()
Returns the value of thedecodeModeSharedExponent
field.
-
sType
public VkPhysicalDeviceASTCDecodeFeaturesEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceASTCDecodeFeaturesEXT pNext(long value)
Sets the specified value to thepNext
field.
-
decodeModeSharedExponent
public VkPhysicalDeviceASTCDecodeFeaturesEXT decodeModeSharedExponent(boolean value)
Sets the specified value to thedecodeModeSharedExponent
field.
-
set
public VkPhysicalDeviceASTCDecodeFeaturesEXT set(int sType, long pNext, boolean decodeModeSharedExponent)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceASTCDecodeFeaturesEXT set(VkPhysicalDeviceASTCDecodeFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceASTCDecodeFeaturesEXT malloc()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceASTCDecodeFeaturesEXT calloc()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceASTCDecodeFeaturesEXT create()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceASTCDecodeFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceASTCDecodeFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceASTCDecodeFeaturesEXT mallocStack()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceASTCDecodeFeaturesEXT callocStack()
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceASTCDecodeFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceASTCDecodeFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceASTCDecodeFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceASTCDecodeFeaturesEXT.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()
.
-
ndecodeModeSharedExponent
public static int ndecodeModeSharedExponent(long struct)
Unsafe version ofdecodeModeSharedExponent()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
ndecodeModeSharedExponent
public static void ndecodeModeSharedExponent(long struct, int value)
Unsafe version ofdecodeModeSharedExponent
.
-
-