Package org.lwjgl.vulkan
Class VkAccelerationStructureDeviceAddressInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAccelerationStructureDeviceAddressInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAccelerationStructureDeviceAddressInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the acceleration structure to query an address for.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_DEVICE_ADDRESS_INFO_KHRpNextmust beNULLaccelerationStructuremust be a validVkAccelerationStructureKHRhandle
See Also
GetAccelerationStructureDeviceAddressKHRLayout
struct VkAccelerationStructureDeviceAddressInfoKHR { VkStructureTypesType(); void const *pNext(); VkAccelerationStructureKHRaccelerationStructure(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAccelerationStructureDeviceAddressInfoKHR.BufferAn array ofVkAccelerationStructureDeviceAddressInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACCELERATIONSTRUCTUREThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkAccelerationStructureDeviceAddressInfoKHR(java.nio.ByteBuffer container)Creates aVkAccelerationStructureDeviceAddressInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longaccelerationStructure()specifies the acceleration structure whose address is being queried.VkAccelerationStructureDeviceAddressInfoKHRaccelerationStructure(long value)Sets the specified value to theaccelerationStructure()field.static VkAccelerationStructureDeviceAddressInfoKHRcalloc()Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated withmemCalloc.static VkAccelerationStructureDeviceAddressInfoKHR.Buffercalloc(int capacity)Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated withmemCalloc.static VkAccelerationStructureDeviceAddressInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureDeviceAddressInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureDeviceAddressInfoKHRcreate()Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated withBufferUtils.static VkAccelerationStructureDeviceAddressInfoKHR.Buffercreate(int capacity)Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated withBufferUtils.static VkAccelerationStructureDeviceAddressInfoKHRcreate(long address)Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance for the specified memory address.static VkAccelerationStructureDeviceAddressInfoKHR.Buffercreate(long address, int capacity)Create aVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance at the specified memory.static VkAccelerationStructureDeviceAddressInfoKHRcreateSafe(long address)static VkAccelerationStructureDeviceAddressInfoKHR.BuffercreateSafe(long address, int capacity)static VkAccelerationStructureDeviceAddressInfoKHRmalloc()Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated withmemAlloc.static VkAccelerationStructureDeviceAddressInfoKHR.Buffermalloc(int capacity)Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated withmemAlloc.static VkAccelerationStructureDeviceAddressInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureDeviceAddressInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated on the specifiedMemoryStack.static longnaccelerationStructure(long struct)Unsafe version ofaccelerationStructure().static voidnaccelerationStructure(long struct, long value)Unsafe version ofaccelerationStructure.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.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.VkAccelerationStructureDeviceAddressInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkAccelerationStructureDeviceAddressInfoKHRset(int sType, long pNext, long accelerationStructure)Initializes this struct with the specified values.VkAccelerationStructureDeviceAddressInfoKHRset(VkAccelerationStructureDeviceAddressInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkAccelerationStructureDeviceAddressInfoKHRsType(int value)Sets the specified value to thesType()field.VkAccelerationStructureDeviceAddressInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_DEVICE_ADDRESS_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkAccelerationStructureDeviceAddressInfoKHR
public VkAccelerationStructureDeviceAddressInfoKHR(java.nio.ByteBuffer container)
Creates aVkAccelerationStructureDeviceAddressInfoKHRinstance 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.
-
accelerationStructure
public long accelerationStructure()
specifies the acceleration structure whose address is being queried.
-
sType
public VkAccelerationStructureDeviceAddressInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAccelerationStructureDeviceAddressInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_DEVICE_ADDRESS_INFO_KHRvalue to thesType()field.
-
pNext
public VkAccelerationStructureDeviceAddressInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
accelerationStructure
public VkAccelerationStructureDeviceAddressInfoKHR accelerationStructure(long value)
Sets the specified value to theaccelerationStructure()field.
-
set
public VkAccelerationStructureDeviceAddressInfoKHR set(int sType, long pNext, long accelerationStructure)
Initializes this struct with the specified values.
-
set
public VkAccelerationStructureDeviceAddressInfoKHR set(VkAccelerationStructureDeviceAddressInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAccelerationStructureDeviceAddressInfoKHR malloc()
Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAccelerationStructureDeviceAddressInfoKHR calloc()
Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAccelerationStructureDeviceAddressInfoKHR create()
Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated withBufferUtils.
-
create
public static VkAccelerationStructureDeviceAddressInfoKHR create(long address)
Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkAccelerationStructureDeviceAddressInfoKHR createSafe(long address)
-
malloc
public static VkAccelerationStructureDeviceAddressInfoKHR.Buffer malloc(int capacity)
Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAccelerationStructureDeviceAddressInfoKHR.Buffer calloc(int capacity)
Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureDeviceAddressInfoKHR.Buffer create(int capacity)
Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureDeviceAddressInfoKHR.Buffer create(long address, int capacity)
Create aVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAccelerationStructureDeviceAddressInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAccelerationStructureDeviceAddressInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureDeviceAddressInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureDeviceAddressInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureDeviceAddressInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureDeviceAddressInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAccelerationStructureDeviceAddressInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureDeviceAddressInfoKHR.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().
-
naccelerationStructure
public static long naccelerationStructure(long struct)
Unsafe version ofaccelerationStructure().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
naccelerationStructure
public static void naccelerationStructure(long struct, long value)Unsafe version ofaccelerationStructure.
-
-