Package org.lwjgl.vulkan
Class VkCopyMemoryToAccelerationStructureInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCopyMemoryToAccelerationStructureInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCopyMemoryToAccelerationStructureInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceParameters for deserializing an acceleration structure.Valid Usage
- The source memory pointed to by
srcmust contain data previously serialized usingCmdCopyAccelerationStructureToMemoryKHR, potentially modified to relocate acceleration structure references as described in that command modemust beCOPY_ACCELERATION_STRUCTURE_MODE_DESERIALIZE_KHR- The data in
srcmust have a format compatible with the destination physical device as returned byGetDeviceAccelerationStructureCompatibilityKHR dstmust have been created with asizegreater than or equal to that used to serialize the data insrc
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_COPY_MEMORY_TO_ACCELERATION_STRUCTURE_INFO_KHRpNextmust beNULLdstmust be a validVkAccelerationStructureKHRhandlemodemust be a validVkCopyAccelerationStructureModeKHRvalue
See Also
VkDeviceOrHostAddressConstKHR,CmdCopyMemoryToAccelerationStructureKHR,CopyMemoryToAccelerationStructureKHRLayout
struct VkCopyMemoryToAccelerationStructureInfoKHR { VkStructureTypesType(); void const *pNext();VkDeviceOrHostAddressConstKHRsrc(); VkAccelerationStructureKHRdst(); VkCopyAccelerationStructureModeKHRmode(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCopyMemoryToAccelerationStructureInfoKHR.BufferAn array ofVkCopyMemoryToAccelerationStructureInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkCopyMemoryToAccelerationStructureInfoKHR(java.nio.ByteBuffer container)Creates aVkCopyMemoryToAccelerationStructureInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCopyMemoryToAccelerationStructureInfoKHRcalloc()Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated withmemCalloc.static VkCopyMemoryToAccelerationStructureInfoKHR.Buffercalloc(int capacity)Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated withmemCalloc.static VkCopyMemoryToAccelerationStructureInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyMemoryToAccelerationStructureInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyMemoryToAccelerationStructureInfoKHRcreate()Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated withBufferUtils.static VkCopyMemoryToAccelerationStructureInfoKHR.Buffercreate(int capacity)Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated withBufferUtils.static VkCopyMemoryToAccelerationStructureInfoKHRcreate(long address)Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance for the specified memory address.static VkCopyMemoryToAccelerationStructureInfoKHR.Buffercreate(long address, int capacity)Create aVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance at the specified memory.static VkCopyMemoryToAccelerationStructureInfoKHRcreateSafe(long address)static VkCopyMemoryToAccelerationStructureInfoKHR.BuffercreateSafe(long address, int capacity)longdst()the target acceleration structure for the copy.VkCopyMemoryToAccelerationStructureInfoKHRdst(long value)Sets the specified value to thedst()field.static VkCopyMemoryToAccelerationStructureInfoKHRmalloc()Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated withmemAlloc.static VkCopyMemoryToAccelerationStructureInfoKHR.Buffermalloc(int capacity)Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated withmemAlloc.static VkCopyMemoryToAccelerationStructureInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkCopyMemoryToAccelerationStructureInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated on the specifiedMemoryStack.intmode()aVkCopyAccelerationStructureModeKHRvalue specifying additional operations to perform during the copy.VkCopyMemoryToAccelerationStructureInfoKHRmode(int value)Sets the specified value to themode()field.static longndst(long struct)Unsafe version ofdst().static voidndst(long struct, long 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 VkDeviceOrHostAddressConstKHRnsrc(long struct)Unsafe version ofsrc().static voidnsrc(long struct, VkDeviceOrHostAddressConstKHR 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.VkCopyMemoryToAccelerationStructureInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkCopyMemoryToAccelerationStructureInfoKHRset(int sType, long pNext, VkDeviceOrHostAddressConstKHR src, long dst, int mode)Initializes this struct with the specified values.VkCopyMemoryToAccelerationStructureInfoKHRset(VkCopyMemoryToAccelerationStructureInfoKHR src)Copies the specified struct data to this struct.intsizeof()VkDeviceOrHostAddressConstKHRsrc()the device or host address to memory containing the source data for the copy.VkCopyMemoryToAccelerationStructureInfoKHRsrc(java.util.function.Consumer<VkDeviceOrHostAddressConstKHR> consumer)Passes thesrc()field to the specifiedConsumer.VkCopyMemoryToAccelerationStructureInfoKHRsrc(VkDeviceOrHostAddressConstKHR value)Copies the specifiedVkDeviceOrHostAddressConstKHRto thesrc()field.intsType()the type of this structure.VkCopyMemoryToAccelerationStructureInfoKHRsType(int value)Sets the specified value to thesType()field.VkCopyMemoryToAccelerationStructureInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_COPY_MEMORY_TO_ACCELERATION_STRUCTURE_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkCopyMemoryToAccelerationStructureInfoKHR
public VkCopyMemoryToAccelerationStructureInfoKHR(java.nio.ByteBuffer container)
Creates aVkCopyMemoryToAccelerationStructureInfoKHRinstance 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 VkDeviceOrHostAddressConstKHR src()
the device or host address to memory containing the source data for the copy.
-
dst
public long dst()
the target acceleration structure for the copy.
-
mode
public int mode()
aVkCopyAccelerationStructureModeKHRvalue specifying additional operations to perform during the copy.
-
sType
public VkCopyMemoryToAccelerationStructureInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkCopyMemoryToAccelerationStructureInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_COPY_MEMORY_TO_ACCELERATION_STRUCTURE_INFO_KHRvalue to thesType()field.
-
pNext
public VkCopyMemoryToAccelerationStructureInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
src
public VkCopyMemoryToAccelerationStructureInfoKHR src(VkDeviceOrHostAddressConstKHR value)
Copies the specifiedVkDeviceOrHostAddressConstKHRto thesrc()field.
-
src
public VkCopyMemoryToAccelerationStructureInfoKHR src(java.util.function.Consumer<VkDeviceOrHostAddressConstKHR> consumer)
Passes thesrc()field to the specifiedConsumer.
-
dst
public VkCopyMemoryToAccelerationStructureInfoKHR dst(long value)
Sets the specified value to thedst()field.
-
mode
public VkCopyMemoryToAccelerationStructureInfoKHR mode(int value)
Sets the specified value to themode()field.
-
set
public VkCopyMemoryToAccelerationStructureInfoKHR set(int sType, long pNext, VkDeviceOrHostAddressConstKHR src, long dst, int mode)
Initializes this struct with the specified values.
-
set
public VkCopyMemoryToAccelerationStructureInfoKHR set(VkCopyMemoryToAccelerationStructureInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCopyMemoryToAccelerationStructureInfoKHR malloc()
Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCopyMemoryToAccelerationStructureInfoKHR calloc()
Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCopyMemoryToAccelerationStructureInfoKHR create()
Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated withBufferUtils.
-
create
public static VkCopyMemoryToAccelerationStructureInfoKHR create(long address)
Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkCopyMemoryToAccelerationStructureInfoKHR createSafe(long address)
-
malloc
public static VkCopyMemoryToAccelerationStructureInfoKHR.Buffer malloc(int capacity)
Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCopyMemoryToAccelerationStructureInfoKHR.Buffer calloc(int capacity)
Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyMemoryToAccelerationStructureInfoKHR.Buffer create(int capacity)
Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyMemoryToAccelerationStructureInfoKHR.Buffer create(long address, int capacity)
Create aVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCopyMemoryToAccelerationStructureInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkCopyMemoryToAccelerationStructureInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCopyMemoryToAccelerationStructureInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyMemoryToAccelerationStructureInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkCopyMemoryToAccelerationStructureInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkCopyMemoryToAccelerationStructureInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyMemoryToAccelerationStructureInfoKHR.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 VkDeviceOrHostAddressConstKHR nsrc(long struct)
Unsafe version ofsrc().
-
ndst
public static long 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, VkDeviceOrHostAddressConstKHR value)Unsafe version ofsrc.
-
ndst
public static void ndst(long struct, long value)Unsafe version ofdst.
-
nmode
public static void nmode(long struct, int value)Unsafe version ofmode.
-
-