Package org.lwjgl.vulkan
Class VkCopyAccelerationStructureToMemoryInfoKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkCopyAccelerationStructureToMemoryInfoKHR,VkCopyAccelerationStructureToMemoryInfoKHR.Buffer>
-
- org.lwjgl.vulkan.VkCopyAccelerationStructureToMemoryInfoKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkCopyAccelerationStructureToMemoryInfoKHR>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkCopyAccelerationStructureToMemoryInfoKHR
public static class VkCopyAccelerationStructureToMemoryInfoKHR.Buffer extends org.lwjgl.system.StructBuffer<VkCopyAccelerationStructureToMemoryInfoKHR,VkCopyAccelerationStructureToMemoryInfoKHR.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkCopyAccelerationStructureToMemoryInfoKHRstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkCopyAccelerationStructureToMemoryInfoKHR.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 byVkCopyAccelerationStructureToMemoryInfoKHR.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
-
sType
public int sType()
- Returns:
- the value of the
VkCopyAccelerationStructureToMemoryInfoKHR.sType()field.
-
pNext
public long pNext()
- Returns:
- the value of the
VkCopyAccelerationStructureToMemoryInfoKHR.pNext()field.
-
src
public long src()
- Returns:
- the value of the
VkCopyAccelerationStructureToMemoryInfoKHR.src()field.
-
dst
public VkDeviceOrHostAddressKHR dst()
- Returns:
- a
VkDeviceOrHostAddressKHRview of theVkCopyAccelerationStructureToMemoryInfoKHR.dst()field.
-
mode
public int mode()
- Returns:
- the value of the
VkCopyAccelerationStructureToMemoryInfoKHR.mode()field.
-
sType
public VkCopyAccelerationStructureToMemoryInfoKHR.Buffer sType(int value)
Sets the specified value to theVkCopyAccelerationStructureToMemoryInfoKHR.sType()field.
-
sType$Default
public VkCopyAccelerationStructureToMemoryInfoKHR.Buffer sType$Default()
Sets theSTRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHRvalue to theVkCopyAccelerationStructureToMemoryInfoKHR.sType()field.
-
pNext
public VkCopyAccelerationStructureToMemoryInfoKHR.Buffer pNext(long value)
Sets the specified value to theVkCopyAccelerationStructureToMemoryInfoKHR.pNext()field.
-
src
public VkCopyAccelerationStructureToMemoryInfoKHR.Buffer src(long value)
Sets the specified value to theVkCopyAccelerationStructureToMemoryInfoKHR.src()field.
-
dst
public VkCopyAccelerationStructureToMemoryInfoKHR.Buffer dst(VkDeviceOrHostAddressKHR value)
Copies the specifiedVkDeviceOrHostAddressKHRto theVkCopyAccelerationStructureToMemoryInfoKHR.dst()field.
-
dst
public VkCopyAccelerationStructureToMemoryInfoKHR.Buffer dst(java.util.function.Consumer<VkDeviceOrHostAddressKHR> consumer)
Passes theVkCopyAccelerationStructureToMemoryInfoKHR.dst()field to the specifiedConsumer.
-
mode
public VkCopyAccelerationStructureToMemoryInfoKHR.Buffer mode(int value)
Sets the specified value to theVkCopyAccelerationStructureToMemoryInfoKHR.mode()field.
-
-