public class VkAccelerationStructureCreateInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
compactedSize is not 0 then both info.geometryCount and info.instanceCount must be 0sType must be STRUCTURE_TYPE_ACCELERATION_STRUCTURE_CREATE_INFO_NVpNext must be NULLinfo must be a valid VkAccelerationStructureInfoNV structureVkAccelerationStructureInfoNV, CreateAccelerationStructureNV
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.compactedSize – the size from the result of CmdWriteAccelerationStructuresPropertiesNV if this acceleration structure is going to be the target of a compacting copy.info – the VkAccelerationStructureInfoNV structure specifying further parameters of the created acceleration structure.
struct VkAccelerationStructureCreateInfoNV {
VkStructureType sType;
void const * pNext;
VkDeviceSize compactedSize;
VkAccelerationStructureInfoNV info;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkAccelerationStructureCreateInfoNV.Buffer
An array of
VkAccelerationStructureCreateInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMPACTEDSIZE
The struct member offsets.
|
static int |
INFO
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkAccelerationStructureCreateInfoNV(java.nio.ByteBuffer container)
Creates a
VkAccelerationStructureCreateInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkAccelerationStructureCreateInfoNV |
calloc()
Returns a new
VkAccelerationStructureCreateInfoNV instance allocated with memCalloc. |
static VkAccelerationStructureCreateInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkAccelerationStructureCreateInfoNV.Buffer instance allocated with memCalloc. |
static VkAccelerationStructureCreateInfoNV |
callocStack()
Returns a new
VkAccelerationStructureCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAccelerationStructureCreateInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkAccelerationStructureCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAccelerationStructureCreateInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAccelerationStructureCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAccelerationStructureCreateInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAccelerationStructureCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
long |
compactedSize()
Returns the value of the
compactedSize field. |
VkAccelerationStructureCreateInfoNV |
compactedSize(long value)
Sets the specified value to the
compactedSize field. |
static VkAccelerationStructureCreateInfoNV |
create()
Returns a new
VkAccelerationStructureCreateInfoNV instance allocated with BufferUtils. |
static VkAccelerationStructureCreateInfoNV.Buffer |
create(int capacity)
Returns a new
VkAccelerationStructureCreateInfoNV.Buffer instance allocated with BufferUtils. |
static VkAccelerationStructureCreateInfoNV |
create(long address)
Returns a new
VkAccelerationStructureCreateInfoNV instance for the specified memory address. |
static VkAccelerationStructureCreateInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkAccelerationStructureCreateInfoNV.Buffer instance at the specified memory. |
static VkAccelerationStructureCreateInfoNV |
createSafe(long address)
|
static VkAccelerationStructureCreateInfoNV.Buffer |
createSafe(long address,
int capacity)
|
VkAccelerationStructureInfoNV |
info()
Returns a
VkAccelerationStructureInfoNV view of the info field. |
VkAccelerationStructureCreateInfoNV |
info(java.util.function.Consumer<VkAccelerationStructureInfoNV> consumer)
Passes the
info field to the specified Consumer. |
VkAccelerationStructureCreateInfoNV |
info(VkAccelerationStructureInfoNV value)
Copies the specified
VkAccelerationStructureInfoNV to the info field. |
static VkAccelerationStructureCreateInfoNV |
malloc()
Returns a new
VkAccelerationStructureCreateInfoNV instance allocated with memAlloc. |
static VkAccelerationStructureCreateInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkAccelerationStructureCreateInfoNV.Buffer instance allocated with memAlloc. |
static VkAccelerationStructureCreateInfoNV |
mallocStack()
Returns a new
VkAccelerationStructureCreateInfoNV instance allocated on the thread-local MemoryStack. |
static VkAccelerationStructureCreateInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkAccelerationStructureCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkAccelerationStructureCreateInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAccelerationStructureCreateInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkAccelerationStructureCreateInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAccelerationStructureCreateInfoNV instance allocated on the specified MemoryStack. |
static long |
ncompactedSize(long struct)
Unsafe version of
compactedSize(). |
static void |
ncompactedSize(long struct,
long value)
Unsafe version of
compactedSize. |
static VkAccelerationStructureInfoNV |
ninfo(long struct)
Unsafe version of
info(). |
static void |
ninfo(long struct,
VkAccelerationStructureInfoNV value)
Unsafe version of
info. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkAccelerationStructureCreateInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkAccelerationStructureCreateInfoNV |
set(int sType,
long pNext,
long compactedSize,
VkAccelerationStructureInfoNV info)
Initializes this struct with the specified values.
|
VkAccelerationStructureCreateInfoNV |
set(VkAccelerationStructureCreateInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkAccelerationStructureCreateInfoNV |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int COMPACTEDSIZE
public static final int INFO
public VkAccelerationStructureCreateInfoNV(java.nio.ByteBuffer container)
VkAccelerationStructureCreateInfoNV instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long compactedSize()
compactedSize field.public VkAccelerationStructureInfoNV info()
VkAccelerationStructureInfoNV view of the info field.public VkAccelerationStructureCreateInfoNV sType(int value)
sType field.public VkAccelerationStructureCreateInfoNV pNext(long value)
pNext field.public VkAccelerationStructureCreateInfoNV compactedSize(long value)
compactedSize field.public VkAccelerationStructureCreateInfoNV info(VkAccelerationStructureInfoNV value)
VkAccelerationStructureInfoNV to the info field.public VkAccelerationStructureCreateInfoNV info(java.util.function.Consumer<VkAccelerationStructureInfoNV> consumer)
info field to the specified Consumer.public VkAccelerationStructureCreateInfoNV set(int sType, long pNext, long compactedSize, VkAccelerationStructureInfoNV info)
public VkAccelerationStructureCreateInfoNV set(VkAccelerationStructureCreateInfoNV src)
src - the source structpublic static VkAccelerationStructureCreateInfoNV malloc()
VkAccelerationStructureCreateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkAccelerationStructureCreateInfoNV calloc()
VkAccelerationStructureCreateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkAccelerationStructureCreateInfoNV create()
VkAccelerationStructureCreateInfoNV instance allocated with BufferUtils.public static VkAccelerationStructureCreateInfoNV create(long address)
VkAccelerationStructureCreateInfoNV instance for the specified memory address.@Nullable public static VkAccelerationStructureCreateInfoNV createSafe(long address)
public static VkAccelerationStructureCreateInfoNV.Buffer malloc(int capacity)
VkAccelerationStructureCreateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAccelerationStructureCreateInfoNV.Buffer calloc(int capacity)
VkAccelerationStructureCreateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAccelerationStructureCreateInfoNV.Buffer create(int capacity)
VkAccelerationStructureCreateInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkAccelerationStructureCreateInfoNV.Buffer create(long address, int capacity)
VkAccelerationStructureCreateInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkAccelerationStructureCreateInfoNV.Buffer createSafe(long address, int capacity)
public static VkAccelerationStructureCreateInfoNV mallocStack()
VkAccelerationStructureCreateInfoNV instance allocated on the thread-local MemoryStack.public static VkAccelerationStructureCreateInfoNV callocStack()
VkAccelerationStructureCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkAccelerationStructureCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkAccelerationStructureCreateInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkAccelerationStructureCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkAccelerationStructureCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkAccelerationStructureCreateInfoNV.Buffer mallocStack(int capacity)
VkAccelerationStructureCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkAccelerationStructureCreateInfoNV.Buffer callocStack(int capacity)
VkAccelerationStructureCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkAccelerationStructureCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAccelerationStructureCreateInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkAccelerationStructureCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAccelerationStructureCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long ncompactedSize(long struct)
compactedSize().public static VkAccelerationStructureInfoNV ninfo(long struct)
info().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ncompactedSize(long struct,
long value)
compactedSize.public static void ninfo(long struct,
VkAccelerationStructureInfoNV value)
info.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.