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.NativeResourceStructure specifying the parameters of a newly created acceleration structure object.Valid Usage
- If
compactedSizeis not 0 then bothinfo.geometryCountandinfo.instanceCountmust be 0
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_CREATE_INFO_NVpNextmust beNULLinfomust be a validVkAccelerationStructureInfoNVstructure
See Also
VkAccelerationStructureInfoNV,CreateAccelerationStructureNVMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.compactedSize– the size from the result ofCmdWriteAccelerationStructuresPropertiesNVif this acceleration structure is going to be the target of a compacting copy.info– theVkAccelerationStructureInfoNVstructure that specifies further parameters of the created acceleration structure.
Layout
struct VkAccelerationStructureCreateInfoNV { VkStructureType sType; void const * pNext; VkDeviceSize compactedSize;VkAccelerationStructureInfoNVinfo; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAccelerationStructureCreateInfoNV.BufferAn array ofVkAccelerationStructureCreateInfoNVstructs.
-
Constructor Summary
Constructors Constructor Description VkAccelerationStructureCreateInfoNV(java.nio.ByteBuffer container)Creates aVkAccelerationStructureCreateInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAccelerationStructureCreateInfoNVcalloc()Returns a newVkAccelerationStructureCreateInfoNVinstance allocated withmemCalloc.static VkAccelerationStructureCreateInfoNV.Buffercalloc(int capacity)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkAccelerationStructureCreateInfoNVcallocStack()Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkAccelerationStructureCreateInfoNV.BuffercallocStack(int capacity)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkAccelerationStructureCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longcompactedSize()Returns the value of thecompactedSizefield.VkAccelerationStructureCreateInfoNVcompactedSize(long value)Sets the specified value to thecompactedSizefield.static VkAccelerationStructureCreateInfoNVcreate()Returns a newVkAccelerationStructureCreateInfoNVinstance allocated withBufferUtils.static VkAccelerationStructureCreateInfoNV.Buffercreate(int capacity)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkAccelerationStructureCreateInfoNVcreate(long address)Returns a newVkAccelerationStructureCreateInfoNVinstance for the specified memory address.static VkAccelerationStructureCreateInfoNV.Buffercreate(long address, int capacity)Create aVkAccelerationStructureCreateInfoNV.Bufferinstance at the specified memory.static VkAccelerationStructureCreateInfoNVcreateSafe(long address)static VkAccelerationStructureCreateInfoNV.BuffercreateSafe(long address, int capacity)VkAccelerationStructureInfoNVinfo()Returns aVkAccelerationStructureInfoNVview of theinfofield.VkAccelerationStructureCreateInfoNVinfo(java.util.function.Consumer<VkAccelerationStructureInfoNV> consumer)Passes theinfofield to the specifiedConsumer.VkAccelerationStructureCreateInfoNVinfo(VkAccelerationStructureInfoNV value)Copies the specifiedVkAccelerationStructureInfoNVto theinfofield.static VkAccelerationStructureCreateInfoNVmalloc()Returns a newVkAccelerationStructureCreateInfoNVinstance allocated withmemAlloc.static VkAccelerationStructureCreateInfoNV.Buffermalloc(int capacity)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkAccelerationStructureCreateInfoNVmallocStack()Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the thread-localMemoryStack.static VkAccelerationStructureCreateInfoNV.BuffermallocStack(int capacity)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkAccelerationStructureCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the specifiedMemoryStack.static longncompactedSize(long struct)Unsafe version ofcompactedSize().static voidncompactedSize(long struct, long value)Unsafe version ofcompactedSize.static VkAccelerationStructureInfoNVninfo(long struct)Unsafe version ofinfo().static voidninfo(long struct, VkAccelerationStructureInfoNV value)Unsafe version ofinfo.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.longpNext()Returns the value of thepNextfield.VkAccelerationStructureCreateInfoNVpNext(long value)Sets the specified value to thepNextfield.VkAccelerationStructureCreateInfoNVset(int sType, long pNext, long compactedSize, VkAccelerationStructureInfoNV info)Initializes this struct with the specified values.VkAccelerationStructureCreateInfoNVset(VkAccelerationStructureCreateInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkAccelerationStructureCreateInfoNVsType(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
-
VkAccelerationStructureCreateInfoNV
public VkAccelerationStructureCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkAccelerationStructureCreateInfoNVinstance 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.
-
compactedSize
public long compactedSize()
Returns the value of thecompactedSizefield.
-
info
public VkAccelerationStructureInfoNV info()
Returns aVkAccelerationStructureInfoNVview of theinfofield.
-
sType
public VkAccelerationStructureCreateInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkAccelerationStructureCreateInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
compactedSize
public VkAccelerationStructureCreateInfoNV compactedSize(long value)
Sets the specified value to thecompactedSizefield.
-
info
public VkAccelerationStructureCreateInfoNV info(VkAccelerationStructureInfoNV value)
Copies the specifiedVkAccelerationStructureInfoNVto theinfofield.
-
info
public VkAccelerationStructureCreateInfoNV info(java.util.function.Consumer<VkAccelerationStructureInfoNV> consumer)
Passes theinfofield 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 newVkAccelerationStructureCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAccelerationStructureCreateInfoNV calloc()
Returns a newVkAccelerationStructureCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAccelerationStructureCreateInfoNV create()
Returns a newVkAccelerationStructureCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkAccelerationStructureCreateInfoNV create(long address)
Returns a newVkAccelerationStructureCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkAccelerationStructureCreateInfoNV createSafe(long address)
-
malloc
public static VkAccelerationStructureCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAccelerationStructureCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureCreateInfoNV.Buffer create(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureCreateInfoNV.Buffer create(long address, int capacity)
Create aVkAccelerationStructureCreateInfoNV.Bufferinstance 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 newVkAccelerationStructureCreateInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkAccelerationStructureCreateInfoNV callocStack()
Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkAccelerationStructureCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkAccelerationStructureCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkAccelerationStructureCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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().
-
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
-
-