public class VkBindAccelerationStructureMemoryInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
accelerationStructure must not already be backed by a memory objectmemoryOffset must be less than the size of memorymemory must have been allocated using one of the memory types allowed in the memoryTypeBits member of the VkMemoryRequirements structure returned from a call to GetAccelerationStructureMemoryRequirementsNV with accelerationStructure and type of ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NVmemoryOffset must be an integer multiple of the alignment member of the VkMemoryRequirements structure returned from a call to GetAccelerationStructureMemoryRequirementsNV with accelerationStructure and type of ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NVsize member of the VkMemoryRequirements structure returned from a call to GetAccelerationStructureMemoryRequirementsNV with accelerationStructure and type of ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NV must be less than or equal to the size of memory minus memoryOffsetsType must be STRUCTURE_TYPE_BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_NVpNext must be NULLaccelerationStructure must be a valid VkAccelerationStructureNV handlememory must be a valid VkDeviceMemory handledeviceIndexCount is not 0, pDeviceIndices must be a valid pointer to an array of deviceIndexCount uint32_t valuesaccelerationStructure, and memory must have been created, allocated, or retrieved from the same VkDeviceBindAccelerationStructureMemoryNV
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.accelerationStructure – the acceleration structure to be attached to memory.memory – a VkDeviceMemory object describing the device memory to attach.memoryOffset – the start offset of the region of memory that is to be bound to the acceleration structure. The number of bytes returned in the VkMemoryRequirements::size member in memory, starting from memoryOffset bytes, will be bound to the specified acceleration structure.deviceIndexCount – the number of elements in pDeviceIndices.pDeviceIndices – a pointer to an array of device indices.
struct VkBindAccelerationStructureMemoryInfoNV {
VkStructureType sType;
void const * pNext;
VkAccelerationStructureNV accelerationStructure;
VkDeviceMemory memory;
VkDeviceSize memoryOffset;
uint32_t deviceIndexCount;
uint32_t const * pDeviceIndices;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBindAccelerationStructureMemoryInfoNV.Buffer
An array of
VkBindAccelerationStructureMemoryInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCELERATIONSTRUCTURE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEVICEINDEXCOUNT
The struct member offsets.
|
static int |
MEMORY
The struct member offsets.
|
static int |
MEMORYOFFSET
The struct member offsets.
|
static int |
PDEVICEINDICES
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkBindAccelerationStructureMemoryInfoNV(java.nio.ByteBuffer container)
Creates a
VkBindAccelerationStructureMemoryInfoNV 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. |
VkBindAccelerationStructureMemoryInfoNV |
accelerationStructure(long value)
Sets the specified value to the
accelerationStructure field. |
static VkBindAccelerationStructureMemoryInfoNV |
calloc()
Returns a new
VkBindAccelerationStructureMemoryInfoNV instance allocated with memCalloc. |
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated with memCalloc. |
static VkBindAccelerationStructureMemoryInfoNV |
callocStack()
Returns a new
VkBindAccelerationStructureMemoryInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindAccelerationStructureMemoryInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindAccelerationStructureMemoryInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindAccelerationStructureMemoryInfoNV |
create()
Returns a new
VkBindAccelerationStructureMemoryInfoNV instance allocated with BufferUtils. |
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
create(int capacity)
Returns a new
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated with BufferUtils. |
static VkBindAccelerationStructureMemoryInfoNV |
create(long address)
Returns a new
VkBindAccelerationStructureMemoryInfoNV instance for the specified memory address. |
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkBindAccelerationStructureMemoryInfoNV.Buffer instance at the specified memory. |
static VkBindAccelerationStructureMemoryInfoNV |
createSafe(long address)
|
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
createSafe(long address,
int capacity)
|
int |
deviceIndexCount()
Returns the value of the
deviceIndexCount field. |
static VkBindAccelerationStructureMemoryInfoNV |
malloc()
Returns a new
VkBindAccelerationStructureMemoryInfoNV instance allocated with memAlloc. |
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated with memAlloc. |
static VkBindAccelerationStructureMemoryInfoNV |
mallocStack()
Returns a new
VkBindAccelerationStructureMemoryInfoNV instance allocated on the thread-local MemoryStack. |
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkBindAccelerationStructureMemoryInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkBindAccelerationStructureMemoryInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindAccelerationStructureMemoryInfoNV instance allocated on the specified MemoryStack. |
long |
memory()
Returns the value of the
memory field. |
VkBindAccelerationStructureMemoryInfoNV |
memory(long value)
Sets the specified value to the
memory field. |
long |
memoryOffset()
Returns the value of the
memoryOffset field. |
VkBindAccelerationStructureMemoryInfoNV |
memoryOffset(long value)
Sets the specified value to the
memoryOffset field. |
static long |
naccelerationStructure(long struct)
Unsafe version of
accelerationStructure(). |
static void |
naccelerationStructure(long struct,
long value)
Unsafe version of
accelerationStructure. |
static int |
ndeviceIndexCount(long struct)
Unsafe version of
deviceIndexCount(). |
static void |
ndeviceIndexCount(long struct,
int value)
Sets the specified value to the
deviceIndexCount field of the specified struct. |
static long |
nmemory(long struct)
Unsafe version of
memory(). |
static void |
nmemory(long struct,
long value)
Unsafe version of
memory. |
static long |
nmemoryOffset(long struct)
Unsafe version of
memoryOffset(). |
static void |
nmemoryOffset(long struct,
long value)
Unsafe version of
memoryOffset. |
static java.nio.IntBuffer |
npDeviceIndices(long struct)
Unsafe version of
pDeviceIndices. |
static void |
npDeviceIndices(long struct,
java.nio.IntBuffer value)
Unsafe version of
pDeviceIndices. |
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. |
java.nio.IntBuffer |
pDeviceIndices()
Returns a
IntBuffer view of the data pointed to by the pDeviceIndices field. |
VkBindAccelerationStructureMemoryInfoNV |
pDeviceIndices(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pDeviceIndices field. |
long |
pNext()
Returns the value of the
pNext field. |
VkBindAccelerationStructureMemoryInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkBindAccelerationStructureMemoryInfoNV |
set(int sType,
long pNext,
long accelerationStructure,
long memory,
long memoryOffset,
java.nio.IntBuffer pDeviceIndices)
Initializes this struct with the specified values.
|
VkBindAccelerationStructureMemoryInfoNV |
set(VkBindAccelerationStructureMemoryInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBindAccelerationStructureMemoryInfoNV |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int ACCELERATIONSTRUCTURE
public static final int MEMORY
public static final int MEMORYOFFSET
public static final int DEVICEINDEXCOUNT
public static final int PDEVICEINDICES
public VkBindAccelerationStructureMemoryInfoNV(java.nio.ByteBuffer container)
VkBindAccelerationStructureMemoryInfoNV 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 long accelerationStructure()
accelerationStructure field.public long memory()
memory field.public long memoryOffset()
memoryOffset field.public int deviceIndexCount()
deviceIndexCount field.@Nullable public java.nio.IntBuffer pDeviceIndices()
IntBuffer view of the data pointed to by the pDeviceIndices field.public VkBindAccelerationStructureMemoryInfoNV sType(int value)
sType field.public VkBindAccelerationStructureMemoryInfoNV pNext(long value)
pNext field.public VkBindAccelerationStructureMemoryInfoNV accelerationStructure(long value)
accelerationStructure field.public VkBindAccelerationStructureMemoryInfoNV memory(long value)
memory field.public VkBindAccelerationStructureMemoryInfoNV memoryOffset(long value)
memoryOffset field.public VkBindAccelerationStructureMemoryInfoNV pDeviceIndices(@Nullable java.nio.IntBuffer value)
IntBuffer to the pDeviceIndices field.public VkBindAccelerationStructureMemoryInfoNV set(int sType, long pNext, long accelerationStructure, long memory, long memoryOffset, @Nullable java.nio.IntBuffer pDeviceIndices)
public VkBindAccelerationStructureMemoryInfoNV set(VkBindAccelerationStructureMemoryInfoNV src)
src - the source structpublic static VkBindAccelerationStructureMemoryInfoNV malloc()
VkBindAccelerationStructureMemoryInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkBindAccelerationStructureMemoryInfoNV calloc()
VkBindAccelerationStructureMemoryInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkBindAccelerationStructureMemoryInfoNV create()
VkBindAccelerationStructureMemoryInfoNV instance allocated with BufferUtils.public static VkBindAccelerationStructureMemoryInfoNV create(long address)
VkBindAccelerationStructureMemoryInfoNV instance for the specified memory address.@Nullable public static VkBindAccelerationStructureMemoryInfoNV createSafe(long address)
public static VkBindAccelerationStructureMemoryInfoNV.Buffer malloc(int capacity)
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindAccelerationStructureMemoryInfoNV.Buffer calloc(int capacity)
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindAccelerationStructureMemoryInfoNV.Buffer create(int capacity)
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBindAccelerationStructureMemoryInfoNV.Buffer create(long address, int capacity)
VkBindAccelerationStructureMemoryInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBindAccelerationStructureMemoryInfoNV.Buffer createSafe(long address, int capacity)
public static VkBindAccelerationStructureMemoryInfoNV mallocStack()
VkBindAccelerationStructureMemoryInfoNV instance allocated on the thread-local MemoryStack.public static VkBindAccelerationStructureMemoryInfoNV callocStack()
VkBindAccelerationStructureMemoryInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBindAccelerationStructureMemoryInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkBindAccelerationStructureMemoryInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBindAccelerationStructureMemoryInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkBindAccelerationStructureMemoryInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBindAccelerationStructureMemoryInfoNV.Buffer mallocStack(int capacity)
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBindAccelerationStructureMemoryInfoNV.Buffer callocStack(int capacity)
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBindAccelerationStructureMemoryInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindAccelerationStructureMemoryInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBindAccelerationStructureMemoryInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindAccelerationStructureMemoryInfoNV.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 long naccelerationStructure(long struct)
accelerationStructure().public static long nmemory(long struct)
memory().public static long nmemoryOffset(long struct)
memoryOffset().public static int ndeviceIndexCount(long struct)
deviceIndexCount().@Nullable public static java.nio.IntBuffer npDeviceIndices(long struct)
pDeviceIndices.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void naccelerationStructure(long struct,
long value)
accelerationStructure.public static void nmemory(long struct,
long value)
memory.public static void nmemoryOffset(long struct,
long value)
memoryOffset.public static void ndeviceIndexCount(long struct,
int value)
deviceIndexCount field of the specified struct.public static void npDeviceIndices(long struct,
@Nullable
java.nio.IntBuffer value)
pDeviceIndices.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.