Package org.lwjgl.vulkan
Class VkPhysicalDeviceMultiDrawFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceMultiDrawFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceMultiDrawFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether the implementation supports multi draw functionality.Description
If the
VkPhysicalDeviceMultiDrawFeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceMultiDrawFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT
Layout
struct VkPhysicalDeviceMultiDrawFeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32multiDraw(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceMultiDrawFeaturesEXT.BufferAn array ofVkPhysicalDeviceMultiDrawFeaturesEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceMultiDrawFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceMultiDrawFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceMultiDrawFeaturesEXTcalloc()Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMultiDrawFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMultiDrawFeaturesEXTcreate()Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceMultiDrawFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceMultiDrawFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceMultiDrawFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceMultiDrawFeaturesEXTmalloc()Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceMultiDrawFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated on the specifiedMemoryStack.booleanmultiDraw()indicates that the implementation supportsCmdDrawMultiEXTandCmdDrawMultiIndexedEXT.VkPhysicalDeviceMultiDrawFeaturesEXTmultiDraw(boolean value)Sets the specified value to themultiDraw()field.static intnmultiDraw(long struct)Unsafe version ofmultiDraw().static voidnmultiDraw(long struct, int value)Unsafe version ofmultiDraw.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.VkPhysicalDeviceMultiDrawFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceMultiDrawFeaturesEXTset(int sType, long pNext, boolean multiDraw)Initializes this struct with the specified values.VkPhysicalDeviceMultiDrawFeaturesEXTset(VkPhysicalDeviceMultiDrawFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceMultiDrawFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceMultiDrawFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceMultiDrawFeaturesEXT
public VkPhysicalDeviceMultiDrawFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMultiDrawFeaturesEXTinstance 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.
-
multiDraw
public boolean multiDraw()
indicates that the implementation supportsCmdDrawMultiEXTandCmdDrawMultiIndexedEXT.
-
sType
public VkPhysicalDeviceMultiDrawFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceMultiDrawFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceMultiDrawFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
multiDraw
public VkPhysicalDeviceMultiDrawFeaturesEXT multiDraw(boolean value)
Sets the specified value to themultiDraw()field.
-
set
public VkPhysicalDeviceMultiDrawFeaturesEXT set(int sType, long pNext, boolean multiDraw)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceMultiDrawFeaturesEXT set(VkPhysicalDeviceMultiDrawFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceMultiDrawFeaturesEXT malloc()
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceMultiDrawFeaturesEXT calloc()
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceMultiDrawFeaturesEXT create()
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceMultiDrawFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceMultiDrawFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceMultiDrawFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceMultiDrawFeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMultiDrawFeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiDrawFeaturesEXT.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().
-
nmultiDraw
public static int nmultiDraw(long struct)
Unsafe version ofmultiDraw().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nmultiDraw
public static void nmultiDraw(long struct, int value)Unsafe version ofmultiDraw.
-
-