public class VkAccelerationStructureMemoryRequirementsInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NVpNext must be NULLtype must be a valid VkAccelerationStructureMemoryRequirementsTypeNV valueaccelerationStructure must be a valid VkAccelerationStructureNV handleGetAccelerationStructureMemoryRequirementsNV
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.type – selects the type of memory requirement being queried. ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NV returns the memory requirements for the object itself. ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_BUILD_SCRATCH_NV returns the memory requirements for the scratch memory when doing a build. ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_UPDATE_SCRATCH_NV returns the memory requirements for the scratch memory when doing an update.accelerationStructure – the acceleration structure to be queried for memory requirements.
struct VkAccelerationStructureMemoryRequirementsInfoNV {
VkStructureType sType;
void const * pNext;
VkAccelerationStructureMemoryRequirementsTypeNV type;
VkAccelerationStructureNV accelerationStructure;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer
An array of
VkAccelerationStructureMemoryRequirementsInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCELERATIONSTRUCTURE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkAccelerationStructureMemoryRequirementsInfoNV(java.nio.ByteBuffer container)
Creates a
VkAccelerationStructureMemoryRequirementsInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
accelerationStructure()
Returns the value of the
accelerationStructure field. |
VkAccelerationStructureMemoryRequirementsInfoNV |
accelerationStructure(long value)
Sets the specified value to the
accelerationStructure field. |
static VkAccelerationStructureMemoryRequirementsInfoNV |
calloc()
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated with memCalloc. |
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated with memCalloc. |
static VkAccelerationStructureMemoryRequirementsInfoNV |
callocStack()
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAccelerationStructureMemoryRequirementsInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAccelerationStructureMemoryRequirementsInfoNV |
create()
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated with BufferUtils. |
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
create(int capacity)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated with BufferUtils. |
static VkAccelerationStructureMemoryRequirementsInfoNV |
create(long address)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV instance for the specified memory address. |
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance at the specified memory. |
static VkAccelerationStructureMemoryRequirementsInfoNV |
createSafe(long address)
|
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
createSafe(long address,
int capacity)
|
static VkAccelerationStructureMemoryRequirementsInfoNV |
malloc()
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated with memAlloc. |
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated with memAlloc. |
static VkAccelerationStructureMemoryRequirementsInfoNV |
mallocStack()
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated on the thread-local MemoryStack. |
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkAccelerationStructureMemoryRequirementsInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated on the specified MemoryStack. |
static long |
naccelerationStructure(long struct)
Unsafe version of
accelerationStructure(). |
static void |
naccelerationStructure(long struct,
long value)
Unsafe version of
accelerationStructure. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
long |
pNext()
Returns the value of the
pNext field. |
VkAccelerationStructureMemoryRequirementsInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkAccelerationStructureMemoryRequirementsInfoNV |
set(int sType,
long pNext,
int type,
long accelerationStructure)
Initializes this struct with the specified values.
|
VkAccelerationStructureMemoryRequirementsInfoNV |
set(VkAccelerationStructureMemoryRequirementsInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkAccelerationStructureMemoryRequirementsInfoNV |
sType(int value)
Sets the specified value to the
sType field. |
int |
type()
Returns the value of the
type field. |
VkAccelerationStructureMemoryRequirementsInfoNV |
type(int value)
Sets the specified value to the
type field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int TYPE
public static final int ACCELERATIONSTRUCTURE
public VkAccelerationStructureMemoryRequirementsInfoNV(java.nio.ByteBuffer container)
VkAccelerationStructureMemoryRequirementsInfoNV instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int type()
type field.public long accelerationStructure()
accelerationStructure field.public VkAccelerationStructureMemoryRequirementsInfoNV sType(int value)
sType field.public VkAccelerationStructureMemoryRequirementsInfoNV pNext(long value)
pNext field.public VkAccelerationStructureMemoryRequirementsInfoNV type(int value)
type field.public VkAccelerationStructureMemoryRequirementsInfoNV accelerationStructure(long value)
accelerationStructure field.public VkAccelerationStructureMemoryRequirementsInfoNV set(int sType, long pNext, int type, long accelerationStructure)
public VkAccelerationStructureMemoryRequirementsInfoNV set(VkAccelerationStructureMemoryRequirementsInfoNV src)
src - the source structpublic static VkAccelerationStructureMemoryRequirementsInfoNV malloc()
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkAccelerationStructureMemoryRequirementsInfoNV calloc()
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkAccelerationStructureMemoryRequirementsInfoNV create()
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated with BufferUtils.public static VkAccelerationStructureMemoryRequirementsInfoNV create(long address)
VkAccelerationStructureMemoryRequirementsInfoNV instance for the specified memory address.@Nullable public static VkAccelerationStructureMemoryRequirementsInfoNV createSafe(long address)
public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer malloc(int capacity)
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer calloc(int capacity)
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer create(int capacity)
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer create(long address, int capacity)
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer createSafe(long address, int capacity)
public static VkAccelerationStructureMemoryRequirementsInfoNV mallocStack()
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated on the thread-local MemoryStack.public static VkAccelerationStructureMemoryRequirementsInfoNV callocStack()
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkAccelerationStructureMemoryRequirementsInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkAccelerationStructureMemoryRequirementsInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkAccelerationStructureMemoryRequirementsInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer mallocStack(int capacity)
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer callocStack(int capacity)
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkAccelerationStructureMemoryRequirementsInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAccelerationStructureMemoryRequirementsInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int ntype(long struct)
type().public static long naccelerationStructure(long struct)
accelerationStructure().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ntype(long struct,
int value)
type.public static void naccelerationStructure(long struct,
long value)
accelerationStructure.Copyright LWJGL. All Rights Reserved. License terms.