Package org.lwjgl.vulkan
Class VkBindAccelerationStructureMemoryInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBindAccelerationStructureMemoryInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBindAccelerationStructureMemoryInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying acceleration structure memory binding.Valid Usage
accelerationStructuremust not already be backed by a memory objectmemoryOffsetmust be less than the size ofmemorymemorymust have been allocated using one of the memory types allowed in thememoryTypeBitsmember of theVkMemoryRequirementsstructure returned from a call toGetAccelerationStructureMemoryRequirementsNVwithaccelerationStructureandtypeofACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NVmemoryOffsetmust be an integer multiple of thealignmentmember of theVkMemoryRequirementsstructure returned from a call toGetAccelerationStructureMemoryRequirementsNVwithaccelerationStructureandtypeofACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NV- The
sizemember of theVkMemoryRequirementsstructure returned from a call toGetAccelerationStructureMemoryRequirementsNVwithaccelerationStructureandtypeofACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NVmust be less than or equal to the size ofmemoryminusmemoryOffset
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_NVpNextmust beNULLaccelerationStructuremust be a validVkAccelerationStructureNVhandlememorymust be a validVkDeviceMemoryhandle- If
deviceIndexCountis not 0,pDeviceIndicesmust be a valid pointer to an array ofdeviceIndexCountuint32_tvalues - Both of
accelerationStructure, andmemorymust have been created, allocated, or retrieved from the sameVkDevice
See Also
BindAccelerationStructureMemoryNVMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.accelerationStructure– the acceleration structure to be attached to memory.memory– aVkDeviceMemoryobject 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 theVkMemoryRequirements::sizemember inmemory, starting frommemoryOffsetbytes, will be bound to the specified acceleration structure.deviceIndexCount– the number of elements inpDeviceIndices.pDeviceIndices– a pointer to an array of device indices.
Layout
struct VkBindAccelerationStructureMemoryInfoNV { VkStructureType sType; void const * pNext; VkAccelerationStructureNV accelerationStructure; VkDeviceMemory memory; VkDeviceSize memoryOffset; uint32_t deviceIndexCount; uint32_t const * pDeviceIndices; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBindAccelerationStructureMemoryInfoNV.BufferAn array ofVkBindAccelerationStructureMemoryInfoNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACCELERATIONSTRUCTUREThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intDEVICEINDEXCOUNT
MEMORY
MEMORYOFFSET
PDEVICEINDICES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkBindAccelerationStructureMemoryInfoNV(java.nio.ByteBuffer container)Creates aVkBindAccelerationStructureMemoryInfoNVinstance 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.VkBindAccelerationStructureMemoryInfoNVaccelerationStructure(long value)Sets the specified value to theaccelerationStructurefield.static VkBindAccelerationStructureMemoryInfoNVcalloc()Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated withmemCalloc.static VkBindAccelerationStructureMemoryInfoNV.Buffercalloc(int capacity)Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated withmemCalloc.static VkBindAccelerationStructureMemoryInfoNVcallocStack()Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindAccelerationStructureMemoryInfoNV.BuffercallocStack(int capacity)Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindAccelerationStructureMemoryInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindAccelerationStructureMemoryInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindAccelerationStructureMemoryInfoNVcreate()Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated withBufferUtils.static VkBindAccelerationStructureMemoryInfoNV.Buffercreate(int capacity)Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated withBufferUtils.static VkBindAccelerationStructureMemoryInfoNVcreate(long address)Returns a newVkBindAccelerationStructureMemoryInfoNVinstance for the specified memory address.static VkBindAccelerationStructureMemoryInfoNV.Buffercreate(long address, int capacity)Create aVkBindAccelerationStructureMemoryInfoNV.Bufferinstance at the specified memory.static VkBindAccelerationStructureMemoryInfoNVcreateSafe(long address)static VkBindAccelerationStructureMemoryInfoNV.BuffercreateSafe(long address, int capacity)intdeviceIndexCount()Returns the value of thedeviceIndexCountfield.static VkBindAccelerationStructureMemoryInfoNVmalloc()Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated withmemAlloc.static VkBindAccelerationStructureMemoryInfoNV.Buffermalloc(int capacity)Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated withmemAlloc.static VkBindAccelerationStructureMemoryInfoNVmallocStack()Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated on the thread-localMemoryStack.static VkBindAccelerationStructureMemoryInfoNV.BuffermallocStack(int capacity)Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkBindAccelerationStructureMemoryInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkBindAccelerationStructureMemoryInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated on the specifiedMemoryStack.longmemory()Returns the value of thememoryfield.VkBindAccelerationStructureMemoryInfoNVmemory(long value)Sets the specified value to thememoryfield.longmemoryOffset()Returns the value of thememoryOffsetfield.VkBindAccelerationStructureMemoryInfoNVmemoryOffset(long value)Sets the specified value to thememoryOffsetfield.static longnaccelerationStructure(long struct)Unsafe version ofaccelerationStructure().static voidnaccelerationStructure(long struct, long value)Unsafe version ofaccelerationStructure.static intndeviceIndexCount(long struct)Unsafe version ofdeviceIndexCount().static voidndeviceIndexCount(long struct, int value)Sets the specified value to thedeviceIndexCountfield of the specifiedstruct.static longnmemory(long struct)Unsafe version ofmemory().static voidnmemory(long struct, long value)Unsafe version ofmemory.static longnmemoryOffset(long struct)Unsafe version ofmemoryOffset().static voidnmemoryOffset(long struct, long value)Unsafe version ofmemoryOffset.static java.nio.IntBuffernpDeviceIndices(long struct)Unsafe version ofpDeviceIndices.static voidnpDeviceIndices(long struct, java.nio.IntBuffer value)Unsafe version ofpDeviceIndices.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.java.nio.IntBufferpDeviceIndices()Returns aIntBufferview of the data pointed to by thepDeviceIndicesfield.VkBindAccelerationStructureMemoryInfoNVpDeviceIndices(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepDeviceIndicesfield.longpNext()Returns the value of thepNextfield.VkBindAccelerationStructureMemoryInfoNVpNext(long value)Sets the specified value to thepNextfield.VkBindAccelerationStructureMemoryInfoNVset(int sType, long pNext, long accelerationStructure, long memory, long memoryOffset, java.nio.IntBuffer pDeviceIndices)Initializes this struct with the specified values.VkBindAccelerationStructureMemoryInfoNVset(VkBindAccelerationStructureMemoryInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkBindAccelerationStructureMemoryInfoNVsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkBindAccelerationStructureMemoryInfoNV
public VkBindAccelerationStructureMemoryInfoNV(java.nio.ByteBuffer container)
Creates aVkBindAccelerationStructureMemoryInfoNVinstance 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.
-
accelerationStructure
public long accelerationStructure()
Returns the value of theaccelerationStructurefield.
-
memory
public long memory()
Returns the value of thememoryfield.
-
memoryOffset
public long memoryOffset()
Returns the value of thememoryOffsetfield.
-
deviceIndexCount
public int deviceIndexCount()
Returns the value of thedeviceIndexCountfield.
-
pDeviceIndices
@Nullable public java.nio.IntBuffer pDeviceIndices()
Returns aIntBufferview of the data pointed to by thepDeviceIndicesfield.
-
sType
public VkBindAccelerationStructureMemoryInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkBindAccelerationStructureMemoryInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
accelerationStructure
public VkBindAccelerationStructureMemoryInfoNV accelerationStructure(long value)
Sets the specified value to theaccelerationStructurefield.
-
memory
public VkBindAccelerationStructureMemoryInfoNV memory(long value)
Sets the specified value to thememoryfield.
-
memoryOffset
public VkBindAccelerationStructureMemoryInfoNV memoryOffset(long value)
Sets the specified value to thememoryOffsetfield.
-
pDeviceIndices
public VkBindAccelerationStructureMemoryInfoNV pDeviceIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepDeviceIndicesfield.
-
set
public VkBindAccelerationStructureMemoryInfoNV set(int sType, long pNext, long accelerationStructure, long memory, long memoryOffset, @Nullable java.nio.IntBuffer pDeviceIndices)
Initializes this struct with the specified values.
-
set
public VkBindAccelerationStructureMemoryInfoNV set(VkBindAccelerationStructureMemoryInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBindAccelerationStructureMemoryInfoNV malloc()
Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBindAccelerationStructureMemoryInfoNV calloc()
Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBindAccelerationStructureMemoryInfoNV create()
Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated withBufferUtils.
-
create
public static VkBindAccelerationStructureMemoryInfoNV create(long address)
Returns a newVkBindAccelerationStructureMemoryInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkBindAccelerationStructureMemoryInfoNV createSafe(long address)
-
malloc
public static VkBindAccelerationStructureMemoryInfoNV.Buffer malloc(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBindAccelerationStructureMemoryInfoNV.Buffer calloc(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindAccelerationStructureMemoryInfoNV.Buffer create(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindAccelerationStructureMemoryInfoNV.Buffer create(long address, int capacity)
Create aVkBindAccelerationStructureMemoryInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBindAccelerationStructureMemoryInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkBindAccelerationStructureMemoryInfoNV mallocStack()
Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkBindAccelerationStructureMemoryInfoNV callocStack()
Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkBindAccelerationStructureMemoryInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkBindAccelerationStructureMemoryInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkBindAccelerationStructureMemoryInfoNV.Buffer mallocStack(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkBindAccelerationStructureMemoryInfoNV.Buffer callocStack(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkBindAccelerationStructureMemoryInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkBindAccelerationStructureMemoryInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNV.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().
-
nmemory
public static long nmemory(long struct)
Unsafe version ofmemory().
-
nmemoryOffset
public static long nmemoryOffset(long struct)
Unsafe version ofmemoryOffset().
-
ndeviceIndexCount
public static int ndeviceIndexCount(long struct)
Unsafe version ofdeviceIndexCount().
-
npDeviceIndices
@Nullable public static java.nio.IntBuffer npDeviceIndices(long struct)
Unsafe version ofpDeviceIndices.
-
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.
-
nmemory
public static void nmemory(long struct, long value)Unsafe version ofmemory.
-
nmemoryOffset
public static void nmemoryOffset(long struct, long value)Unsafe version ofmemoryOffset.
-
ndeviceIndexCount
public static void ndeviceIndexCount(long struct, int value)Sets the specified value to thedeviceIndexCountfield of the specifiedstruct.
-
npDeviceIndices
public static void npDeviceIndices(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpDeviceIndices.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-