Package org.lwjgl.vulkan
Class VkPhysicalDeviceVariablePointersFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceVariablePointersFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceVariablePointerFeatures,VkPhysicalDeviceVariablePointerFeaturesKHR,VkPhysicalDeviceVariablePointersFeaturesKHR
public class VkPhysicalDeviceVariablePointersFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing variable pointers features that can be supported by an implementation.Description
If the
VkPhysicalDeviceVariablePointersFeaturesstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with values indicating whether each feature is supported.VkPhysicalDeviceVariablePointersFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto enable the features.Valid Usage
- If
variablePointersis enabled thenvariablePointersStorageBuffermust also be enabled.
Valid Usage (Implicit)
Member documentation
variablePointersStorageBuffer– specifies whether the implementation supports the SPIR-VVariablePointersStorageBuffercapability. When this feature is not enabled, shader modules must not declare theSPV_KHR_variable_pointersextension or theVariablePointersStorageBuffercapability.variablePointers– specifies whether the implementation supports the SPIR-VVariablePointerscapability. When this feature is not enabled, shader modules must not declare theVariablePointerscapability.
Layout
struct VkPhysicalDeviceVariablePointersFeatures { VkStructureType sType; void * pNext; VkBool32 variablePointersStorageBuffer; VkBool32 variablePointers; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceVariablePointersFeatures.BufferAn array ofVkPhysicalDeviceVariablePointersFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VARIABLEPOINTERS
VARIABLEPOINTERSSTORAGEBUFFERThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceVariablePointersFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceVariablePointersFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceVariablePointersFeaturescalloc()Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceVariablePointersFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceVariablePointersFeaturescallocStack()Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVariablePointersFeatures.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVariablePointersFeatures.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVariablePointersFeaturescallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVariablePointersFeaturescreate()Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceVariablePointersFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceVariablePointersFeaturescreate(long address)Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance for the specified memory address.static VkPhysicalDeviceVariablePointersFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceVariablePointersFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceVariablePointersFeaturescreateSafe(long address)static VkPhysicalDeviceVariablePointersFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceVariablePointersFeaturesmalloc()Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceVariablePointersFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceVariablePointersFeaturesmallocStack()Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceVariablePointersFeatures.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceVariablePointersFeatures.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceVariablePointersFeaturesmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the specifiedMemoryStack.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.static intnvariablePointers(long struct)Unsafe version ofvariablePointers().static voidnvariablePointers(long struct, int value)Unsafe version ofvariablePointers.static intnvariablePointersStorageBuffer(long struct)Unsafe version ofvariablePointersStorageBuffer().static voidnvariablePointersStorageBuffer(long struct, int value)Unsafe version ofvariablePointersStorageBuffer.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceVariablePointersFeaturespNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceVariablePointersFeaturesset(int sType, long pNext, boolean variablePointersStorageBuffer, boolean variablePointers)Initializes this struct with the specified values.VkPhysicalDeviceVariablePointersFeaturesset(VkPhysicalDeviceVariablePointersFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceVariablePointersFeaturessType(int value)Sets the specified value to thesTypefield.booleanvariablePointers()Returns the value of thevariablePointersfield.VkPhysicalDeviceVariablePointersFeaturesvariablePointers(boolean value)Sets the specified value to thevariablePointersfield.booleanvariablePointersStorageBuffer()Returns the value of thevariablePointersStorageBufferfield.VkPhysicalDeviceVariablePointersFeaturesvariablePointersStorageBuffer(boolean value)Sets the specified value to thevariablePointersStorageBufferfield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceVariablePointersFeatures
public VkPhysicalDeviceVariablePointersFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceVariablePointersFeaturesinstance 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.
-
variablePointersStorageBuffer
public boolean variablePointersStorageBuffer()
Returns the value of thevariablePointersStorageBufferfield.
-
variablePointers
public boolean variablePointers()
Returns the value of thevariablePointersfield.
-
sType
public VkPhysicalDeviceVariablePointersFeatures sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceVariablePointersFeatures pNext(long value)
Sets the specified value to thepNextfield.
-
variablePointersStorageBuffer
public VkPhysicalDeviceVariablePointersFeatures variablePointersStorageBuffer(boolean value)
Sets the specified value to thevariablePointersStorageBufferfield.
-
variablePointers
public VkPhysicalDeviceVariablePointersFeatures variablePointers(boolean value)
Sets the specified value to thevariablePointersfield.
-
set
public VkPhysicalDeviceVariablePointersFeatures set(int sType, long pNext, boolean variablePointersStorageBuffer, boolean variablePointers)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceVariablePointersFeatures set(VkPhysicalDeviceVariablePointersFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceVariablePointersFeatures malloc()
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceVariablePointersFeatures calloc()
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceVariablePointersFeatures create()
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceVariablePointersFeatures create(long address)
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceVariablePointersFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceVariablePointersFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceVariablePointersFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceVariablePointersFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceVariablePointersFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceVariablePointersFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceVariablePointersFeatures.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceVariablePointersFeatures mallocStack()
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceVariablePointersFeatures callocStack()
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceVariablePointersFeatures mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceVariablePointersFeatures callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceVariablePointersFeatures.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceVariablePointersFeatures.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceVariablePointersFeatures.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceVariablePointersFeatures.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVariablePointersFeatures.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().
-
nvariablePointersStorageBuffer
public static int nvariablePointersStorageBuffer(long struct)
Unsafe version ofvariablePointersStorageBuffer().
-
nvariablePointers
public static int nvariablePointers(long struct)
Unsafe version ofvariablePointers().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nvariablePointersStorageBuffer
public static void nvariablePointersStorageBuffer(long struct, int value)Unsafe version ofvariablePointersStorageBuffer.
-
nvariablePointers
public static void nvariablePointers(long struct, int value)Unsafe version ofvariablePointers.
-
-