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,CreateAccelerationStructureNVLayout
struct VkAccelerationStructureCreateInfoNV { VkStructureTypesType(); void const *pNext(); VkDeviceSizecompactedSize();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 Deprecated 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 VkAccelerationStructureCreateInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureCreateInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureCreateInfoNVcallocStack()Deprecated.static VkAccelerationStructureCreateInfoNV.BuffercallocStack(int capacity)Deprecated.static VkAccelerationStructureCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAccelerationStructureCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.longcompactedSize()the size from the result ofCmdWriteAccelerationStructuresPropertiesNVif this acceleration structure is going to be the target of a compacting copy.VkAccelerationStructureCreateInfoNVcompactedSize(long value)Sets the specified value to thecompactedSize()field.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()theVkAccelerationStructureInfoNVstructure specifying further parameters of the created acceleration structure.VkAccelerationStructureCreateInfoNVinfo(java.util.function.Consumer<VkAccelerationStructureInfoNV> consumer)Passes theinfo()field to the specifiedConsumer.VkAccelerationStructureCreateInfoNVinfo(VkAccelerationStructureInfoNV value)Copies the specifiedVkAccelerationStructureInfoNVto theinfo()field.static VkAccelerationStructureCreateInfoNVmalloc()Returns a newVkAccelerationStructureCreateInfoNVinstance allocated withmemAlloc.static VkAccelerationStructureCreateInfoNV.Buffermalloc(int capacity)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkAccelerationStructureCreateInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureCreateInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureCreateInfoNVmallocStack()Deprecated.static VkAccelerationStructureCreateInfoNV.BuffermallocStack(int capacity)Deprecated.static VkAccelerationStructureCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAccelerationStructureCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkAccelerationStructureCreateInfoNVpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkAccelerationStructureCreateInfoNVsType(int value)Sets the specified value to thesType()field.VkAccelerationStructureCreateInfoNVsType$Default()Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_CREATE_INFO_NVvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
compactedSize
public long compactedSize()
the size from the result ofCmdWriteAccelerationStructuresPropertiesNVif this acceleration structure is going to be the target of a compacting copy.
-
info
public VkAccelerationStructureInfoNV info()
theVkAccelerationStructureInfoNVstructure specifying further parameters of the created acceleration structure.
-
sType
public VkAccelerationStructureCreateInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAccelerationStructureCreateInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_CREATE_INFO_NVvalue 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 specifiedVkAccelerationStructureInfoNVto 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 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
@Deprecated public static VkAccelerationStructureCreateInfoNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAccelerationStructureCreateInfoNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAccelerationStructureCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAccelerationStructureCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAccelerationStructureCreateInfoNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkAccelerationStructureCreateInfoNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAccelerationStructureCreateInfoNV.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 VkAccelerationStructureCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkAccelerationStructureCreateInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureCreateInfoNV calloc(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
-
malloc
public static VkAccelerationStructureCreateInfoNV.Buffer malloc(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
-
calloc
public static VkAccelerationStructureCreateInfoNV.Buffer calloc(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
-
-