Package org.lwjgl.vulkan
Class VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer>
org.lwjgl.system.StructBuffer<VkAccelerationStructureTrianglesDisplacementMicromapNV,VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer>
org.lwjgl.vulkan.VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<VkAccelerationStructureTrianglesDisplacementMicromapNV>
,NativeResource
,Pointer
- Enclosing class:
VkAccelerationStructureTrianglesDisplacementMicromapNV
public static class VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer
extends StructBuffer<VkAccelerationStructureTrianglesDisplacementMicromapNV,VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer>
implements NativeResource
An array of
VkAccelerationStructureTrianglesDisplacementMicromapNV
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 newVkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
baseTriangle
(int value) Sets the specified value to thebaseTriangle
field.Passes thedisplacedMicromapPrimitiveFlags
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressConstKHR
to thedisplacedMicromapPrimitiveFlags
field.long
displacedMicromapPrimitiveFlagsStride
(long value) Sets the specified value to thedisplacedMicromapPrimitiveFlagsStride
field.Passes thedisplacementBiasAndScaleBuffer
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressConstKHR
to thedisplacementBiasAndScaleBuffer
field.int
displacementBiasAndScaleFormat
(int value) Sets the specified value to thedisplacementBiasAndScaleFormat
field.long
displacementBiasAndScaleStride
(long value) Sets the specified value to thedisplacementBiasAndScaleStride
field.Passes thedisplacementVectorBuffer
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressConstKHR
to thedisplacementVectorBuffer
field.int
displacementVectorFormat
(int value) Sets the specified value to thedisplacementVectorFormat
field.long
displacementVectorStride
(long value) Sets the specified value to thedisplacementVectorStride
field.indexBuffer
(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theindexBuffer
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressConstKHR
to theindexBuffer
field.long
indexStride
(long value) Sets the specified value to theindexStride
field.int
indexType
(int value) Sets the specified value to theindexType
field.long
micromap()
micromap
(long value) Sets the specified value to themicromap
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.@Nullable PointerBuffer
ppUsageCounts
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theppUsageCounts
field.@Nullable VkMicromapUsageEXT.Buffer
pUsageCounts
(@Nullable VkMicromapUsageEXT.Buffer value) Sets the address of the specifiedVkMicromapUsageEXT.Buffer
to thepUsageCounts
field.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_TRIANGLES_DISPLACEMENT_MICROMAP_NV
value to thesType
field.int
usageCountsCount
(int value) Sets the specified value to theusageCountsCount
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newVkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer
instance 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
VkAccelerationStructureTrianglesDisplacementMicromapNV.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
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
displacementBiasAndScaleFormat
public int displacementBiasAndScaleFormat()- Returns:
- the value of the
displacementBiasAndScaleFormat
field.
-
displacementVectorFormat
public int displacementVectorFormat()- Returns:
- the value of the
displacementVectorFormat
field.
-
displacementBiasAndScaleBuffer
- Returns:
- a
VkDeviceOrHostAddressConstKHR
view of thedisplacementBiasAndScaleBuffer
field.
-
displacementBiasAndScaleStride
public long displacementBiasAndScaleStride()- Returns:
- the value of the
displacementBiasAndScaleStride
field.
-
displacementVectorBuffer
- Returns:
- a
VkDeviceOrHostAddressConstKHR
view of thedisplacementVectorBuffer
field.
-
displacementVectorStride
public long displacementVectorStride()- Returns:
- the value of the
displacementVectorStride
field.
-
displacedMicromapPrimitiveFlags
- Returns:
- a
VkDeviceOrHostAddressConstKHR
view of thedisplacedMicromapPrimitiveFlags
field.
-
displacedMicromapPrimitiveFlagsStride
public long displacedMicromapPrimitiveFlagsStride()- Returns:
- the value of the
displacedMicromapPrimitiveFlagsStride
field.
-
indexType
public int indexType()- Returns:
- the value of the
indexType
field.
-
indexBuffer
- Returns:
- a
VkDeviceOrHostAddressConstKHR
view of theindexBuffer
field.
-
indexStride
public long indexStride()- Returns:
- the value of the
indexStride
field.
-
baseTriangle
public int baseTriangle()- Returns:
- the value of the
baseTriangle
field.
-
usageCountsCount
public int usageCountsCount()- Returns:
- the value of the
usageCountsCount
field.
-
pUsageCounts
- Returns:
- a
VkMicromapUsageEXT.Buffer
view of the struct array pointed to by thepUsageCounts
field.
-
ppUsageCounts
- Returns:
- a
PointerBuffer
view of the data pointed to by theppUsageCounts
field.
-
micromap
public long micromap()- Returns:
- the value of the
micromap
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_TRIANGLES_DISPLACEMENT_MICROMAP_NV
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
displacementBiasAndScaleFormat
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacementBiasAndScaleFormat(int value) Sets the specified value to thedisplacementBiasAndScaleFormat
field. -
displacementVectorFormat
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacementVectorFormat(int value) Sets the specified value to thedisplacementVectorFormat
field. -
displacementBiasAndScaleBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacementBiasAndScaleBuffer(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHR
to thedisplacementBiasAndScaleBuffer
field. -
displacementBiasAndScaleBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacementBiasAndScaleBuffer(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thedisplacementBiasAndScaleBuffer
field to the specifiedConsumer
. -
displacementBiasAndScaleStride
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacementBiasAndScaleStride(long value) Sets the specified value to thedisplacementBiasAndScaleStride
field. -
displacementVectorBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacementVectorBuffer(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHR
to thedisplacementVectorBuffer
field. -
displacementVectorBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacementVectorBuffer(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thedisplacementVectorBuffer
field to the specifiedConsumer
. -
displacementVectorStride
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacementVectorStride(long value) Sets the specified value to thedisplacementVectorStride
field. -
displacedMicromapPrimitiveFlags
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacedMicromapPrimitiveFlags(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHR
to thedisplacedMicromapPrimitiveFlags
field. -
displacedMicromapPrimitiveFlags
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacedMicromapPrimitiveFlags(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thedisplacedMicromapPrimitiveFlags
field to the specifiedConsumer
. -
displacedMicromapPrimitiveFlagsStride
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer displacedMicromapPrimitiveFlagsStride(long value) Sets the specified value to thedisplacedMicromapPrimitiveFlagsStride
field. -
indexType
Sets the specified value to theindexType
field. -
indexBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer indexBuffer(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHR
to theindexBuffer
field. -
indexBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer indexBuffer(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theindexBuffer
field to the specifiedConsumer
. -
indexStride
Sets the specified value to theindexStride
field. -
baseTriangle
Sets the specified value to thebaseTriangle
field. -
usageCountsCount
Sets the specified value to theusageCountsCount
field. -
pUsageCounts
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer pUsageCounts(@Nullable VkMicromapUsageEXT.Buffer value) Sets the address of the specifiedVkMicromapUsageEXT.Buffer
to thepUsageCounts
field. -
ppUsageCounts
public VkAccelerationStructureTrianglesDisplacementMicromapNV.Buffer ppUsageCounts(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theppUsageCounts
field. -
micromap
Sets the specified value to themicromap
field.
-