Package org.lwjgl.vulkan
Class VkAccelerationStructureGeometryMotionTrianglesDataNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAccelerationStructureGeometryMotionTrianglesDataNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAccelerationStructureGeometryMotionTrianglesDataNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying vertex motion in a bottom-level acceleration structure.Description
If
VkAccelerationStructureGeometryMotionTrianglesDataNVis included in thepNextchain of aVkAccelerationStructureGeometryTrianglesDataKHRstructure, the basic vertex positions are used for the position of the triangles in the geometry at time 0.0 and thevertexDatainVkAccelerationStructureGeometryMotionTrianglesDataNVis used for the vertex positions at time 1.0, with positions linearly interpolated at intermediate times.Indexing for
VkAccelerationStructureGeometryMotionTrianglesDataNVvertexDatais equivalent to the basic vertex position data.Valid Usage (Implicit)
See Also
Layout
struct VkAccelerationStructureGeometryMotionTrianglesDataNV { VkStructureTypesType(); void const *pNext();VkDeviceOrHostAddressConstKHRvertexData(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAccelerationStructureGeometryMotionTrianglesDataNV.BufferAn array ofVkAccelerationStructureGeometryMotionTrianglesDataNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VERTEXDATAThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkAccelerationStructureGeometryMotionTrianglesDataNV(java.nio.ByteBuffer container)Creates aVkAccelerationStructureGeometryMotionTrianglesDataNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAccelerationStructureGeometryMotionTrianglesDataNVcalloc()Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated withmemCalloc.static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffercalloc(int capacity)Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated withmemCalloc.static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureGeometryMotionTrianglesDataNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAccelerationStructureGeometryMotionTrianglesDataNVcreate()Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated withBufferUtils.static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffercreate(int capacity)Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated withBufferUtils.static VkAccelerationStructureGeometryMotionTrianglesDataNVcreate(long address)Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance for the specified memory address.static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffercreate(long address, int capacity)Create aVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance at the specified memory.static VkAccelerationStructureGeometryMotionTrianglesDataNVcreateSafe(long address)static VkAccelerationStructureGeometryMotionTrianglesDataNV.BuffercreateSafe(long address, int capacity)static VkAccelerationStructureGeometryMotionTrianglesDataNVmalloc()Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated withmemAlloc.static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffermalloc(int capacity)Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated withmemAlloc.static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated on the specifiedMemoryStack.static VkAccelerationStructureGeometryMotionTrianglesDataNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated on the specifiedMemoryStack.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.static VkDeviceOrHostAddressConstKHRnvertexData(long struct)Unsafe version ofvertexData().static voidnvertexData(long struct, VkDeviceOrHostAddressConstKHR value)Unsafe version ofvertexData.longpNext()NULLor a pointer to a structure extending this structure.VkAccelerationStructureGeometryMotionTrianglesDataNVpNext(long value)Sets the specified value to thepNext()field.VkAccelerationStructureGeometryMotionTrianglesDataNVset(int sType, long pNext, VkDeviceOrHostAddressConstKHR vertexData)Initializes this struct with the specified values.VkAccelerationStructureGeometryMotionTrianglesDataNVset(VkAccelerationStructureGeometryMotionTrianglesDataNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkAccelerationStructureGeometryMotionTrianglesDataNVsType(int value)Sets the specified value to thesType()field.VkAccelerationStructureGeometryMotionTrianglesDataNVsType$Default()Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_MOTION_TRIANGLES_DATA_NVvalue to thesType()field.VkDeviceOrHostAddressConstKHRvertexData()a pointer to vertex data for this geometry at time 1.0VkAccelerationStructureGeometryMotionTrianglesDataNVvertexData(java.util.function.Consumer<VkDeviceOrHostAddressConstKHR> consumer)Passes thevertexData()field to the specifiedConsumer.VkAccelerationStructureGeometryMotionTrianglesDataNVvertexData(VkDeviceOrHostAddressConstKHR value)Copies the specifiedVkDeviceOrHostAddressConstKHRto thevertexData()field.
-
-
-
Constructor Detail
-
VkAccelerationStructureGeometryMotionTrianglesDataNV
public VkAccelerationStructureGeometryMotionTrianglesDataNV(java.nio.ByteBuffer container)
Creates aVkAccelerationStructureGeometryMotionTrianglesDataNVinstance 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.
-
vertexData
public VkDeviceOrHostAddressConstKHR vertexData()
a pointer to vertex data for this geometry at time 1.0
-
sType
public VkAccelerationStructureGeometryMotionTrianglesDataNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAccelerationStructureGeometryMotionTrianglesDataNV sType$Default()
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_MOTION_TRIANGLES_DATA_NVvalue to thesType()field.
-
pNext
public VkAccelerationStructureGeometryMotionTrianglesDataNV pNext(long value)
Sets the specified value to thepNext()field.
-
vertexData
public VkAccelerationStructureGeometryMotionTrianglesDataNV vertexData(VkDeviceOrHostAddressConstKHR value)
Copies the specifiedVkDeviceOrHostAddressConstKHRto thevertexData()field.
-
vertexData
public VkAccelerationStructureGeometryMotionTrianglesDataNV vertexData(java.util.function.Consumer<VkDeviceOrHostAddressConstKHR> consumer)
Passes thevertexData()field to the specifiedConsumer.
-
set
public VkAccelerationStructureGeometryMotionTrianglesDataNV set(int sType, long pNext, VkDeviceOrHostAddressConstKHR vertexData)
Initializes this struct with the specified values.
-
set
public VkAccelerationStructureGeometryMotionTrianglesDataNV set(VkAccelerationStructureGeometryMotionTrianglesDataNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAccelerationStructureGeometryMotionTrianglesDataNV malloc()
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAccelerationStructureGeometryMotionTrianglesDataNV calloc()
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAccelerationStructureGeometryMotionTrianglesDataNV create()
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated withBufferUtils.
-
create
public static VkAccelerationStructureGeometryMotionTrianglesDataNV create(long address)
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkAccelerationStructureGeometryMotionTrianglesDataNV createSafe(long address)
-
malloc
public static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffer malloc(int capacity)
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffer calloc(int capacity)
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffer create(int capacity)
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffer create(long address, int capacity)
Create aVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAccelerationStructureGeometryMotionTrianglesDataNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureGeometryMotionTrianglesDataNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAccelerationStructureGeometryMotionTrianglesDataNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAccelerationStructureGeometryMotionTrianglesDataNV.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().
-
nvertexData
public static VkDeviceOrHostAddressConstKHR nvertexData(long struct)
Unsafe version ofvertexData().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nvertexData
public static void nvertexData(long struct, VkDeviceOrHostAddressConstKHR value)Unsafe version ofvertexData.
-
-