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 information.Valid Usage
accelerationStructureCountmust be equal todescriptorCountin the extended structure- Each acceleration structure in
pAccelerationStructuresmust have been created withACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_KHR - If the nullDescriptor feature is not enabled, each member of
pAccelerationStructuresmust not beNULL_HANDLE
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NVpAccelerationStructuresmust be a valid pointer to an array ofaccelerationStructureCountvalid orNULL_HANDLEVkAccelerationStructureNVhandlesaccelerationStructureCountmust be greater than 0
Layout
struct VkWriteDescriptorSetAccelerationStructureNV { VkStructureTypesType(); void const *pNext(); uint32_taccelerationStructureCount(); 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 Deprecated Methods Modifier and Type Method Description intaccelerationStructureCount()the number of elements inpAccelerationStructures.VkWriteDescriptorSetAccelerationStructureNVaccelerationStructureCount(int value)Sets the specified value to theaccelerationStructureCount()field.static VkWriteDescriptorSetAccelerationStructureNVcalloc()Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated withmemCalloc.static VkWriteDescriptorSetAccelerationStructureNV.Buffercalloc(int capacity)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated withmemCalloc.static VkWriteDescriptorSetAccelerationStructureNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetAccelerationStructureNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetAccelerationStructureNVcallocStack()Deprecated.static VkWriteDescriptorSetAccelerationStructureNV.BuffercallocStack(int capacity)Deprecated.static VkWriteDescriptorSetAccelerationStructureNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkWriteDescriptorSetAccelerationStructureNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkWriteDescriptorSetAccelerationStructureNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetAccelerationStructureNV.Bufferinstance allocated on the specifiedMemoryStack.static VkWriteDescriptorSetAccelerationStructureNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the specifiedMemoryStack.static VkWriteDescriptorSetAccelerationStructureNVmallocStack()Deprecated.static VkWriteDescriptorSetAccelerationStructureNV.BuffermallocStack(int capacity)Deprecated.static VkWriteDescriptorSetAccelerationStructureNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkWriteDescriptorSetAccelerationStructureNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a pointer to an array ofVkAccelerationStructureNVstructures specifying the acceleration structures to update.VkWriteDescriptorSetAccelerationStructureNVpAccelerationStructures(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepAccelerationStructures()field.longpNext()NULLor a pointer to a structure extending this structure.VkWriteDescriptorSetAccelerationStructureNVpNext(long value)Sets the specified value to thepNext()field.VkWriteDescriptorSetAccelerationStructureNVset(int sType, long pNext, int accelerationStructureCount, java.nio.LongBuffer pAccelerationStructures)Initializes this struct with the specified values.VkWriteDescriptorSetAccelerationStructureNVset(VkWriteDescriptorSetAccelerationStructureNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkWriteDescriptorSetAccelerationStructureNVsType(int value)Sets the specified value to thesType()field.VkWriteDescriptorSetAccelerationStructureNVsType$Default()Sets theSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NVvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
accelerationStructureCount
public int accelerationStructureCount()
the number of elements inpAccelerationStructures.
-
pAccelerationStructures
@Nullable public java.nio.LongBuffer pAccelerationStructures()
a pointer to an array ofVkAccelerationStructureNVstructures specifying the acceleration structures to update.
-
sType
public VkWriteDescriptorSetAccelerationStructureNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkWriteDescriptorSetAccelerationStructureNV sType$Default()
Sets theSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NVvalue to thesType()field.
-
pNext
public VkWriteDescriptorSetAccelerationStructureNV pNext(long value)
Sets the specified value to thepNext()field.
-
accelerationStructureCount
public VkWriteDescriptorSetAccelerationStructureNV accelerationStructureCount(int value)
Sets the specified value to theaccelerationStructureCount()field.
-
pAccelerationStructures
public VkWriteDescriptorSetAccelerationStructureNV pAccelerationStructures(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepAccelerationStructures()field.
-
set
public VkWriteDescriptorSetAccelerationStructureNV set(int sType, long pNext, int accelerationStructureCount, @Nullable 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
@Deprecated public static VkWriteDescriptorSetAccelerationStructureNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkWriteDescriptorSetAccelerationStructureNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkWriteDescriptorSetAccelerationStructureNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkWriteDescriptorSetAccelerationStructureNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkWriteDescriptorSetAccelerationStructureNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkWriteDescriptorSetAccelerationStructureNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkWriteDescriptorSetAccelerationStructureNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkWriteDescriptorSetAccelerationStructureNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkWriteDescriptorSetAccelerationStructureNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetAccelerationStructureNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkWriteDescriptorSetAccelerationStructureNV calloc(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
-
malloc
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer malloc(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
-
calloc
public static VkWriteDescriptorSetAccelerationStructureNV.Buffer calloc(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
@Nullable 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, @Nullable java.nio.LongBuffer value)Unsafe version ofpAccelerationStructures.
-
-