Package org.lwjgl.vulkan
Class VkAccelerationStructureCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAccelerationStructureCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkAccelerationStructureCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying the parameters of a newly created acceleration structure object.Valid Usage
- If
compactedSize
is not 0 then bothinfo.geometryCount
andinfo.instanceCount
must be 0
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_CREATE_INFO_NV
pNext
must beNULL
info
must be a validVkAccelerationStructureInfoNV
structure
See Also
VkAccelerationStructureInfoNV
,CreateAccelerationStructureNV
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.compactedSize
– the size from the result ofCmdWriteAccelerationStructuresPropertiesNV
if this acceleration structure is going to be the target of a compacting copy.info
– theVkAccelerationStructureInfoNV
structure that specifies further parameters of the created acceleration structure.
Layout
struct VkAccelerationStructureCreateInfoNV { VkStructureType sType; void const * pNext; VkDeviceSize compactedSize;
VkAccelerationStructureInfoNV
info; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkAccelerationStructureCreateInfoNV.Buffer
An array ofVkAccelerationStructureCreateInfoNV
structs.
-
Constructor Summary
Constructors Constructor Description VkAccelerationStructureCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkAccelerationStructureCreateInfoNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAccelerationStructureCreateInfoNV
calloc()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated withmemCalloc
.static VkAccelerationStructureCreateInfoNV.Buffer
calloc(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated withmemCalloc
.static VkAccelerationStructureCreateInfoNV
callocStack()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkAccelerationStructureCreateInfoNV.Buffer
callocStack(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkAccelerationStructureCreateInfoNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkAccelerationStructureCreateInfoNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.long
compactedSize()
Returns the value of thecompactedSize
field.VkAccelerationStructureCreateInfoNV
compactedSize(long value)
Sets the specified value to thecompactedSize
field.static VkAccelerationStructureCreateInfoNV
create()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated withBufferUtils
.static VkAccelerationStructureCreateInfoNV.Buffer
create(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated withBufferUtils
.static VkAccelerationStructureCreateInfoNV
create(long address)
Returns a newVkAccelerationStructureCreateInfoNV
instance for the specified memory address.static VkAccelerationStructureCreateInfoNV.Buffer
create(long address, int capacity)
Create aVkAccelerationStructureCreateInfoNV.Buffer
instance at the specified memory.static VkAccelerationStructureCreateInfoNV
createSafe(long address)
static VkAccelerationStructureCreateInfoNV.Buffer
createSafe(long address, int capacity)
VkAccelerationStructureInfoNV
info()
Returns aVkAccelerationStructureInfoNV
view of theinfo
field.VkAccelerationStructureCreateInfoNV
info(java.util.function.Consumer<VkAccelerationStructureInfoNV> consumer)
Passes theinfo
field to the specifiedConsumer
.VkAccelerationStructureCreateInfoNV
info(VkAccelerationStructureInfoNV value)
Copies the specifiedVkAccelerationStructureInfoNV
to theinfo
field.static VkAccelerationStructureCreateInfoNV
malloc()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated withmemAlloc
.static VkAccelerationStructureCreateInfoNV.Buffer
malloc(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated withmemAlloc
.static VkAccelerationStructureCreateInfoNV
mallocStack()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated on the thread-localMemoryStack
.static VkAccelerationStructureCreateInfoNV.Buffer
mallocStack(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkAccelerationStructureCreateInfoNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkAccelerationStructureCreateInfoNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated on the specifiedMemoryStack
.static long
ncompactedSize(long struct)
Unsafe version ofcompactedSize()
.static void
ncompactedSize(long struct, long value)
Unsafe version ofcompactedSize
.static VkAccelerationStructureInfoNV
ninfo(long struct)
Unsafe version ofinfo()
.static void
ninfo(long struct, VkAccelerationStructureInfoNV value)
Unsafe version ofinfo
.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
.long
pNext()
Returns the value of thepNext
field.VkAccelerationStructureCreateInfoNV
pNext(long value)
Sets the specified value to thepNext
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 thesType
field.VkAccelerationStructureCreateInfoNV
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
-
VkAccelerationStructureCreateInfoNV
public VkAccelerationStructureCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkAccelerationStructureCreateInfoNV
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.
-
compactedSize
public long compactedSize()
Returns the value of thecompactedSize
field.
-
info
public VkAccelerationStructureInfoNV info()
Returns aVkAccelerationStructureInfoNV
view of theinfo
field.
-
sType
public VkAccelerationStructureCreateInfoNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkAccelerationStructureCreateInfoNV pNext(long value)
Sets the specified value to thepNext
field.
-
compactedSize
public VkAccelerationStructureCreateInfoNV compactedSize(long value)
Sets the specified value to thecompactedSize
field.
-
info
public VkAccelerationStructureCreateInfoNV info(VkAccelerationStructureInfoNV value)
Copies the specifiedVkAccelerationStructureInfoNV
to theinfo
field.
-
info
public VkAccelerationStructureCreateInfoNV info(java.util.function.Consumer<VkAccelerationStructureInfoNV> consumer)
Passes theinfo
field to the specifiedConsumer
.
-
set
public VkAccelerationStructureCreateInfoNV set(int sType, long pNext, long compactedSize, VkAccelerationStructureInfoNV info)
Initializes this struct with the specified values.
-
set
public VkAccelerationStructureCreateInfoNV set(VkAccelerationStructureCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkAccelerationStructureCreateInfoNV malloc()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkAccelerationStructureCreateInfoNV calloc()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkAccelerationStructureCreateInfoNV create()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated withBufferUtils
.
-
create
public static VkAccelerationStructureCreateInfoNV create(long address)
Returns a newVkAccelerationStructureCreateInfoNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkAccelerationStructureCreateInfoNV createSafe(long address)
-
malloc
public static VkAccelerationStructureCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkAccelerationStructureCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkAccelerationStructureCreateInfoNV.Buffer create(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkAccelerationStructureCreateInfoNV.Buffer create(long address, int capacity)
Create aVkAccelerationStructureCreateInfoNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkAccelerationStructureCreateInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkAccelerationStructureCreateInfoNV mallocStack()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkAccelerationStructureCreateInfoNV callocStack()
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkAccelerationStructureCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkAccelerationStructureCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkAccelerationStructureCreateInfoNV.Buffer mallocStack(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkAccelerationStructureCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkAccelerationStructureCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkAccelerationStructureCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNV.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()
.
-
ncompactedSize
public static long ncompactedSize(long struct)
Unsafe version ofcompactedSize()
.
-
ninfo
public static VkAccelerationStructureInfoNV ninfo(long struct)
Unsafe version ofinfo()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
ncompactedSize
public static void ncompactedSize(long struct, long value)
Unsafe version ofcompactedSize
.
-
ninfo
public static void ninfo(long struct, VkAccelerationStructureInfoNV value)
Unsafe version ofinfo
.
-
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
-
-