Package org.lwjgl.vulkan
Class VkWriteDescriptorSetAccelerationStructureNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkWriteDescriptorSetAccelerationStructureNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkWriteDescriptorSetAccelerationStructureNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying acceleration structure descriptor info.Valid Usage
accelerationStructureCountmust be equal todescriptorCountin the extended structure- Each acceleration structure in
pAccelerationStructuresmust have been created withACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_NV
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NVpAccelerationStructuresmust be a valid pointer to an array ofaccelerationStructureCountvalidVkAccelerationStructureNVhandlesaccelerationStructureCountmust be greater than 0
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.accelerationStructureCount– the number of elements inpAccelerationStructures.pAccelerationStructures– are the acceleration structures to update.
Layout
struct VkWriteDescriptorSetAccelerationStructureNV { VkStructureType sType; void const * pNext; uint32_t accelerationStructureCount; VkAccelerationStructureNV const * pAccelerationStructures; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkWriteDescriptorSetAccelerationStructureNV.BufferAn array ofVkWriteDescriptorSetAccelerationStructureNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACCELERATIONSTRUCTURECOUNTThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intPACCELERATIONSTRUCTURES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkWriteDescriptorSetAccelerationStructureNV(java.nio.ByteBuffer container)Creates aVkWriteDescriptorSetAccelerationStructureNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaccelerationStructureCount()Returns the value of theaccelerationStructureCountfield.static VkWriteDescriptorSetAccelerationStructureNVcalloc()Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated withmemCalloc.static VkWriteDescriptorSetAccelerationStructureNV.Buffercalloc(int capacity)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated withmemCalloc.static VkWriteDescriptorSetAccelerationStructureNVcallocStack()Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetAccelerationStructureNV.BuffercallocStack(int capacity)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetAccelerationStructureNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetAccelerationStructureNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetAccelerationStructureNVcreate()Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated withBufferUtils.static VkWriteDescriptorSetAccelerationStructureNV.Buffercreate(int capacity)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated withBufferUtils.static VkWriteDescriptorSetAccelerationStructureNVcreate(long address)Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance for the specified memory address.static VkWriteDescriptorSetAccelerationStructureNV.Buffercreate(long address, int capacity)Create aVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance at the specified memory.static VkWriteDescriptorSetAccelerationStructureNVcreateSafe(long address)static VkWriteDescriptorSetAccelerationStructureNV.BuffercreateSafe(long address, int capacity)static VkWriteDescriptorSetAccelerationStructureNVmalloc()Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated withmemAlloc.static VkWriteDescriptorSetAccelerationStructureNV.Buffermalloc(int capacity)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated withmemAlloc.static VkWriteDescriptorSetAccelerationStructureNVmallocStack()Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the thread-localMemoryStack.static VkWriteDescriptorSetAccelerationStructureNV.BuffermallocStack(int capacity)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the thread-localMemoryStack.static VkWriteDescriptorSetAccelerationStructureNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the specifiedMemoryStack.static VkWriteDescriptorSetAccelerationStructureNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the specifiedMemoryStack.static intnaccelerationStructureCount(long struct)Unsafe version ofaccelerationStructureCount().static voidnaccelerationStructureCount(long struct, int value)Sets the specified value to theaccelerationStructureCountfield of the specifiedstruct.static java.nio.LongBuffernpAccelerationStructures(long struct)Unsafe version ofpAccelerationStructures.static voidnpAccelerationStructures(long struct, java.nio.LongBuffer value)Unsafe version ofpAccelerationStructures.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.LongBufferpAccelerationStructures()Returns aLongBufferview of the data pointed to by thepAccelerationStructuresfield.VkWriteDescriptorSetAccelerationStructureNVpAccelerationStructures(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepAccelerationStructuresfield.longpNext()Returns the value of thepNextfield.VkWriteDescriptorSetAccelerationStructureNVpNext(long value)Sets the specified value to thepNextfield.VkWriteDescriptorSetAccelerationStructureNVset(int sType, long pNext, java.nio.LongBuffer pAccelerationStructures)Initializes this struct with the specified values.VkWriteDescriptorSetAccelerationStructureNVset(VkWriteDescriptorSetAccelerationStructureNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkWriteDescriptorSetAccelerationStructureNVsType(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
-
VkWriteDescriptorSetAccelerationStructureNV
public VkWriteDescriptorSetAccelerationStructureNV(java.nio.ByteBuffer container)
Creates aVkWriteDescriptorSetAccelerationStructureNVinstance 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.
-
accelerationStructureCount
public int accelerationStructureCount()
Returns the value of theaccelerationStructureCountfield.
-
pAccelerationStructures
public java.nio.LongBuffer pAccelerationStructures()
Returns aLongBufferview of the data pointed to by thepAccelerationStructuresfield.
-
sType
public VkWriteDescriptorSetAccelerationStructureNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkWriteDescriptorSetAccelerationStructureNV pNext(long value)
Sets the specified value to thepNextfield.
-
pAccelerationStructures
public VkWriteDescriptorSetAccelerationStructureNV pAccelerationStructures(java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepAccelerationStructuresfield.
-
set
public VkWriteDescriptorSetAccelerationStructureNV set(int sType, long pNext, java.nio.LongBuffer pAccelerationStructures)
Initializes this struct with the specified values.
-
set
public VkWriteDescriptorSetAccelerationStructureNV set(VkWriteDescriptorSetAccelerationStructureNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkWriteDescriptorSetAccelerationStructureNV malloc()
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkWriteDescriptorSetAccelerationStructureNV calloc()
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkWriteDescriptorSetAccelerationStructureNV create()
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated withBufferUtils.
-
create
public static VkWriteDescriptorSetAccelerationStructureNV create(long address)
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkWriteDescriptorSetAccelerationStructureNV createSafe(long address)
-
malloc
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer malloc(int capacity)
Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer calloc(int capacity)
Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer create(int capacity)
Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer create(long address, int capacity)
Create aVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkWriteDescriptorSetAccelerationStructureNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkWriteDescriptorSetAccelerationStructureNV mallocStack()
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkWriteDescriptorSetAccelerationStructureNV callocStack()
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkWriteDescriptorSetAccelerationStructureNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkWriteDescriptorSetAccelerationStructureNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer mallocStack(int capacity)
Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer callocStack(int capacity)
Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetAccelerationStructureNV.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().
-
naccelerationStructureCount
public static int naccelerationStructureCount(long struct)
Unsafe version ofaccelerationStructureCount().
-
npAccelerationStructures
public static java.nio.LongBuffer npAccelerationStructures(long struct)
Unsafe version ofpAccelerationStructures.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
naccelerationStructureCount
public static void naccelerationStructureCount(long struct, int value)Sets the specified value to theaccelerationStructureCountfield of the specifiedstruct.
-
npAccelerationStructures
public static void npAccelerationStructures(long struct, java.nio.LongBuffer value)Unsafe version ofpAccelerationStructures.
-
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
-
-