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.NativeResource
Structure specifying acceleration structure memory binding.Valid Usage
accelerationStructure
must not already be backed by a memory objectmemoryOffset
must be less than the size ofmemory
memory
must have been allocated using one of the memory types allowed in thememoryTypeBits
member of theVkMemoryRequirements
structure returned from a call toGetAccelerationStructureMemoryRequirementsNV
withaccelerationStructure
andtype
ofACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NV
memoryOffset
must be an integer multiple of thealignment
member of theVkMemoryRequirements
structure returned from a call toGetAccelerationStructureMemoryRequirementsNV
withaccelerationStructure
andtype
ofACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NV
- The
size
member of theVkMemoryRequirements
structure returned from a call toGetAccelerationStructureMemoryRequirementsNV
withaccelerationStructure
andtype
ofACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_NV
must be less than or equal to the size ofmemory
minusmemoryOffset
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_NV
pNext
must beNULL
accelerationStructure
must be a validVkAccelerationStructureNV
handlememory
must be a validVkDeviceMemory
handle- If
deviceIndexCount
is not 0,pDeviceIndices
must be a valid pointer to an array ofdeviceIndexCount
uint32_t
values - Both of
accelerationStructure
, andmemory
must have been created, allocated, or retrieved from the sameVkDevice
See Also
BindAccelerationStructureMemoryNV
Member documentation
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
– aVkDeviceMemory
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 theVkMemoryRequirements
::size
member inmemory
, starting frommemoryOffset
bytes, 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 class
VkBindAccelerationStructureMemoryInfoNV.Buffer
An array ofVkBindAccelerationStructureMemoryInfoNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACCELERATIONSTRUCTURE
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
DEVICEINDEXCOUNT
MEMORY
MEMORYOFFSET
PDEVICEINDICES
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkBindAccelerationStructureMemoryInfoNV(java.nio.ByteBuffer container)
Creates aVkBindAccelerationStructureMemoryInfoNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
accelerationStructure()
Returns the value of theaccelerationStructure
field.VkBindAccelerationStructureMemoryInfoNV
accelerationStructure(long value)
Sets the specified value to theaccelerationStructure
field.static VkBindAccelerationStructureMemoryInfoNV
calloc()
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated withmemCalloc
.static VkBindAccelerationStructureMemoryInfoNV.Buffer
calloc(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated withmemCalloc
.static VkBindAccelerationStructureMemoryInfoNV
callocStack()
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkBindAccelerationStructureMemoryInfoNV.Buffer
callocStack(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkBindAccelerationStructureMemoryInfoNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBindAccelerationStructureMemoryInfoNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBindAccelerationStructureMemoryInfoNV
create()
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated withBufferUtils
.static VkBindAccelerationStructureMemoryInfoNV.Buffer
create(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated withBufferUtils
.static VkBindAccelerationStructureMemoryInfoNV
create(long address)
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance for the specified memory address.static VkBindAccelerationStructureMemoryInfoNV.Buffer
create(long address, int capacity)
Create aVkBindAccelerationStructureMemoryInfoNV.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 thedeviceIndexCount
field.static VkBindAccelerationStructureMemoryInfoNV
malloc()
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated withmemAlloc
.static VkBindAccelerationStructureMemoryInfoNV.Buffer
malloc(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated withmemAlloc
.static VkBindAccelerationStructureMemoryInfoNV
mallocStack()
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated on the thread-localMemoryStack
.static VkBindAccelerationStructureMemoryInfoNV.Buffer
mallocStack(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkBindAccelerationStructureMemoryInfoNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkBindAccelerationStructureMemoryInfoNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated on the specifiedMemoryStack
.long
memory()
Returns the value of thememory
field.VkBindAccelerationStructureMemoryInfoNV
memory(long value)
Sets the specified value to thememory
field.long
memoryOffset()
Returns the value of thememoryOffset
field.VkBindAccelerationStructureMemoryInfoNV
memoryOffset(long value)
Sets the specified value to thememoryOffset
field.static long
naccelerationStructure(long struct)
Unsafe version ofaccelerationStructure()
.static void
naccelerationStructure(long struct, long value)
Unsafe version ofaccelerationStructure
.static int
ndeviceIndexCount(long struct)
Unsafe version ofdeviceIndexCount()
.static void
ndeviceIndexCount(long struct, int value)
Sets the specified value to thedeviceIndexCount
field of the specifiedstruct
.static long
nmemory(long struct)
Unsafe version ofmemory()
.static void
nmemory(long struct, long value)
Unsafe version ofmemory
.static long
nmemoryOffset(long struct)
Unsafe version ofmemoryOffset()
.static void
nmemoryOffset(long struct, long value)
Unsafe version ofmemoryOffset
.static java.nio.IntBuffer
npDeviceIndices(long struct)
Unsafe version ofpDeviceIndices
.static void
npDeviceIndices(long struct, java.nio.IntBuffer value)
Unsafe version ofpDeviceIndices
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.java.nio.IntBuffer
pDeviceIndices()
Returns aIntBuffer
view of the data pointed to by thepDeviceIndices
field.VkBindAccelerationStructureMemoryInfoNV
pDeviceIndices(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepDeviceIndices
field.long
pNext()
Returns the value of thepNext
field.VkBindAccelerationStructureMemoryInfoNV
pNext(long value)
Sets the specified value to thepNext
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 thesType
field.VkBindAccelerationStructureMemoryInfoNV
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkBindAccelerationStructureMemoryInfoNV
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
accelerationStructure
public long accelerationStructure()
Returns the value of theaccelerationStructure
field.
-
memory
public long memory()
Returns the value of thememory
field.
-
memoryOffset
public long memoryOffset()
Returns the value of thememoryOffset
field.
-
deviceIndexCount
public int deviceIndexCount()
Returns the value of thedeviceIndexCount
field.
-
pDeviceIndices
@Nullable public java.nio.IntBuffer pDeviceIndices()
Returns aIntBuffer
view of the data pointed to by thepDeviceIndices
field.
-
sType
public VkBindAccelerationStructureMemoryInfoNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkBindAccelerationStructureMemoryInfoNV pNext(long value)
Sets the specified value to thepNext
field.
-
accelerationStructure
public VkBindAccelerationStructureMemoryInfoNV accelerationStructure(long value)
Sets the specified value to theaccelerationStructure
field.
-
memory
public VkBindAccelerationStructureMemoryInfoNV memory(long value)
Sets the specified value to thememory
field.
-
memoryOffset
public VkBindAccelerationStructureMemoryInfoNV memoryOffset(long value)
Sets the specified value to thememoryOffset
field.
-
pDeviceIndices
public VkBindAccelerationStructureMemoryInfoNV pDeviceIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepDeviceIndices
field.
-
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 newVkBindAccelerationStructureMemoryInfoNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkBindAccelerationStructureMemoryInfoNV calloc()
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkBindAccelerationStructureMemoryInfoNV create()
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated withBufferUtils
.
-
create
public static VkBindAccelerationStructureMemoryInfoNV create(long address)
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkBindAccelerationStructureMemoryInfoNV createSafe(long address)
-
malloc
public static VkBindAccelerationStructureMemoryInfoNV.Buffer malloc(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkBindAccelerationStructureMemoryInfoNV.Buffer calloc(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkBindAccelerationStructureMemoryInfoNV.Buffer create(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkBindAccelerationStructureMemoryInfoNV.Buffer create(long address, int capacity)
Create aVkBindAccelerationStructureMemoryInfoNV.Buffer
instance 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 newVkBindAccelerationStructureMemoryInfoNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkBindAccelerationStructureMemoryInfoNV callocStack()
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkBindAccelerationStructureMemoryInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkBindAccelerationStructureMemoryInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindAccelerationStructureMemoryInfoNV
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkBindAccelerationStructureMemoryInfoNV.Buffer callocStack(int capacity)
Returns a newVkBindAccelerationStructureMemoryInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 thedeviceIndexCount
field 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
-
-