Package org.lwjgl.vulkan
Class VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the device-generated commands features that can be supported by an implementation.Description
If the
VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV { VkStructureTypesType(); void *pNext(); VkBool32deviceGeneratedCommands(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.BufferAn array ofVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEVICEGENERATEDCOMMANDS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVcalloc()Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVcreate()Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVcreateSafe(long address)static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.BuffercreateSafe(long address, int capacity)booleandeviceGeneratedCommands()indicates whether the implementation supports functionality to generate commands on the device.VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVdeviceGeneratedCommands(boolean value)Sets the specified value to thedeviceGeneratedCommands()field.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVmalloc()Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated on the specifiedMemoryStack.static intndeviceGeneratedCommands(long struct)Unsafe version ofdeviceGeneratedCommands().static voidndeviceGeneratedCommands(long struct, int value)Unsafe version ofdeviceGeneratedCommands.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.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVset(int sType, long pNext, boolean deviceGeneratedCommands)Initializes this struct with the specified values.VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVset(VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NVvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV
public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance 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.
-
deviceGeneratedCommands
public boolean deviceGeneratedCommands()
indicates whether the implementation supports functionality to generate commands on the device. See Device-Generated Commands.
-
sType
public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NVvalue to thesType()field.
-
pNext
public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV pNext(long value)
Sets the specified value to thepNext()field.
-
deviceGeneratedCommands
public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV deviceGeneratedCommands(boolean value)
Sets the specified value to thedeviceGeneratedCommands()field.
-
set
public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV set(int sType, long pNext, boolean deviceGeneratedCommands)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV set(VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV malloc()
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV calloc()
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV create()
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV create(long address)
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV.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().
-
ndeviceGeneratedCommands
public static int ndeviceGeneratedCommands(long struct)
Unsafe version ofdeviceGeneratedCommands().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ndeviceGeneratedCommands
public static void ndeviceGeneratedCommands(long struct, int value)Unsafe version ofdeviceGeneratedCommands.
-
-