Package org.lwjgl.vulkan
Class VkIndirectCommandsLayoutTokenNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkIndirectCommandsLayoutTokenNV>
org.lwjgl.vulkan.VkIndirectCommandsLayoutTokenNV
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkIndirectCommandsLayoutTokenNV
extends Struct<VkIndirectCommandsLayoutTokenNV>
implements NativeResource
struct VkIndirectCommandsLayoutTokenNV {
VkStructureType sType;
void const * pNext;
VkIndirectCommandsTokenTypeNV tokenType;
uint32_t stream;
uint32_t offset;
uint32_t vertexBindingUnit;
VkBool32 vertexDynamicStride;
VkPipelineLayout pushconstantPipelineLayout;
VkShaderStageFlags pushconstantShaderStageFlags;
uint32_t pushconstantOffset;
uint32_t pushconstantSize;
VkIndirectStateFlagsNV indirectStateFlags;
uint32_t indexTypeCount;
VkIndexType const * pIndexTypes;
uint32_t const * pIndexTypeValues;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkIndirectCommandsLayoutTokenNV
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkIndirectCommandsLayoutTokenNV
(ByteBuffer container) Creates aVkIndirectCommandsLayoutTokenNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkIndirectCommandsLayoutTokenNV
instance for the specified memory address.create
(long address, int capacity) Create aVkIndirectCommandsLayoutTokenNV.Buffer
instance at the specified memory.static @Nullable VkIndirectCommandsLayoutTokenNV
createSafe
(long address) static @Nullable VkIndirectCommandsLayoutTokenNV.Buffer
createSafe
(long address, int capacity) int
indexTypeCount
(int value) Sets the specified value to theindexTypeCount
field.int
indirectStateFlags
(int value) Sets the specified value to theindirectStateFlags
field.malloc()
Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated on the specifiedMemoryStack
.static int
nindexTypeCount
(long struct) Unsafe version ofindexTypeCount()
.static void
nindexTypeCount
(long struct, int value) Sets the specified value to theindexTypeCount
field of the specifiedstruct
.static int
nindirectStateFlags
(long struct) Unsafe version ofindirectStateFlags()
.static void
nindirectStateFlags
(long struct, int value) Unsafe version ofindirectStateFlags
.static int
noffset
(long struct) Unsafe version ofoffset()
.static void
noffset
(long struct, int value) Unsafe version ofoffset
.static @Nullable IntBuffer
npIndexTypes
(long struct) Unsafe version ofpIndexTypes
.static void
npIndexTypes
(long struct, @Nullable IntBuffer value) Unsafe version ofpIndexTypes
.static @Nullable IntBuffer
npIndexTypeValues
(long struct) Unsafe version ofpIndexTypeValues
.static void
npIndexTypeValues
(long struct, @Nullable IntBuffer value) Unsafe version ofpIndexTypeValues
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static int
npushconstantOffset
(long struct) Unsafe version ofpushconstantOffset()
.static void
npushconstantOffset
(long struct, int value) Unsafe version ofpushconstantOffset
.static long
npushconstantPipelineLayout
(long struct) Unsafe version ofpushconstantPipelineLayout()
.static void
npushconstantPipelineLayout
(long struct, long value) Unsafe version ofpushconstantPipelineLayout
.static int
npushconstantShaderStageFlags
(long struct) Unsafe version ofpushconstantShaderStageFlags()
.static void
npushconstantShaderStageFlags
(long struct, int value) Unsafe version ofpushconstantShaderStageFlags
.static int
npushconstantSize
(long struct) Unsafe version ofpushconstantSize()
.static void
npushconstantSize
(long struct, int value) Unsafe version ofpushconstantSize
.static int
nstream$
(long struct) Unsafe version ofstream$()
.static void
nstream$
(long struct, int value) Unsafe version ofstream$
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static int
ntokenType
(long struct) Unsafe version oftokenType()
.static void
ntokenType
(long struct, int value) Unsafe version oftokenType
.static int
nvertexBindingUnit
(long struct) Unsafe version ofvertexBindingUnit()
.static void
nvertexBindingUnit
(long struct, int value) Unsafe version ofvertexBindingUnit
.static int
nvertexDynamicStride
(long struct) Unsafe version ofvertexDynamicStride()
.static void
nvertexDynamicStride
(long struct, int value) Unsafe version ofvertexDynamicStride
.int
offset()
offset
(int value) Sets the specified value to theoffset
field.@Nullable IntBuffer
pIndexTypes
(@Nullable IntBuffer value) Sets the address of the specifiedIntBuffer
to thepIndexTypes
field.@Nullable IntBuffer
pIndexTypeValues
(@Nullable IntBuffer value) Sets the address of the specifiedIntBuffer
to thepIndexTypeValues
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.int
pushconstantOffset
(int value) Sets the specified value to thepushconstantOffset
field.long
pushconstantPipelineLayout
(long value) Sets the specified value to thepushconstantPipelineLayout
field.int
pushconstantShaderStageFlags
(int value) Sets the specified value to thepushconstantShaderStageFlags
field.int
pushconstantSize
(int value) Sets the specified value to thepushconstantSize
field.set
(int sType, long pNext, int tokenType, int stream$, int offset, int vertexBindingUnit, boolean vertexDynamicStride, long pushconstantPipelineLayout, int pushconstantShaderStageFlags, int pushconstantOffset, int pushconstantSize, int indirectStateFlags, int indexTypeCount, @Nullable IntBuffer pIndexTypes, @Nullable IntBuffer pIndexTypeValues) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
stream$()
stream$
(int value) Sets the specified value to thestream
field.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_TOKEN_NV
value to thesType
field.int
tokenType
(int value) Sets the specified value to thetokenType
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.int
vertexBindingUnit
(int value) Sets the specified value to thevertexBindingUnit
field.boolean
vertexDynamicStride
(boolean value) Sets the specified value to thevertexDynamicStride
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
TOKENTYPE
public static final int TOKENTYPEThe struct member offsets. -
STREAM
public static final int STREAMThe struct member offsets. -
OFFSET
public static final int OFFSETThe struct member offsets. -
VERTEXBINDINGUNIT
public static final int VERTEXBINDINGUNITThe struct member offsets. -
VERTEXDYNAMICSTRIDE
public static final int VERTEXDYNAMICSTRIDEThe struct member offsets. -
PUSHCONSTANTPIPELINELAYOUT
public static final int PUSHCONSTANTPIPELINELAYOUTThe struct member offsets. -
PUSHCONSTANTSHADERSTAGEFLAGS
public static final int PUSHCONSTANTSHADERSTAGEFLAGSThe struct member offsets. -
PUSHCONSTANTOFFSET
public static final int PUSHCONSTANTOFFSETThe struct member offsets. -
PUSHCONSTANTSIZE
public static final int PUSHCONSTANTSIZEThe struct member offsets. -
INDIRECTSTATEFLAGS
public static final int INDIRECTSTATEFLAGSThe struct member offsets. -
INDEXTYPECOUNT
public static final int INDEXTYPECOUNTThe struct member offsets. -
PINDEXTYPES
public static final int PINDEXTYPESThe struct member offsets. -
PINDEXTYPEVALUES
public static final int PINDEXTYPEVALUESThe struct member offsets.
-
-
Constructor Details
-
VkIndirectCommandsLayoutTokenNV
Creates aVkIndirectCommandsLayoutTokenNV
instance at the current position of the specifiedByteBuffer
container. 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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkIndirectCommandsLayoutTokenNV>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
tokenType
public int tokenType()- Returns:
- the value of the
tokenType
field.
-
stream$
public int stream$()- Returns:
- the value of the
stream
field.
-
offset
public int offset()- Returns:
- the value of the
offset
field.
-
vertexBindingUnit
public int vertexBindingUnit()- Returns:
- the value of the
vertexBindingUnit
field.
-
vertexDynamicStride
public boolean vertexDynamicStride()- Returns:
- the value of the
vertexDynamicStride
field.
-
pushconstantPipelineLayout
public long pushconstantPipelineLayout()- Returns:
- the value of the
pushconstantPipelineLayout
field.
-
pushconstantShaderStageFlags
public int pushconstantShaderStageFlags()- Returns:
- the value of the
pushconstantShaderStageFlags
field.
-
pushconstantOffset
public int pushconstantOffset()- Returns:
- the value of the
pushconstantOffset
field.
-
pushconstantSize
public int pushconstantSize()- Returns:
- the value of the
pushconstantSize
field.
-
indirectStateFlags
public int indirectStateFlags()- Returns:
- the value of the
indirectStateFlags
field.
-
indexTypeCount
public int indexTypeCount()- Returns:
- the value of the
indexTypeCount
field.
-
pIndexTypes
- Returns:
- a
IntBuffer
view of the data pointed to by thepIndexTypes
field.
-
pIndexTypeValues
- Returns:
- a
IntBuffer
view of the data pointed to by thepIndexTypeValues
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_TOKEN_NV
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
tokenType
Sets the specified value to thetokenType
field. -
stream$
Sets the specified value to thestream
field. -
offset
Sets the specified value to theoffset
field. -
vertexBindingUnit
Sets the specified value to thevertexBindingUnit
field. -
vertexDynamicStride
Sets the specified value to thevertexDynamicStride
field. -
pushconstantPipelineLayout
Sets the specified value to thepushconstantPipelineLayout
field. -
pushconstantShaderStageFlags
Sets the specified value to thepushconstantShaderStageFlags
field. -
pushconstantOffset
Sets the specified value to thepushconstantOffset
field. -
pushconstantSize
Sets the specified value to thepushconstantSize
field. -
indirectStateFlags
Sets the specified value to theindirectStateFlags
field. -
indexTypeCount
Sets the specified value to theindexTypeCount
field. -
pIndexTypes
Sets the address of the specifiedIntBuffer
to thepIndexTypes
field. -
pIndexTypeValues
Sets the address of the specifiedIntBuffer
to thepIndexTypeValues
field. -
set
public VkIndirectCommandsLayoutTokenNV set(int sType, long pNext, int tokenType, int stream$, int offset, int vertexBindingUnit, boolean vertexDynamicStride, long pushconstantPipelineLayout, int pushconstantShaderStageFlags, int pushconstantOffset, int pushconstantSize, int indirectStateFlags, int indexTypeCount, @Nullable IntBuffer pIndexTypes, @Nullable IntBuffer pIndexTypeValues) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated withBufferUtils
. -
create
Returns a newVkIndirectCommandsLayoutTokenNV
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkIndirectCommandsLayoutTokenNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkIndirectCommandsLayoutTokenNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkIndirectCommandsLayoutTokenNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkIndirectCommandsLayoutTokenNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
ntokenType
public static int ntokenType(long struct) Unsafe version oftokenType()
. -
nstream$
public static int nstream$(long struct) Unsafe version ofstream$()
. -
noffset
public static int noffset(long struct) Unsafe version ofoffset()
. -
nvertexBindingUnit
public static int nvertexBindingUnit(long struct) Unsafe version ofvertexBindingUnit()
. -
nvertexDynamicStride
public static int nvertexDynamicStride(long struct) Unsafe version ofvertexDynamicStride()
. -
npushconstantPipelineLayout
public static long npushconstantPipelineLayout(long struct) Unsafe version ofpushconstantPipelineLayout()
. -
npushconstantShaderStageFlags
public static int npushconstantShaderStageFlags(long struct) Unsafe version ofpushconstantShaderStageFlags()
. -
npushconstantOffset
public static int npushconstantOffset(long struct) Unsafe version ofpushconstantOffset()
. -
npushconstantSize
public static int npushconstantSize(long struct) Unsafe version ofpushconstantSize()
. -
nindirectStateFlags
public static int nindirectStateFlags(long struct) Unsafe version ofindirectStateFlags()
. -
nindexTypeCount
public static int nindexTypeCount(long struct) Unsafe version ofindexTypeCount()
. -
npIndexTypes
Unsafe version ofpIndexTypes
. -
npIndexTypeValues
Unsafe version ofpIndexTypeValues
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
ntokenType
public static void ntokenType(long struct, int value) Unsafe version oftokenType
. -
nstream$
public static void nstream$(long struct, int value) Unsafe version ofstream$
. -
noffset
public static void noffset(long struct, int value) Unsafe version ofoffset
. -
nvertexBindingUnit
public static void nvertexBindingUnit(long struct, int value) Unsafe version ofvertexBindingUnit
. -
nvertexDynamicStride
public static void nvertexDynamicStride(long struct, int value) Unsafe version ofvertexDynamicStride
. -
npushconstantPipelineLayout
public static void npushconstantPipelineLayout(long struct, long value) Unsafe version ofpushconstantPipelineLayout
. -
npushconstantShaderStageFlags
public static void npushconstantShaderStageFlags(long struct, int value) Unsafe version ofpushconstantShaderStageFlags
. -
npushconstantOffset
public static void npushconstantOffset(long struct, int value) Unsafe version ofpushconstantOffset
. -
npushconstantSize
public static void npushconstantSize(long struct, int value) Unsafe version ofpushconstantSize
. -
nindirectStateFlags
public static void nindirectStateFlags(long struct, int value) Unsafe version ofindirectStateFlags
. -
nindexTypeCount
public static void nindexTypeCount(long struct, int value) Sets the specified value to theindexTypeCount
field of the specifiedstruct
. -
npIndexTypes
Unsafe version ofpIndexTypes
. -
npIndexTypeValues
Unsafe version ofpIndexTypeValues
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-