Package org.lwjgl.vulkan
Class VkPhysicalDeviceMultiDrawPropertiesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceMultiDrawPropertiesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceMultiDrawPropertiesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing multidraw limits of an implementation.Description
If the
VkPhysicalDeviceMultiDrawPropertiesPropertiesEXTstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT
Layout
struct VkPhysicalDeviceMultiDrawPropertiesEXT { VkStructureType sType; void * pNext; uint32_tmaxMultiDrawCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceMultiDrawPropertiesEXT.BufferAn array ofVkPhysicalDeviceMultiDrawPropertiesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXMULTIDRAWCOUNT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceMultiDrawPropertiesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceMultiDrawPropertiesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceMultiDrawPropertiesEXTcalloc()Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMultiDrawPropertiesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMultiDrawPropertiesEXTcreate()Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceMultiDrawPropertiesEXTcreate(long address)Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance for the specified memory address.static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceMultiDrawPropertiesEXTcreateSafe(long address)static VkPhysicalDeviceMultiDrawPropertiesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceMultiDrawPropertiesEXTmalloc()Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceMultiDrawPropertiesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated on the specifiedMemoryStack.intmaxMultiDrawCount()indicates the maximum number of draw calls which can be batched into a single multidraw.static intnmaxMultiDrawCount(long struct)Unsafe version ofmaxMultiDrawCount().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()VkPhysicalDeviceMultiDrawPropertiesEXTpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceMultiDrawPropertiesEXTset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceMultiDrawPropertiesEXTset(VkPhysicalDeviceMultiDrawPropertiesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()VkPhysicalDeviceMultiDrawPropertiesEXTsType(int value)Sets the specified value to thesTypefield.VkPhysicalDeviceMultiDrawPropertiesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXTvalue to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceMultiDrawPropertiesEXT
public VkPhysicalDeviceMultiDrawPropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMultiDrawPropertiesEXTinstance 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 the
sTypefield.
-
pNext
public long pNext()
- Returns:
- the value of the
pNextfield.
-
maxMultiDrawCount
public int maxMultiDrawCount()
indicates the maximum number of draw calls which can be batched into a single multidraw.
-
sType
public VkPhysicalDeviceMultiDrawPropertiesEXT sType(int value)
Sets the specified value to thesTypefield.
-
sType$Default
public VkPhysicalDeviceMultiDrawPropertiesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXTvalue to thesTypefield.
-
pNext
public VkPhysicalDeviceMultiDrawPropertiesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
set
public VkPhysicalDeviceMultiDrawPropertiesEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceMultiDrawPropertiesEXT set(VkPhysicalDeviceMultiDrawPropertiesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceMultiDrawPropertiesEXT malloc()
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceMultiDrawPropertiesEXT calloc()
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceMultiDrawPropertiesEXT create()
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceMultiDrawPropertiesEXT create(long address)
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceMultiDrawPropertiesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceMultiDrawPropertiesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceMultiDrawPropertiesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMultiDrawPropertiesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiDrawPropertiesEXT.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().
-
nmaxMultiDrawCount
public static int nmaxMultiDrawCount(long struct)
Unsafe version ofmaxMultiDrawCount().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-