Package org.lwjgl.vulkan
Class VkDrawIndexedIndirectCommand.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkDrawIndexedIndirectCommand,VkDrawIndexedIndirectCommand.Buffer>
-
- org.lwjgl.vulkan.VkDrawIndexedIndirectCommand.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkDrawIndexedIndirectCommand>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkDrawIndexedIndirectCommand
public static class VkDrawIndexedIndirectCommand.Buffer extends org.lwjgl.system.StructBuffer<VkDrawIndexedIndirectCommand,VkDrawIndexedIndirectCommand.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkDrawIndexedIndirectCommandstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfirstIndex()Returns the value of thefirstIndexfield.VkDrawIndexedIndirectCommand.BufferfirstIndex(int value)Sets the specified value to thefirstIndexfield.intfirstInstance()Returns the value of thefirstInstancefield.VkDrawIndexedIndirectCommand.BufferfirstInstance(int value)Sets the specified value to thefirstInstancefield.intindexCount()Returns the value of theindexCountfield.VkDrawIndexedIndirectCommand.BufferindexCount(int value)Sets the specified value to theindexCountfield.intinstanceCount()Returns the value of theinstanceCountfield.VkDrawIndexedIndirectCommand.BufferinstanceCount(int value)Sets the specified value to theinstanceCountfield.intvertexOffset()Returns the value of thevertexOffsetfield.VkDrawIndexedIndirectCommand.BuffervertexOffset(int value)Sets the specified value to thevertexOffsetfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkDrawIndexedIndirectCommand.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byVkDrawIndexedIndirectCommand.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
indexCount
public int indexCount()
Returns the value of theindexCountfield.
-
instanceCount
public int instanceCount()
Returns the value of theinstanceCountfield.
-
firstIndex
public int firstIndex()
Returns the value of thefirstIndexfield.
-
vertexOffset
public int vertexOffset()
Returns the value of thevertexOffsetfield.
-
firstInstance
public int firstInstance()
Returns the value of thefirstInstancefield.
-
indexCount
public VkDrawIndexedIndirectCommand.Buffer indexCount(int value)
Sets the specified value to theindexCountfield.
-
instanceCount
public VkDrawIndexedIndirectCommand.Buffer instanceCount(int value)
Sets the specified value to theinstanceCountfield.
-
firstIndex
public VkDrawIndexedIndirectCommand.Buffer firstIndex(int value)
Sets the specified value to thefirstIndexfield.
-
vertexOffset
public VkDrawIndexedIndirectCommand.Buffer vertexOffset(int value)
Sets the specified value to thevertexOffsetfield.
-
firstInstance
public VkDrawIndexedIndirectCommand.Buffer firstInstance(int value)
Sets the specified value to thefirstInstancefield.
-
-