Package org.lwjgl.vulkan
Class VkDescriptorAccelerationStructureInfoNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorAccelerationStructureInfoNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,NativeResource
,Pointer
public class VkDescriptorAccelerationStructureInfoNVX extends Struct implements NativeResource
Structure specifying acceleration to query for memory requirements.Valid Usage
accelerationStructureCount
must be equal to descriptorCount in the extended structure.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_DESCRIPTOR_ACCELERATION_STRUCTURE_INFO_NVX
pAccelerationStructures
must be a valid pointer to an array ofaccelerationStructureCount
validVkAccelerationStructureNVX
handlesaccelerationStructureCount
must be greater than 0
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.accelerationStructureCount
– the number of elements in pAccelerationStructurespAccelerationStructures
– are the acceleration structures to update
Layout
struct VkDescriptorAccelerationStructureInfoNVX { VkStructureType sType; void const * pNext; uint32_t accelerationStructureCount; VkAccelerationStructureNVX const * pAccelerationStructures; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDescriptorAccelerationStructureInfoNVX.Buffer
An array ofVkDescriptorAccelerationStructureInfoNVX
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACCELERATIONSTRUCTURECOUNT
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
PACCELERATIONSTRUCTURES
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor Description VkDescriptorAccelerationStructureInfoNVX(java.nio.ByteBuffer container)
Creates aVkDescriptorAccelerationStructureInfoNVX
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
accelerationStructureCount()
Returns the value of theaccelerationStructureCount
field.static VkDescriptorAccelerationStructureInfoNVX
calloc()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated withmemCalloc
.static VkDescriptorAccelerationStructureInfoNVX.Buffer
calloc(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated withmemCalloc
.static VkDescriptorAccelerationStructureInfoNVX
callocStack()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorAccelerationStructureInfoNVX.Buffer
callocStack(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorAccelerationStructureInfoNVX.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorAccelerationStructureInfoNVX
callocStack(MemoryStack stack)
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorAccelerationStructureInfoNVX
create()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated withBufferUtils
.static VkDescriptorAccelerationStructureInfoNVX.Buffer
create(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated withBufferUtils
.static VkDescriptorAccelerationStructureInfoNVX
create(long address)
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance for the specified memory address.static VkDescriptorAccelerationStructureInfoNVX.Buffer
create(long address, int capacity)
Create aVkDescriptorAccelerationStructureInfoNVX.Buffer
instance at the specified memory.static VkDescriptorAccelerationStructureInfoNVX
createSafe(long address)
static VkDescriptorAccelerationStructureInfoNVX.Buffer
createSafe(long address, int capacity)
static VkDescriptorAccelerationStructureInfoNVX
malloc()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated withmemAlloc
.static VkDescriptorAccelerationStructureInfoNVX.Buffer
malloc(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated withmemAlloc
.static VkDescriptorAccelerationStructureInfoNVX
mallocStack()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated on the thread-localMemoryStack
.static VkDescriptorAccelerationStructureInfoNVX.Buffer
mallocStack(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
.static VkDescriptorAccelerationStructureInfoNVX.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorAccelerationStructureInfoNVX
mallocStack(MemoryStack stack)
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated on the specifiedMemoryStack
.static int
naccelerationStructureCount(long struct)
Unsafe version ofaccelerationStructureCount()
.static void
naccelerationStructureCount(long struct, int value)
Sets the specified value to theaccelerationStructureCount
field of the specifiedstruct
.static java.nio.LongBuffer
npAccelerationStructures(long struct)
Unsafe version ofpAccelerationStructures
.static void
npAccelerationStructures(long struct, java.nio.LongBuffer value)
Unsafe version ofpAccelerationStructures
.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.LongBuffer
pAccelerationStructures()
Returns aLongBuffer
view of the data pointed to by thepAccelerationStructures
field.VkDescriptorAccelerationStructureInfoNVX
pAccelerationStructures(java.nio.LongBuffer value)
Sets the address of the specifiedLongBuffer
to thepAccelerationStructures
field.long
pNext()
Returns the value of thepNext
field.VkDescriptorAccelerationStructureInfoNVX
pNext(long value)
Sets the specified value to thepNext
field.VkDescriptorAccelerationStructureInfoNVX
set(int sType, long pNext, java.nio.LongBuffer pAccelerationStructures)
Initializes this struct with the specified values.VkDescriptorAccelerationStructureInfoNVX
set(VkDescriptorAccelerationStructureInfoNVX src)
Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
sType()
Returns the value of thesType
field.VkDescriptorAccelerationStructureInfoNVX
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.-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
Constructor Detail
-
VkDescriptorAccelerationStructureInfoNVX
public VkDescriptorAccelerationStructureInfoNVX(java.nio.ByteBuffer container)
Creates aVkDescriptorAccelerationStructureInfoNVX
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()
Description copied from class:Struct
Returnssizeof(struct)
.
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
accelerationStructureCount
public int accelerationStructureCount()
Returns the value of theaccelerationStructureCount
field.
-
pAccelerationStructures
public java.nio.LongBuffer pAccelerationStructures()
Returns aLongBuffer
view of the data pointed to by thepAccelerationStructures
field.
-
sType
public VkDescriptorAccelerationStructureInfoNVX sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDescriptorAccelerationStructureInfoNVX pNext(long value)
Sets the specified value to thepNext
field.
-
pAccelerationStructures
public VkDescriptorAccelerationStructureInfoNVX pAccelerationStructures(java.nio.LongBuffer value)
Sets the address of the specifiedLongBuffer
to thepAccelerationStructures
field.
-
set
public VkDescriptorAccelerationStructureInfoNVX set(int sType, long pNext, java.nio.LongBuffer pAccelerationStructures)
Initializes this struct with the specified values.
-
set
public VkDescriptorAccelerationStructureInfoNVX set(VkDescriptorAccelerationStructureInfoNVX src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorAccelerationStructureInfoNVX malloc()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDescriptorAccelerationStructureInfoNVX calloc()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDescriptorAccelerationStructureInfoNVX create()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated withBufferUtils
.
-
create
public static VkDescriptorAccelerationStructureInfoNVX create(long address)
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorAccelerationStructureInfoNVX createSafe(long address)
-
malloc
public static VkDescriptorAccelerationStructureInfoNVX.Buffer malloc(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDescriptorAccelerationStructureInfoNVX.Buffer calloc(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorAccelerationStructureInfoNVX.Buffer create(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorAccelerationStructureInfoNVX.Buffer create(long address, int capacity)
Create aVkDescriptorAccelerationStructureInfoNVX.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDescriptorAccelerationStructureInfoNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDescriptorAccelerationStructureInfoNVX mallocStack()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDescriptorAccelerationStructureInfoNVX callocStack()
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDescriptorAccelerationStructureInfoNVX mallocStack(MemoryStack stack)
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDescriptorAccelerationStructureInfoNVX callocStack(MemoryStack stack)
Returns a newVkDescriptorAccelerationStructureInfoNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDescriptorAccelerationStructureInfoNVX.Buffer mallocStack(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDescriptorAccelerationStructureInfoNVX.Buffer callocStack(int capacity)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDescriptorAccelerationStructureInfoNVX.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorAccelerationStructureInfoNVX.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDescriptorAccelerationStructureInfoNVX.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorAccelerationStructureInfoNVX.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()
.
-
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 theaccelerationStructureCount
field 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
-
-