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
GetAccelerationStructureMemoryRequirementsNVLayout
struct VkAccelerationStructureMemoryRequirementsInfoNV { VkStructureTypesType(); void const *pNext(); VkAccelerationStructureMemoryRequirementsTypeNVtype(); VkAccelerationStructureNVaccelerationStructure(); }
-
-
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 Deprecated Methods Modifier and Type Method Description longaccelerationStructure()the acceleration structure to be queried for memory requirements.VkAccelerationStructureMemoryRequirementsInfoNVaccelerationStructure(long value)Sets the specified value to theaccelerationStructure()field.static VkAccelerationStructureMemoryRequirementsInfoNVcalloc()Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated withmemCalloc.static VkAccelerationStructureMemoryRequirementsInfoNV.Buffercalloc(int capacity)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated withmemCalloc.static VkAccelerationStructureMemoryRequirementsInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureMemoryRequirementsInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureMemoryRequirementsInfoNVcallocStack()Deprecated.static VkAccelerationStructureMemoryRequirementsInfoNV.BuffercallocStack(int capacity)Deprecated.static VkAccelerationStructureMemoryRequirementsInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAccelerationStructureMemoryRequirementsInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkAccelerationStructureMemoryRequirementsInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMemoryRequirementsInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureMemoryRequirementsInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureMemoryRequirementsInfoNVmallocStack()Deprecated.static VkAccelerationStructureMemoryRequirementsInfoNV.BuffermallocStack(int capacity)Deprecated.static VkAccelerationStructureMemoryRequirementsInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAccelerationStructureMemoryRequirementsInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkAccelerationStructureMemoryRequirementsInfoNVpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkAccelerationStructureMemoryRequirementsInfoNVsType(int value)Sets the specified value to thesType()field.VkAccelerationStructureMemoryRequirementsInfoNVsType$Default()Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NVvalue to thesType()field.inttype()selects the type of memory requirement being queried.VkAccelerationStructureMemoryRequirementsInfoNVtype(int value)Sets the specified value to thetype()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
type
public int 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
public long accelerationStructure()
the acceleration structure to be queried for memory requirements.
-
sType
public VkAccelerationStructureMemoryRequirementsInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAccelerationStructureMemoryRequirementsInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NVvalue to thesType()field.
-
pNext
public VkAccelerationStructureMemoryRequirementsInfoNV pNext(long value)
Sets the specified value to thepNext()field.
-
type
public VkAccelerationStructureMemoryRequirementsInfoNV type(int value)
Sets the specified value to thetype()field.
-
accelerationStructure
public VkAccelerationStructureMemoryRequirementsInfoNV accelerationStructure(long value)
Sets the specified value to theaccelerationStructure()field.
-
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
@Deprecated public static VkAccelerationStructureMemoryRequirementsInfoNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAccelerationStructureMemoryRequirementsInfoNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAccelerationStructureMemoryRequirementsInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAccelerationStructureMemoryRequirementsInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkAccelerationStructureMemoryRequirementsInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMemoryRequirementsInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureMemoryRequirementsInfoNV calloc(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
-
malloc
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer malloc(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
-
calloc
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer calloc(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.
-
-