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,VkGeometryTrianglesNVLayout
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 Deprecated Methods Modifier and Type Method Description VkGeometryAABBNVaabbs()VkGeometryDataNVaabbs(java.util.function.Consumer<VkGeometryAABBNV> consumer)Passes theaabbs()field to the specifiedConsumer.VkGeometryDataNVaabbs(VkGeometryAABBNV value)Copies the specifiedVkGeometryAABBNVto theaabbs()field.static VkGeometryDataNVcalloc()Returns a newVkGeometryDataNVinstance allocated withmemCalloc.static VkGeometryDataNV.Buffercalloc(int capacity)Returns a newVkGeometryDataNV.Bufferinstance allocated withmemCalloc.static VkGeometryDataNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryDataNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryDataNVcallocStack()Deprecated.static VkGeometryDataNV.BuffercallocStack(int capacity)Deprecated.static VkGeometryDataNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkGeometryDataNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkGeometryDataNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryDataNV.Bufferinstance allocated on the specifiedMemoryStack.static VkGeometryDataNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkGeometryDataNVinstance allocated on the specifiedMemoryStack.static VkGeometryDataNVmallocStack()Deprecated.static VkGeometryDataNV.BuffermallocStack(int capacity)Deprecated.static VkGeometryDataNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkGeometryDataNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()VkGeometryDataNVtriangles(java.util.function.Consumer<VkGeometryTrianglesNV> consumer)Passes thetriangles()field to the specifiedConsumer.VkGeometryDataNVtriangles(VkGeometryTrianglesNV value)Copies the specifiedVkGeometryTrianglesNVto thetriangles()field.
-
-
-
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()
-
aabbs
public VkGeometryAABBNV aabbs()
-
triangles
public VkGeometryDataNV triangles(VkGeometryTrianglesNV value)
Copies the specifiedVkGeometryTrianglesNVto thetriangles()field.
-
triangles
public VkGeometryDataNV triangles(java.util.function.Consumer<VkGeometryTrianglesNV> consumer)
Passes thetriangles()field to the specifiedConsumer.
-
aabbs
public VkGeometryDataNV aabbs(VkGeometryAABBNV value)
Copies the specifiedVkGeometryAABBNVto theaabbs()field.
-
aabbs
public VkGeometryDataNV aabbs(java.util.function.Consumer<VkGeometryAABBNV> consumer)
Passes theaabbs()field 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
@Deprecated public static VkGeometryDataNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkGeometryDataNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGeometryDataNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkGeometryDataNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGeometryDataNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkGeometryDataNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkGeometryDataNV.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 VkGeometryDataNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkGeometryDataNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkGeometryDataNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkGeometryDataNV calloc(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
-
malloc
public static VkGeometryDataNV.Buffer malloc(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
-
calloc
public static VkGeometryDataNV.Buffer calloc(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.
-
-