Class VkDescriptorMappingSourceDataEXT.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<VkDescriptorMappingSourceDataEXT.Buffer>
org.lwjgl.system.StructBuffer<VkDescriptorMappingSourceDataEXT, VkDescriptorMappingSourceDataEXT.Buffer>
org.lwjgl.vulkan.VkDescriptorMappingSourceDataEXT.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<VkDescriptorMappingSourceDataEXT>, NativeResource, Pointer
- Enclosing class:
VkDescriptorMappingSourceDataEXT
public static class VkDescriptorMappingSourceDataEXT.Buffer
extends StructBuffer<VkDescriptorMappingSourceDataEXT, VkDescriptorMappingSourceDataEXT.Buffer>
implements NativeResource
An array of
VkDescriptorMappingSourceDataEXT structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newVkDescriptorMappingSourceDataEXT.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionPasses theconstantOffsetfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceConstantOffsetEXTto theconstantOffsetfield.heapData()heapData(Consumer<VkDescriptorMappingSourceHeapDataEXT> consumer) Passes theheapDatafield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceHeapDataEXTto theheapDatafield.Passes theindirectAddressfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceIndirectAddressEXTto theindirectAddressfield.Passes theindirectIndexfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceIndirectIndexEXTto theindirectIndexfield.Passes theindirectIndexArrayfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceIndirectIndexArrayEXTto theindirectIndexArrayfield.intpushAddressOffset(int value) Sets the specified value to thepushAddressOffsetfield.intpushDataOffset(int value) Sets the specified value to thepushDataOffsetfield.Passes thepushIndexfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourcePushIndexEXTto thepushIndexfield.intshaderRecordAddressOffset(int value) Sets the specified value to theshaderRecordAddressOffsetfield.intshaderRecordDataOffset(int value) Sets the specified value to theshaderRecordDataOffsetfield.Passes theshaderRecordIndexfield to the specifiedConsumer.Copies the specifiedVkDescriptorMappingSourceShaderRecordIndexEXTto theshaderRecordIndexfield.Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newVkDescriptorMappingSourceDataEXT.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 by
VkDescriptorMappingSourceDataEXT.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 Details
-
constantOffset
- Returns:
- a
VkDescriptorMappingSourceConstantOffsetEXTview of theconstantOffsetfield.
-
pushIndex
- Returns:
- a
VkDescriptorMappingSourcePushIndexEXTview of thepushIndexfield.
-
indirectIndex
- Returns:
- a
VkDescriptorMappingSourceIndirectIndexEXTview of theindirectIndexfield.
-
indirectIndexArray
- Returns:
- a
VkDescriptorMappingSourceIndirectIndexArrayEXTview of theindirectIndexArrayfield.
-
heapData
- Returns:
- a
VkDescriptorMappingSourceHeapDataEXTview of theheapDatafield.
-
pushDataOffset
- Returns:
- the value of the
pushDataOffsetfield.
-
pushAddressOffset
- Returns:
- the value of the
pushAddressOffsetfield.
-
indirectAddress
- Returns:
- a
VkDescriptorMappingSourceIndirectAddressEXTview of theindirectAddressfield.
-
shaderRecordIndex
- Returns:
- a
VkDescriptorMappingSourceShaderRecordIndexEXTview of theshaderRecordIndexfield.
-
shaderRecordDataOffset
- Returns:
- the value of the
shaderRecordDataOffsetfield.
-
shaderRecordAddressOffset
- Returns:
- the value of the
shaderRecordAddressOffsetfield.
-
constantOffset
public VkDescriptorMappingSourceDataEXT.Buffer constantOffset(VkDescriptorMappingSourceConstantOffsetEXT value) Copies the specifiedVkDescriptorMappingSourceConstantOffsetEXTto theconstantOffsetfield. -
constantOffset
public VkDescriptorMappingSourceDataEXT.Buffer constantOffset(Consumer<VkDescriptorMappingSourceConstantOffsetEXT> consumer) Passes theconstantOffsetfield to the specifiedConsumer. -
pushIndex
public VkDescriptorMappingSourceDataEXT.Buffer pushIndex(VkDescriptorMappingSourcePushIndexEXT value) Copies the specifiedVkDescriptorMappingSourcePushIndexEXTto thepushIndexfield. -
pushIndex
public VkDescriptorMappingSourceDataEXT.Buffer pushIndex(Consumer<VkDescriptorMappingSourcePushIndexEXT> consumer) Passes thepushIndexfield to the specifiedConsumer. -
indirectIndex
public VkDescriptorMappingSourceDataEXT.Buffer indirectIndex(VkDescriptorMappingSourceIndirectIndexEXT value) Copies the specifiedVkDescriptorMappingSourceIndirectIndexEXTto theindirectIndexfield. -
indirectIndex
public VkDescriptorMappingSourceDataEXT.Buffer indirectIndex(Consumer<VkDescriptorMappingSourceIndirectIndexEXT> consumer) Passes theindirectIndexfield to the specifiedConsumer. -
indirectIndexArray
public VkDescriptorMappingSourceDataEXT.Buffer indirectIndexArray(VkDescriptorMappingSourceIndirectIndexArrayEXT value) Copies the specifiedVkDescriptorMappingSourceIndirectIndexArrayEXTto theindirectIndexArrayfield. -
indirectIndexArray
public VkDescriptorMappingSourceDataEXT.Buffer indirectIndexArray(Consumer<VkDescriptorMappingSourceIndirectIndexArrayEXT> consumer) Passes theindirectIndexArrayfield to the specifiedConsumer. -
heapData
Copies the specifiedVkDescriptorMappingSourceHeapDataEXTto theheapDatafield. -
heapData
public VkDescriptorMappingSourceDataEXT.Buffer heapData(Consumer<VkDescriptorMappingSourceHeapDataEXT> consumer) Passes theheapDatafield to the specifiedConsumer. -
pushDataOffset
Sets the specified value to thepushDataOffsetfield. -
pushAddressOffset
Sets the specified value to thepushAddressOffsetfield. -
indirectAddress
public VkDescriptorMappingSourceDataEXT.Buffer indirectAddress(VkDescriptorMappingSourceIndirectAddressEXT value) Copies the specifiedVkDescriptorMappingSourceIndirectAddressEXTto theindirectAddressfield. -
indirectAddress
public VkDescriptorMappingSourceDataEXT.Buffer indirectAddress(Consumer<VkDescriptorMappingSourceIndirectAddressEXT> consumer) Passes theindirectAddressfield to the specifiedConsumer. -
shaderRecordIndex
public VkDescriptorMappingSourceDataEXT.Buffer shaderRecordIndex(VkDescriptorMappingSourceShaderRecordIndexEXT value) Copies the specifiedVkDescriptorMappingSourceShaderRecordIndexEXTto theshaderRecordIndexfield. -
shaderRecordIndex
public VkDescriptorMappingSourceDataEXT.Buffer shaderRecordIndex(Consumer<VkDescriptorMappingSourceShaderRecordIndexEXT> consumer) Passes theshaderRecordIndexfield to the specifiedConsumer. -
shaderRecordDataOffset
public VkDescriptorMappingSourceDataEXT.Buffer shaderRecordDataOffset(@NativeType("uint32_t") int value) Sets the specified value to theshaderRecordDataOffsetfield. -
shaderRecordAddressOffset
public VkDescriptorMappingSourceDataEXT.Buffer shaderRecordAddressOffset(@NativeType("uint32_t") int value) Sets the specified value to theshaderRecordAddressOffsetfield.
-