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()VkDrawIndexedIndirectCommand.BufferfirstIndex(int value)Sets the specified value to theVkDrawIndexedIndirectCommand.firstIndex()field.intfirstInstance()VkDrawIndexedIndirectCommand.BufferfirstInstance(int value)Sets the specified value to theVkDrawIndexedIndirectCommand.firstInstance()field.intindexCount()VkDrawIndexedIndirectCommand.BufferindexCount(int value)Sets the specified value to theVkDrawIndexedIndirectCommand.indexCount()field.intinstanceCount()VkDrawIndexedIndirectCommand.BufferinstanceCount(int value)Sets the specified value to theVkDrawIndexedIndirectCommand.instanceCount()field.intvertexOffset()VkDrawIndexedIndirectCommand.BuffervertexOffset(int value)Sets the specified value to theVkDrawIndexedIndirectCommand.vertexOffset()field.
-
-
-
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 the
VkDrawIndexedIndirectCommand.indexCount()field.
-
instanceCount
public int instanceCount()
- Returns:
- the value of the
VkDrawIndexedIndirectCommand.instanceCount()field.
-
firstIndex
public int firstIndex()
- Returns:
- the value of the
VkDrawIndexedIndirectCommand.firstIndex()field.
-
vertexOffset
public int vertexOffset()
- Returns:
- the value of the
VkDrawIndexedIndirectCommand.vertexOffset()field.
-
firstInstance
public int firstInstance()
- Returns:
- the value of the
VkDrawIndexedIndirectCommand.firstInstance()field.
-
indexCount
public VkDrawIndexedIndirectCommand.Buffer indexCount(int value)
Sets the specified value to theVkDrawIndexedIndirectCommand.indexCount()field.
-
instanceCount
public VkDrawIndexedIndirectCommand.Buffer instanceCount(int value)
Sets the specified value to theVkDrawIndexedIndirectCommand.instanceCount()field.
-
firstIndex
public VkDrawIndexedIndirectCommand.Buffer firstIndex(int value)
Sets the specified value to theVkDrawIndexedIndirectCommand.firstIndex()field.
-
vertexOffset
public VkDrawIndexedIndirectCommand.Buffer vertexOffset(int value)
Sets the specified value to theVkDrawIndexedIndirectCommand.vertexOffset()field.
-
firstInstance
public VkDrawIndexedIndirectCommand.Buffer firstInstance(int value)
Sets the specified value to theVkDrawIndexedIndirectCommand.firstInstance()field.
-
-