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 of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceVariablePointersFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage
- If
variablePointersis enabled thenvariablePointersStorageBuffermust also be enabled
Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceVariablePointersFeatures { VkStructureTypesType(); void *pNext(); VkBool32variablePointersStorageBuffer(); VkBool32variablePointers(); }
-
-
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 Deprecated 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 VkPhysicalDeviceVariablePointersFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVariablePointersFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVariablePointersFeaturescallocStack()Deprecated.static VkPhysicalDeviceVariablePointersFeatures.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceVariablePointersFeatures.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceVariablePointersFeaturescallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkPhysicalDeviceVariablePointersFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVariablePointersFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceVariablePointersFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceVariablePointersFeaturesmallocStack()Deprecated.static VkPhysicalDeviceVariablePointersFeatures.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceVariablePointersFeatures.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceVariablePointersFeaturesmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceVariablePointersFeaturespNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkPhysicalDeviceVariablePointersFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceVariablePointersFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURESvalue to thesType()field.booleanvariablePointers()specifies whether the implementation supports the SPIR-VVariablePointerscapability.VkPhysicalDeviceVariablePointersFeaturesvariablePointers(boolean value)Sets the specified value to thevariablePointers()field.booleanvariablePointersStorageBuffer()specifies whether the implementation supports the SPIR-VVariablePointersStorageBuffercapability.VkPhysicalDeviceVariablePointersFeaturesvariablePointersStorageBuffer(boolean value)Sets the specified value to thevariablePointersStorageBuffer()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
variablePointersStorageBuffer
public boolean 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
public boolean variablePointers()
specifies whether the implementation supports the SPIR-VVariablePointerscapability. When this feature is not enabled, shader modules must not declare theVariablePointerscapability.
-
sType
public VkPhysicalDeviceVariablePointersFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceVariablePointersFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceVariablePointersFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
variablePointersStorageBuffer
public VkPhysicalDeviceVariablePointersFeatures variablePointersStorageBuffer(boolean value)
Sets the specified value to thevariablePointersStorageBuffer()field.
-
variablePointers
public VkPhysicalDeviceVariablePointersFeatures variablePointers(boolean value)
Sets the specified value to thevariablePointers()field.
-
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
@Deprecated public static VkPhysicalDeviceVariablePointersFeatures mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceVariablePointersFeatures callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceVariablePointersFeatures mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceVariablePointersFeatures callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceVariablePointersFeatures.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceVariablePointersFeatures.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceVariablePointersFeatures.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceVariablePointersFeatures.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceVariablePointersFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVariablePointersFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceVariablePointersFeatures calloc(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
-
malloc
public static VkPhysicalDeviceVariablePointersFeatures.Buffer malloc(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
-
calloc
public static VkPhysicalDeviceVariablePointersFeatures.Buffer calloc(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.
-
-