Package org.lwjgl.vulkan
Class VkAccelerationStructureMemoryRequirementsInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAccelerationStructureMemoryRequirementsInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAccelerationStructureMemoryRequirementsInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying acceleration to query for memory requirements.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NVpNextmust beNULLtypemust be a validVkAccelerationStructureMemoryRequirementsTypeNVvalueaccelerationStructuremust be a validVkAccelerationStructureNVhandle
See Also
GetAccelerationStructureMemoryRequirementsNVMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.type– selects the type of memory requirement being queried.ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NVreturns the memory requirements for the object itself.ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_BUILD_SCRATCH_NVreturns the memory requirements for the scratch memory when doing a build.ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_UPDATE_SCRATCH_NVreturns the memory requirements for the scratch memory when doing an update.accelerationStructure– the acceleration structure to be queried for memory requirements.
Layout
struct VkAccelerationStructureMemoryRequirementsInfoNV { VkStructureType sType; void const * pNext; VkAccelerationStructureMemoryRequirementsTypeNV type; VkAccelerationStructureNV accelerationStructure; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAccelerationStructureMemoryRequirementsInfoNV.BufferAn array ofVkAccelerationStructureMemoryRequirementsInfoNVstructs.
-
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 intSTYPE
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkAccelerationStructureMemoryRequirementsInfoNV(java.nio.ByteBuffer container)Creates aVkAccelerationStructureMemoryRequirementsInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longaccelerationStructure()Returns the value of theaccelerationStructurefield.VkAccelerationStructureMemoryRequirementsInfoNVaccelerationStructure(long value)Sets the specified value to theaccelerationStructurefield.static VkAccelerationStructureMemoryRequirementsInfoNVcalloc()Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated withmemCalloc.static VkAccelerationStructureMemoryRequirementsInfoNV.Buffercalloc(int capacity)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated withmemCalloc.static VkAccelerationStructureMemoryRequirementsInfoNVcallocStack()Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkAccelerationStructureMemoryRequirementsInfoNV.BuffercallocStack(int capacity)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkAccelerationStructureMemoryRequirementsInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureMemoryRequirementsInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureMemoryRequirementsInfoNVcreate()Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated withBufferUtils.static VkAccelerationStructureMemoryRequirementsInfoNV.Buffercreate(int capacity)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated withBufferUtils.static VkAccelerationStructureMemoryRequirementsInfoNVcreate(long address)Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance for the specified memory address.static VkAccelerationStructureMemoryRequirementsInfoNV.Buffercreate(long address, int capacity)Create aVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance at the specified memory.static VkAccelerationStructureMemoryRequirementsInfoNVcreateSafe(long address)static VkAccelerationStructureMemoryRequirementsInfoNV.BuffercreateSafe(long address, int capacity)static VkAccelerationStructureMemoryRequirementsInfoNVmalloc()Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated withmemAlloc.static VkAccelerationStructureMemoryRequirementsInfoNV.Buffermalloc(int capacity)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated withmemAlloc.static VkAccelerationStructureMemoryRequirementsInfoNVmallocStack()Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the thread-localMemoryStack.static VkAccelerationStructureMemoryRequirementsInfoNV.BuffermallocStack(int capacity)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkAccelerationStructureMemoryRequirementsInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureMemoryRequirementsInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance 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.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.longpNext()Returns the value of thepNextfield.VkAccelerationStructureMemoryRequirementsInfoNVpNext(long value)Sets the specified value to thepNextfield.VkAccelerationStructureMemoryRequirementsInfoNVset(int sType, long pNext, int type, long accelerationStructure)Initializes this struct with the specified values.VkAccelerationStructureMemoryRequirementsInfoNVset(VkAccelerationStructureMemoryRequirementsInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkAccelerationStructureMemoryRequirementsInfoNVsType(int value)Sets the specified value to thesTypefield.inttype()Returns the value of thetypefield.VkAccelerationStructureMemoryRequirementsInfoNVtype(int value)Sets the specified value to thetypefield.
-
-
-
Constructor Detail
-
VkAccelerationStructureMemoryRequirementsInfoNV
public VkAccelerationStructureMemoryRequirementsInfoNV(java.nio.ByteBuffer container)
Creates aVkAccelerationStructureMemoryRequirementsInfoNVinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
type
public int type()
Returns the value of thetypefield.
-
accelerationStructure
public long accelerationStructure()
Returns the value of theaccelerationStructurefield.
-
sType
public VkAccelerationStructureMemoryRequirementsInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkAccelerationStructureMemoryRequirementsInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
type
public VkAccelerationStructureMemoryRequirementsInfoNV type(int value)
Sets the specified value to thetypefield.
-
accelerationStructure
public VkAccelerationStructureMemoryRequirementsInfoNV accelerationStructure(long value)
Sets the specified value to theaccelerationStructurefield.
-
set
public VkAccelerationStructureMemoryRequirementsInfoNV set(int sType, long pNext, int type, long accelerationStructure)
Initializes this struct with the specified values.
-
set
public VkAccelerationStructureMemoryRequirementsInfoNV set(VkAccelerationStructureMemoryRequirementsInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAccelerationStructureMemoryRequirementsInfoNV malloc()
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAccelerationStructureMemoryRequirementsInfoNV calloc()
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAccelerationStructureMemoryRequirementsInfoNV create()
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated withBufferUtils.
-
create
public static VkAccelerationStructureMemoryRequirementsInfoNV create(long address)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkAccelerationStructureMemoryRequirementsInfoNV createSafe(long address)
-
malloc
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer malloc(int capacity)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer calloc(int capacity)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer create(int capacity)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer create(long address, int capacity)
Create aVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkAccelerationStructureMemoryRequirementsInfoNV mallocStack()
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkAccelerationStructureMemoryRequirementsInfoNV callocStack()
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkAccelerationStructureMemoryRequirementsInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkAccelerationStructureMemoryRequirementsInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer mallocStack(int capacity)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer callocStack(int capacity)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.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().
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
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.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
naccelerationStructure
public static void naccelerationStructure(long struct, long value)Unsafe version ofaccelerationStructure.
-
-