Package org.lwjgl.vulkan
Class VkCopyAccelerationStructureInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCopyAccelerationStructureInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCopyAccelerationStructureInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceParameters for copying an acceleration structure.Valid Usage
modemust beCOPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHRorCOPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR- The source acceleration structure
srcmust have been constructed prior to the execution of this command - If
modeisCOPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR,srcmust have been constructed withBUILD_ACCELERATION_STRUCTURE_ALLOW_COMPACTION_BIT_KHRin the build - The
bufferused to createsrcmust be bound to device memory - The
bufferused to createdstmust be bound to device memory
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_INFO_KHRpNextmust beNULLsrcmust be a validVkAccelerationStructureKHRhandledstmust be a validVkAccelerationStructureKHRhandlemodemust be a validVkCopyAccelerationStructureModeKHRvalue- Both of
dst, andsrcmust have been created, allocated, or retrieved from the sameVkDevice
See Also
CmdCopyAccelerationStructureKHR,CopyAccelerationStructureKHRLayout
struct VkCopyAccelerationStructureInfoKHR { VkStructureTypesType(); void const *pNext(); VkAccelerationStructureKHRsrc(); VkAccelerationStructureKHRdst(); VkCopyAccelerationStructureModeKHRmode(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCopyAccelerationStructureInfoKHR.BufferAn array ofVkCopyAccelerationStructureInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkCopyAccelerationStructureInfoKHR(java.nio.ByteBuffer container)Creates aVkCopyAccelerationStructureInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCopyAccelerationStructureInfoKHRcalloc()Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated withmemCalloc.static VkCopyAccelerationStructureInfoKHR.Buffercalloc(int capacity)Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated withmemCalloc.static VkCopyAccelerationStructureInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyAccelerationStructureInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyAccelerationStructureInfoKHRcreate()Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated withBufferUtils.static VkCopyAccelerationStructureInfoKHR.Buffercreate(int capacity)Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated withBufferUtils.static VkCopyAccelerationStructureInfoKHRcreate(long address)Returns a newVkCopyAccelerationStructureInfoKHRinstance for the specified memory address.static VkCopyAccelerationStructureInfoKHR.Buffercreate(long address, int capacity)Create aVkCopyAccelerationStructureInfoKHR.Bufferinstance at the specified memory.static VkCopyAccelerationStructureInfoKHRcreateSafe(long address)static VkCopyAccelerationStructureInfoKHR.BuffercreateSafe(long address, int capacity)longdst()the target acceleration structure for the copy.VkCopyAccelerationStructureInfoKHRdst(long value)Sets the specified value to thedst()field.static VkCopyAccelerationStructureInfoKHRmalloc()Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated withmemAlloc.static VkCopyAccelerationStructureInfoKHR.Buffermalloc(int capacity)Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated withmemAlloc.static VkCopyAccelerationStructureInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkCopyAccelerationStructureInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated on the specifiedMemoryStack.intmode()aVkCopyAccelerationStructureModeKHRvalue specifying additional operations to perform during the copy.VkCopyAccelerationStructureInfoKHRmode(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 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.VkCopyAccelerationStructureInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkCopyAccelerationStructureInfoKHRset(int sType, long pNext, long src, long dst, int mode)Initializes this struct with the specified values.VkCopyAccelerationStructureInfoKHRset(VkCopyAccelerationStructureInfoKHR src)Copies the specified struct data to this struct.intsizeof()longsrc()the source acceleration structure for the copy.VkCopyAccelerationStructureInfoKHRsrc(long value)Sets the specified value to thesrc()field.intsType()the type of this structure.VkCopyAccelerationStructureInfoKHRsType(int value)Sets the specified value to thesType()field.VkCopyAccelerationStructureInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkCopyAccelerationStructureInfoKHR
public VkCopyAccelerationStructureInfoKHR(java.nio.ByteBuffer container)
Creates aVkCopyAccelerationStructureInfoKHRinstance 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 long dst()
the target acceleration structure for the copy.
-
mode
public int mode()
aVkCopyAccelerationStructureModeKHRvalue specifying additional operations to perform during the copy.
-
sType
public VkCopyAccelerationStructureInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkCopyAccelerationStructureInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_INFO_KHRvalue to thesType()field.
-
pNext
public VkCopyAccelerationStructureInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
src
public VkCopyAccelerationStructureInfoKHR src(long value)
Sets the specified value to thesrc()field.
-
dst
public VkCopyAccelerationStructureInfoKHR dst(long value)
Sets the specified value to thedst()field.
-
mode
public VkCopyAccelerationStructureInfoKHR mode(int value)
Sets the specified value to themode()field.
-
set
public VkCopyAccelerationStructureInfoKHR set(int sType, long pNext, long src, long dst, int mode)
Initializes this struct with the specified values.
-
set
public VkCopyAccelerationStructureInfoKHR set(VkCopyAccelerationStructureInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCopyAccelerationStructureInfoKHR malloc()
Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCopyAccelerationStructureInfoKHR calloc()
Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCopyAccelerationStructureInfoKHR create()
Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated withBufferUtils.
-
create
public static VkCopyAccelerationStructureInfoKHR create(long address)
Returns a newVkCopyAccelerationStructureInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkCopyAccelerationStructureInfoKHR createSafe(long address)
-
malloc
public static VkCopyAccelerationStructureInfoKHR.Buffer malloc(int capacity)
Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCopyAccelerationStructureInfoKHR.Buffer calloc(int capacity)
Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyAccelerationStructureInfoKHR.Buffer create(int capacity)
Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyAccelerationStructureInfoKHR.Buffer create(long address, int capacity)
Create aVkCopyAccelerationStructureInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCopyAccelerationStructureInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkCopyAccelerationStructureInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCopyAccelerationStructureInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyAccelerationStructureInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkCopyAccelerationStructureInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyAccelerationStructureInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkCopyAccelerationStructureInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyAccelerationStructureInfoKHR.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 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, long 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.
-
-