Package org.lwjgl.vulkan
Class VkGeometryDataNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkGeometryDataNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkGeometryDataNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying geometry in a bottom-level acceleration structure.Valid Usage (Implicit)
trianglesmust be a validVkGeometryTrianglesNVstructureaabbsmust be a validVkGeometryAABBNVstructure
See Also
VkGeometryAABBNV,VkGeometryNV,VkGeometryTrianglesNVMember documentation
triangles– contains triangle data ifVkGeometryNV::geometryTypeisGEOMETRY_TYPE_TRIANGLES_NV.aabbs– contains axis-aligned bounding box data ifVkGeometryNV::geometryTypeisGEOMETRY_TYPE_AABBS_NV.
Layout
struct VkGeometryDataNV {VkGeometryTrianglesNVtriangles;VkGeometryAABBNVaabbs; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkGeometryDataNV.BufferAn array ofVkGeometryDataNVstructs.
-
Constructor Summary
Constructors Constructor Description VkGeometryDataNV(java.nio.ByteBuffer container)Creates aVkGeometryDataNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VkGeometryAABBNVaabbs()Returns aVkGeometryAABBNVview of theaabbsfield.VkGeometryDataNVaabbs(java.util.function.Consumer<VkGeometryAABBNV> consumer)Passes theaabbsfield to the specifiedConsumer.VkGeometryDataNVaabbs(VkGeometryAABBNV value)Copies the specifiedVkGeometryAABBNVto theaabbsfield.static VkGeometryDataNVcalloc()Returns a newVkGeometryDataNVinstance allocated withmemCalloc.static VkGeometryDataNV.Buffercalloc(int capacity)Returns a newVkGeometryDataNV.Bufferinstance allocated withmemCalloc.static VkGeometryDataNVcallocStack()Returns a newVkGeometryDataNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkGeometryDataNV.BuffercallocStack(int capacity)Returns a newVkGeometryDataNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkGeometryDataNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryDataNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryDataNVcreate()Returns a newVkGeometryDataNVinstance allocated withBufferUtils.static VkGeometryDataNV.Buffercreate(int capacity)Returns a newVkGeometryDataNV.Bufferinstance allocated withBufferUtils.static VkGeometryDataNVcreate(long address)Returns a newVkGeometryDataNVinstance for the specified memory address.static VkGeometryDataNV.Buffercreate(long address, int capacity)Create aVkGeometryDataNV.Bufferinstance at the specified memory.static VkGeometryDataNVcreateSafe(long address)static VkGeometryDataNV.BuffercreateSafe(long address, int capacity)static VkGeometryDataNVmalloc()Returns a newVkGeometryDataNVinstance allocated withmemAlloc.static VkGeometryDataNV.Buffermalloc(int capacity)Returns a newVkGeometryDataNV.Bufferinstance allocated withmemAlloc.static VkGeometryDataNVmallocStack()Returns a newVkGeometryDataNVinstance allocated on the thread-localMemoryStack.static VkGeometryDataNV.BuffermallocStack(int capacity)Returns a newVkGeometryDataNV.Bufferinstance allocated on the thread-localMemoryStack.static VkGeometryDataNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryDataNV.Bufferinstance allocated on the specifiedMemoryStack.static VkGeometryDataNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryDataNVinstance allocated on the specifiedMemoryStack.static VkGeometryAABBNVnaabbs(long struct)Unsafe version ofaabbs().static voidnaabbs(long struct, VkGeometryAABBNV value)Unsafe version ofaabbs.static VkGeometryTrianglesNVntriangles(long struct)Unsafe version oftriangles().static voidntriangles(long struct, VkGeometryTrianglesNV value)Unsafe version oftriangles.VkGeometryDataNVset(VkGeometryDataNV src)Copies the specified struct data to this struct.VkGeometryDataNVset(VkGeometryTrianglesNV triangles, VkGeometryAABBNV aabbs)Initializes this struct with the specified values.intsizeof()VkGeometryTrianglesNVtriangles()Returns aVkGeometryTrianglesNVview of thetrianglesfield.VkGeometryDataNVtriangles(java.util.function.Consumer<VkGeometryTrianglesNV> consumer)Passes thetrianglesfield to the specifiedConsumer.VkGeometryDataNVtriangles(VkGeometryTrianglesNV value)Copies the specifiedVkGeometryTrianglesNVto thetrianglesfield.
-
-
-
Constructor Detail
-
VkGeometryDataNV
public VkGeometryDataNV(java.nio.ByteBuffer container)
Creates aVkGeometryDataNVinstance 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
-
triangles
public VkGeometryTrianglesNV triangles()
Returns aVkGeometryTrianglesNVview of thetrianglesfield.
-
aabbs
public VkGeometryAABBNV aabbs()
Returns aVkGeometryAABBNVview of theaabbsfield.
-
triangles
public VkGeometryDataNV triangles(VkGeometryTrianglesNV value)
Copies the specifiedVkGeometryTrianglesNVto thetrianglesfield.
-
triangles
public VkGeometryDataNV triangles(java.util.function.Consumer<VkGeometryTrianglesNV> consumer)
Passes thetrianglesfield to the specifiedConsumer.
-
aabbs
public VkGeometryDataNV aabbs(VkGeometryAABBNV value)
Copies the specifiedVkGeometryAABBNVto theaabbsfield.
-
aabbs
public VkGeometryDataNV aabbs(java.util.function.Consumer<VkGeometryAABBNV> consumer)
Passes theaabbsfield to the specifiedConsumer.
-
set
public VkGeometryDataNV set(VkGeometryTrianglesNV triangles, VkGeometryAABBNV aabbs)
Initializes this struct with the specified values.
-
set
public VkGeometryDataNV set(VkGeometryDataNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkGeometryDataNV malloc()
Returns a newVkGeometryDataNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkGeometryDataNV calloc()
Returns a newVkGeometryDataNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkGeometryDataNV create()
Returns a newVkGeometryDataNVinstance allocated withBufferUtils.
-
create
public static VkGeometryDataNV create(long address)
Returns a newVkGeometryDataNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkGeometryDataNV createSafe(long address)
-
malloc
public static VkGeometryDataNV.Buffer malloc(int capacity)
Returns a newVkGeometryDataNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkGeometryDataNV.Buffer calloc(int capacity)
Returns a newVkGeometryDataNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkGeometryDataNV.Buffer create(int capacity)
Returns a newVkGeometryDataNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkGeometryDataNV.Buffer create(long address, int capacity)
Create aVkGeometryDataNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkGeometryDataNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkGeometryDataNV mallocStack()
Returns a newVkGeometryDataNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkGeometryDataNV callocStack()
Returns a newVkGeometryDataNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkGeometryDataNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryDataNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkGeometryDataNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkGeometryDataNV.Buffer mallocStack(int capacity)
Returns a newVkGeometryDataNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkGeometryDataNV.Buffer callocStack(int capacity)
Returns a newVkGeometryDataNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkGeometryDataNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryDataNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkGeometryDataNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntriangles
public static VkGeometryTrianglesNV ntriangles(long struct)
Unsafe version oftriangles().
-
naabbs
public static VkGeometryAABBNV naabbs(long struct)
Unsafe version ofaabbs().
-
ntriangles
public static void ntriangles(long struct, VkGeometryTrianglesNV value)Unsafe version oftriangles.
-
naabbs
public static void naabbs(long struct, VkGeometryAABBNV value)Unsafe version ofaabbs.
-
-