Package org.lwjgl.vulkan
Class VkAccelerationStructureMotionInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAccelerationStructureMotionInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAccelerationStructureMotionInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the parameters of a newly created acceleration structure object.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_MOTION_INFO_NVflagsmust be 0
Layout
struct VkAccelerationStructureMotionInfoNV { VkStructureTypesType(); void const *pNext(); uint32_tmaxInstances(); VkAccelerationStructureMotionInfoFlagsNVflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAccelerationStructureMotionInfoNV.BufferAn array ofVkAccelerationStructureMotionInfoNVstructs.
-
Constructor Summary
Constructors Constructor Description VkAccelerationStructureMotionInfoNV(java.nio.ByteBuffer container)Creates aVkAccelerationStructureMotionInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAccelerationStructureMotionInfoNVcalloc()Returns a newVkAccelerationStructureMotionInfoNVinstance allocated withmemCalloc.static VkAccelerationStructureMotionInfoNV.Buffercalloc(int capacity)Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated withmemCalloc.static VkAccelerationStructureMotionInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureMotionInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMotionInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureMotionInfoNVcreate()Returns a newVkAccelerationStructureMotionInfoNVinstance allocated withBufferUtils.static VkAccelerationStructureMotionInfoNV.Buffercreate(int capacity)Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated withBufferUtils.static VkAccelerationStructureMotionInfoNVcreate(long address)Returns a newVkAccelerationStructureMotionInfoNVinstance for the specified memory address.static VkAccelerationStructureMotionInfoNV.Buffercreate(long address, int capacity)Create aVkAccelerationStructureMotionInfoNV.Bufferinstance at the specified memory.static VkAccelerationStructureMotionInfoNVcreateSafe(long address)static VkAccelerationStructureMotionInfoNV.BuffercreateSafe(long address, int capacity)intflags()0 and reserved for future use.VkAccelerationStructureMotionInfoNVflags(int value)Sets the specified value to theflags()field.static VkAccelerationStructureMotionInfoNVmalloc()Returns a newVkAccelerationStructureMotionInfoNVinstance allocated withmemAlloc.static VkAccelerationStructureMotionInfoNV.Buffermalloc(int capacity)Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated withmemAlloc.static VkAccelerationStructureMotionInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureMotionInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureMotionInfoNVinstance allocated on the specifiedMemoryStack.intmaxInstances()the maximum number of instances that may be used in the motion top-level acceleration structure.VkAccelerationStructureMotionInfoNVmaxInstances(int value)Sets the specified value to themaxInstances()field.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnmaxInstances(long struct)Unsafe version ofmaxInstances().static voidnmaxInstances(long struct, int value)Unsafe version ofmaxInstances.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.VkAccelerationStructureMotionInfoNVpNext(long value)Sets the specified value to thepNext()field.VkAccelerationStructureMotionInfoNVset(int sType, long pNext, int maxInstances, int flags)Initializes this struct with the specified values.VkAccelerationStructureMotionInfoNVset(VkAccelerationStructureMotionInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkAccelerationStructureMotionInfoNVsType(int value)Sets the specified value to thesType()field.VkAccelerationStructureMotionInfoNVsType$Default()Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_MOTION_INFO_NVvalue to thesType()field.
-
-
-
Constructor Detail
-
VkAccelerationStructureMotionInfoNV
public VkAccelerationStructureMotionInfoNV(java.nio.ByteBuffer container)
Creates aVkAccelerationStructureMotionInfoNVinstance 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.
-
maxInstances
public int maxInstances()
the maximum number of instances that may be used in the motion top-level acceleration structure.
-
flags
public int flags()
0 and reserved for future use.
-
sType
public VkAccelerationStructureMotionInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAccelerationStructureMotionInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_MOTION_INFO_NVvalue to thesType()field.
-
pNext
public VkAccelerationStructureMotionInfoNV pNext(long value)
Sets the specified value to thepNext()field.
-
maxInstances
public VkAccelerationStructureMotionInfoNV maxInstances(int value)
Sets the specified value to themaxInstances()field.
-
flags
public VkAccelerationStructureMotionInfoNV flags(int value)
Sets the specified value to theflags()field.
-
set
public VkAccelerationStructureMotionInfoNV set(int sType, long pNext, int maxInstances, int flags)
Initializes this struct with the specified values.
-
set
public VkAccelerationStructureMotionInfoNV set(VkAccelerationStructureMotionInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAccelerationStructureMotionInfoNV malloc()
Returns a newVkAccelerationStructureMotionInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAccelerationStructureMotionInfoNV calloc()
Returns a newVkAccelerationStructureMotionInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAccelerationStructureMotionInfoNV create()
Returns a newVkAccelerationStructureMotionInfoNVinstance allocated withBufferUtils.
-
create
public static VkAccelerationStructureMotionInfoNV create(long address)
Returns a newVkAccelerationStructureMotionInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkAccelerationStructureMotionInfoNV createSafe(long address)
-
malloc
public static VkAccelerationStructureMotionInfoNV.Buffer malloc(int capacity)
Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAccelerationStructureMotionInfoNV.Buffer calloc(int capacity)
Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureMotionInfoNV.Buffer create(int capacity)
Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureMotionInfoNV.Buffer create(long address, int capacity)
Create aVkAccelerationStructureMotionInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAccelerationStructureMotionInfoNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAccelerationStructureMotionInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMotionInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureMotionInfoNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMotionInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureMotionInfoNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMotionInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAccelerationStructureMotionInfoNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureMotionInfoNV.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().
-
nmaxInstances
public static int nmaxInstances(long struct)
Unsafe version ofmaxInstances().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nmaxInstances
public static void nmaxInstances(long struct, int value)Unsafe version ofmaxInstances.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
-