Class VkAccelerationStructureGeometrySpheresDataNV.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<VkAccelerationStructureGeometrySpheresDataNV.Buffer>
org.lwjgl.system.StructBuffer<VkAccelerationStructureGeometrySpheresDataNV, VkAccelerationStructureGeometrySpheresDataNV.Buffer>
org.lwjgl.vulkan.VkAccelerationStructureGeometrySpheresDataNV.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<VkAccelerationStructureGeometrySpheresDataNV>, NativeResource, Pointer
- Enclosing class:
VkAccelerationStructureGeometrySpheresDataNV
public static class VkAccelerationStructureGeometrySpheresDataNV.Buffer
extends StructBuffer<VkAccelerationStructureGeometrySpheresDataNV, VkAccelerationStructureGeometrySpheresDataNV.Buffer>
implements NativeResource
An array of
VkAccelerationStructureGeometrySpheresDataNV 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 newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionindexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theindexDatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto theindexDatafield.longindexStride(long value) Sets the specified value to theindexStridefield.intindexType(int value) Sets the specified value to theindexTypefield.longpNext()pNext(long value) Sets the specified value to thepNextfield.radiusData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theradiusDatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto theradiusDatafield.intradiusFormat(int value) Sets the specified value to theradiusFormatfield.longradiusStride(long value) Sets the specified value to theradiusStridefield.intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_SPHERES_DATA_NVvalue to thesTypefield.vertexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thevertexDatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto thevertexDatafield.intvertexFormat(int value) Sets the specified value to thevertexFormatfield.longvertexStride(long value) Sets the specified value to thevertexStridefield.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 newVkAccelerationStructureGeometrySpheresDataNV.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
VkAccelerationStructureGeometrySpheresDataNV.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
-
sType
- Returns:
- the value of the
sTypefield.
-
pNext
- Returns:
- the value of the
pNextfield.
-
vertexFormat
- Returns:
- the value of the
vertexFormatfield.
-
vertexData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of thevertexDatafield.
-
vertexStride
- Returns:
- the value of the
vertexStridefield.
-
radiusFormat
- Returns:
- the value of the
radiusFormatfield.
-
radiusData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of theradiusDatafield.
-
radiusStride
- Returns:
- the value of the
radiusStridefield.
-
indexType
- Returns:
- the value of the
indexTypefield.
-
indexData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of theindexDatafield.
-
indexStride
- Returns:
- the value of the
indexStridefield.
-
sType
public VkAccelerationStructureGeometrySpheresDataNV.Buffer sType(@NativeType("VkStructureType") int value) Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_SPHERES_DATA_NVvalue to thesTypefield. -
pNext
public VkAccelerationStructureGeometrySpheresDataNV.Buffer pNext(@NativeType("void const *") long value) Sets the specified value to thepNextfield. -
vertexFormat
public VkAccelerationStructureGeometrySpheresDataNV.Buffer vertexFormat(@NativeType("VkFormat") int value) Sets the specified value to thevertexFormatfield. -
vertexData
public VkAccelerationStructureGeometrySpheresDataNV.Buffer vertexData(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHRto thevertexDatafield. -
vertexData
public VkAccelerationStructureGeometrySpheresDataNV.Buffer vertexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thevertexDatafield to the specifiedConsumer. -
vertexStride
public VkAccelerationStructureGeometrySpheresDataNV.Buffer vertexStride(@NativeType("VkDeviceSize") long value) Sets the specified value to thevertexStridefield. -
radiusFormat
public VkAccelerationStructureGeometrySpheresDataNV.Buffer radiusFormat(@NativeType("VkFormat") int value) Sets the specified value to theradiusFormatfield. -
radiusData
public VkAccelerationStructureGeometrySpheresDataNV.Buffer radiusData(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHRto theradiusDatafield. -
radiusData
public VkAccelerationStructureGeometrySpheresDataNV.Buffer radiusData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theradiusDatafield to the specifiedConsumer. -
radiusStride
public VkAccelerationStructureGeometrySpheresDataNV.Buffer radiusStride(@NativeType("VkDeviceSize") long value) Sets the specified value to theradiusStridefield. -
indexType
public VkAccelerationStructureGeometrySpheresDataNV.Buffer indexType(@NativeType("VkIndexType") int value) Sets the specified value to theindexTypefield. -
indexData
public VkAccelerationStructureGeometrySpheresDataNV.Buffer indexData(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHRto theindexDatafield. -
indexData
public VkAccelerationStructureGeometrySpheresDataNV.Buffer indexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theindexDatafield to the specifiedConsumer. -
indexStride
public VkAccelerationStructureGeometrySpheresDataNV.Buffer indexStride(@NativeType("VkDeviceSize") long value) Sets the specified value to theindexStridefield.
-