Package org.lwjgl.vulkan
Class VkCopyAccelerationStructureToMemoryInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCopyAccelerationStructureToMemoryInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCopyAccelerationStructureToMemoryInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceParameters for serializing an acceleration structure.Valid Usage
- The source acceleration structure
srcmust have been constructed prior to the execution of this command - The memory pointed to by
dstmust be at least as large as the serialization size ofsrc, as reported byWriteAccelerationStructuresPropertiesKHRorCmdWriteAccelerationStructuresPropertiesKHRwith a query type ofQUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR modemust beCOPY_ACCELERATION_STRUCTURE_MODE_SERIALIZE_KHR
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHRpNextmust beNULLsrcmust be a validVkAccelerationStructureKHRhandlemodemust be a validVkCopyAccelerationStructureModeKHRvalue
See Also
VkDeviceOrHostAddressKHR,CmdCopyAccelerationStructureToMemoryKHR,CopyAccelerationStructureToMemoryKHRLayout
struct VkCopyAccelerationStructureToMemoryInfoKHR { VkStructureTypesType(); void const *pNext(); VkAccelerationStructureKHRsrc();VkDeviceOrHostAddressKHRdst(); VkCopyAccelerationStructureModeKHRmode(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCopyAccelerationStructureToMemoryInfoKHR.BufferAn array ofVkCopyAccelerationStructureToMemoryInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkCopyAccelerationStructureToMemoryInfoKHR(java.nio.ByteBuffer container)Creates aVkCopyAccelerationStructureToMemoryInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCopyAccelerationStructureToMemoryInfoKHRcalloc()Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated withmemCalloc.static VkCopyAccelerationStructureToMemoryInfoKHR.Buffercalloc(int capacity)Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated withmemCalloc.static VkCopyAccelerationStructureToMemoryInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyAccelerationStructureToMemoryInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyAccelerationStructureToMemoryInfoKHRcreate()Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated withBufferUtils.static VkCopyAccelerationStructureToMemoryInfoKHR.Buffercreate(int capacity)Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated withBufferUtils.static VkCopyAccelerationStructureToMemoryInfoKHRcreate(long address)Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance for the specified memory address.static VkCopyAccelerationStructureToMemoryInfoKHR.Buffercreate(long address, int capacity)Create aVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance at the specified memory.static VkCopyAccelerationStructureToMemoryInfoKHRcreateSafe(long address)static VkCopyAccelerationStructureToMemoryInfoKHR.BuffercreateSafe(long address, int capacity)VkDeviceOrHostAddressKHRdst()the device or host address to memory which is the target for the copyVkCopyAccelerationStructureToMemoryInfoKHRdst(java.util.function.Consumer<VkDeviceOrHostAddressKHR> consumer)Passes thedst()field to the specifiedConsumer.VkCopyAccelerationStructureToMemoryInfoKHRdst(VkDeviceOrHostAddressKHR value)Copies the specifiedVkDeviceOrHostAddressKHRto thedst()field.static VkCopyAccelerationStructureToMemoryInfoKHRmalloc()Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated withmemAlloc.static VkCopyAccelerationStructureToMemoryInfoKHR.Buffermalloc(int capacity)Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated withmemAlloc.static VkCopyAccelerationStructureToMemoryInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkCopyAccelerationStructureToMemoryInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated on the specifiedMemoryStack.intmode()aVkCopyAccelerationStructureModeKHRvalue specifying additional operations to perform during the copy.VkCopyAccelerationStructureToMemoryInfoKHRmode(int value)Sets the specified value to themode()field.static VkDeviceOrHostAddressKHRndst(long struct)Unsafe version ofdst().static voidndst(long struct, VkDeviceOrHostAddressKHR value)Unsafe version ofdst.static intnmode(long struct)Unsafe version ofmode().static voidnmode(long struct, int value)Unsafe version ofmode.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static longnsrc(long struct)Unsafe version ofsrc().static voidnsrc(long struct, long value)Unsafe version ofsrc.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkCopyAccelerationStructureToMemoryInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkCopyAccelerationStructureToMemoryInfoKHRset(int sType, long pNext, long src, VkDeviceOrHostAddressKHR dst, int mode)Initializes this struct with the specified values.VkCopyAccelerationStructureToMemoryInfoKHRset(VkCopyAccelerationStructureToMemoryInfoKHR src)Copies the specified struct data to this struct.intsizeof()longsrc()the source acceleration structure for the copyVkCopyAccelerationStructureToMemoryInfoKHRsrc(long value)Sets the specified value to thesrc()field.intsType()the type of this structure.VkCopyAccelerationStructureToMemoryInfoKHRsType(int value)Sets the specified value to thesType()field.VkCopyAccelerationStructureToMemoryInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkCopyAccelerationStructureToMemoryInfoKHR
public VkCopyAccelerationStructureToMemoryInfoKHR(java.nio.ByteBuffer container)
Creates aVkCopyAccelerationStructureToMemoryInfoKHRinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
src
public long src()
the source acceleration structure for the copy
-
dst
public VkDeviceOrHostAddressKHR dst()
the device or host address to memory which is the target for the copy
-
mode
public int mode()
aVkCopyAccelerationStructureModeKHRvalue specifying additional operations to perform during the copy.
-
sType
public VkCopyAccelerationStructureToMemoryInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkCopyAccelerationStructureToMemoryInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHRvalue to thesType()field.
-
pNext
public VkCopyAccelerationStructureToMemoryInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
src
public VkCopyAccelerationStructureToMemoryInfoKHR src(long value)
Sets the specified value to thesrc()field.
-
dst
public VkCopyAccelerationStructureToMemoryInfoKHR dst(VkDeviceOrHostAddressKHR value)
Copies the specifiedVkDeviceOrHostAddressKHRto thedst()field.
-
dst
public VkCopyAccelerationStructureToMemoryInfoKHR dst(java.util.function.Consumer<VkDeviceOrHostAddressKHR> consumer)
Passes thedst()field to the specifiedConsumer.
-
mode
public VkCopyAccelerationStructureToMemoryInfoKHR mode(int value)
Sets the specified value to themode()field.
-
set
public VkCopyAccelerationStructureToMemoryInfoKHR set(int sType, long pNext, long src, VkDeviceOrHostAddressKHR dst, int mode)
Initializes this struct with the specified values.
-
set
public VkCopyAccelerationStructureToMemoryInfoKHR set(VkCopyAccelerationStructureToMemoryInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCopyAccelerationStructureToMemoryInfoKHR malloc()
Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCopyAccelerationStructureToMemoryInfoKHR calloc()
Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCopyAccelerationStructureToMemoryInfoKHR create()
Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated withBufferUtils.
-
create
public static VkCopyAccelerationStructureToMemoryInfoKHR create(long address)
Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkCopyAccelerationStructureToMemoryInfoKHR createSafe(long address)
-
malloc
public static VkCopyAccelerationStructureToMemoryInfoKHR.Buffer malloc(int capacity)
Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCopyAccelerationStructureToMemoryInfoKHR.Buffer calloc(int capacity)
Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyAccelerationStructureToMemoryInfoKHR.Buffer create(int capacity)
Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyAccelerationStructureToMemoryInfoKHR.Buffer create(long address, int capacity)
Create aVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCopyAccelerationStructureToMemoryInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkCopyAccelerationStructureToMemoryInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCopyAccelerationStructureToMemoryInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyAccelerationStructureToMemoryInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkCopyAccelerationStructureToMemoryInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkCopyAccelerationStructureToMemoryInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyAccelerationStructureToMemoryInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nsrc
public static long nsrc(long struct)
Unsafe version ofsrc().
-
ndst
public static VkDeviceOrHostAddressKHR ndst(long struct)
Unsafe version ofdst().
-
nmode
public static int nmode(long struct)
Unsafe version ofmode().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsrc
public static void nsrc(long struct, long value)Unsafe version ofsrc.
-
ndst
public static void ndst(long struct, VkDeviceOrHostAddressKHR value)Unsafe version ofdst.
-
nmode
public static void nmode(long struct, int value)Unsafe version ofmode.
-
-