Package org.lwjgl.vulkan
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 org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.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 org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.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 org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.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
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
vertexFormat
public int vertexFormat()- Returns:
- the value of the
vertexFormatfield.
-
vertexData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of thevertexDatafield.
-
vertexStride
public long vertexStride()- Returns:
- the value of the
vertexStridefield.
-
radiusFormat
public int radiusFormat()- Returns:
- the value of the
radiusFormatfield.
-
radiusData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of theradiusDatafield.
-
radiusStride
public long radiusStride()- Returns:
- the value of the
radiusStridefield.
-
indexType
public int indexType()- Returns:
- the value of the
indexTypefield.
-
indexData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of theindexDatafield.
-
indexStride
public long indexStride()- Returns:
- the value of the
indexStridefield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_SPHERES_DATA_NVvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
vertexFormat
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
Sets the specified value to thevertexStridefield. -
radiusFormat
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
Sets the specified value to theradiusStridefield. -
indexType
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
Sets the specified value to theindexStridefield.
-