public class VkGeometryDataNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
triangles must be a valid VkGeometryTrianglesNV structureaabbs must be a valid VkGeometryAABBNV structureVkGeometryAABBNV, VkGeometryNV, VkGeometryTrianglesNV
triangles – contains triangle data if VkGeometryNV::geometryType is GEOMETRY_TYPE_TRIANGLES_NV.aabbs – contains axis-aligned bounding box data if VkGeometryNV::geometryType is GEOMETRY_TYPE_AABBS_NV.
struct VkGeometryDataNV {
VkGeometryTrianglesNV triangles;
VkGeometryAABBNV aabbs;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkGeometryDataNV.Buffer
An array of
VkGeometryDataNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
AABBS
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TRIANGLES
The struct member offsets.
|
| Constructor and Description |
|---|
VkGeometryDataNV(java.nio.ByteBuffer container)
Creates a
VkGeometryDataNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
VkGeometryAABBNV |
aabbs()
Returns a
VkGeometryAABBNV view of the aabbs field. |
VkGeometryDataNV |
aabbs(java.util.function.Consumer<VkGeometryAABBNV> consumer)
Passes the
aabbs field to the specified Consumer. |
VkGeometryDataNV |
aabbs(VkGeometryAABBNV value)
Copies the specified
VkGeometryAABBNV to the aabbs field. |
static VkGeometryDataNV |
calloc()
Returns a new
VkGeometryDataNV instance allocated with memCalloc. |
static VkGeometryDataNV.Buffer |
calloc(int capacity)
Returns a new
VkGeometryDataNV.Buffer instance allocated with memCalloc. |
static VkGeometryDataNV |
callocStack()
Returns a new
VkGeometryDataNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGeometryDataNV.Buffer |
callocStack(int capacity)
Returns a new
VkGeometryDataNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGeometryDataNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryDataNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkGeometryDataNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryDataNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkGeometryDataNV |
create()
Returns a new
VkGeometryDataNV instance allocated with BufferUtils. |
static VkGeometryDataNV.Buffer |
create(int capacity)
Returns a new
VkGeometryDataNV.Buffer instance allocated with BufferUtils. |
static VkGeometryDataNV |
create(long address)
Returns a new
VkGeometryDataNV instance for the specified memory address. |
static VkGeometryDataNV.Buffer |
create(long address,
int capacity)
Create a
VkGeometryDataNV.Buffer instance at the specified memory. |
static VkGeometryDataNV |
createSafe(long address)
|
static VkGeometryDataNV.Buffer |
createSafe(long address,
int capacity)
|
static VkGeometryDataNV |
malloc()
Returns a new
VkGeometryDataNV instance allocated with memAlloc. |
static VkGeometryDataNV.Buffer |
malloc(int capacity)
Returns a new
VkGeometryDataNV.Buffer instance allocated with memAlloc. |
static VkGeometryDataNV |
mallocStack()
Returns a new
VkGeometryDataNV instance allocated on the thread-local MemoryStack. |
static VkGeometryDataNV.Buffer |
mallocStack(int capacity)
Returns a new
VkGeometryDataNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkGeometryDataNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryDataNV.Buffer instance allocated on the specified MemoryStack. |
static VkGeometryDataNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryDataNV instance allocated on the specified MemoryStack. |
static VkGeometryAABBNV |
naabbs(long struct)
Unsafe version of
aabbs(). |
static void |
naabbs(long struct,
VkGeometryAABBNV value)
Unsafe version of
aabbs. |
static VkGeometryTrianglesNV |
ntriangles(long struct)
Unsafe version of
triangles(). |
static void |
ntriangles(long struct,
VkGeometryTrianglesNV value)
Unsafe version of
triangles. |
VkGeometryDataNV |
set(VkGeometryDataNV src)
Copies the specified struct data to this struct.
|
VkGeometryDataNV |
set(VkGeometryTrianglesNV triangles,
VkGeometryAABBNV aabbs)
Initializes this struct with the specified values.
|
int |
sizeof() |
VkGeometryTrianglesNV |
triangles()
Returns a
VkGeometryTrianglesNV view of the triangles field. |
VkGeometryDataNV |
triangles(java.util.function.Consumer<VkGeometryTrianglesNV> consumer)
Passes the
triangles field to the specified Consumer. |
VkGeometryDataNV |
triangles(VkGeometryTrianglesNV value)
Copies the specified
VkGeometryTrianglesNV to the triangles field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TRIANGLES
public static final int AABBS
public VkGeometryDataNV(java.nio.ByteBuffer container)
VkGeometryDataNV instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic VkGeometryTrianglesNV triangles()
VkGeometryTrianglesNV view of the triangles field.public VkGeometryAABBNV aabbs()
VkGeometryAABBNV view of the aabbs field.public VkGeometryDataNV triangles(VkGeometryTrianglesNV value)
VkGeometryTrianglesNV to the triangles field.public VkGeometryDataNV triangles(java.util.function.Consumer<VkGeometryTrianglesNV> consumer)
triangles field to the specified Consumer.public VkGeometryDataNV aabbs(VkGeometryAABBNV value)
VkGeometryAABBNV to the aabbs field.public VkGeometryDataNV aabbs(java.util.function.Consumer<VkGeometryAABBNV> consumer)
aabbs field to the specified Consumer.public VkGeometryDataNV set(VkGeometryTrianglesNV triangles, VkGeometryAABBNV aabbs)
public VkGeometryDataNV set(VkGeometryDataNV src)
src - the source structpublic static VkGeometryDataNV malloc()
VkGeometryDataNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkGeometryDataNV calloc()
VkGeometryDataNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkGeometryDataNV create()
VkGeometryDataNV instance allocated with BufferUtils.public static VkGeometryDataNV create(long address)
VkGeometryDataNV instance for the specified memory address.@Nullable public static VkGeometryDataNV createSafe(long address)
public static VkGeometryDataNV.Buffer malloc(int capacity)
VkGeometryDataNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGeometryDataNV.Buffer calloc(int capacity)
VkGeometryDataNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGeometryDataNV.Buffer create(int capacity)
VkGeometryDataNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkGeometryDataNV.Buffer create(long address, int capacity)
VkGeometryDataNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkGeometryDataNV.Buffer createSafe(long address, int capacity)
public static VkGeometryDataNV mallocStack()
VkGeometryDataNV instance allocated on the thread-local MemoryStack.public static VkGeometryDataNV callocStack()
VkGeometryDataNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkGeometryDataNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkGeometryDataNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkGeometryDataNV callocStack(org.lwjgl.system.MemoryStack stack)
VkGeometryDataNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkGeometryDataNV.Buffer mallocStack(int capacity)
VkGeometryDataNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkGeometryDataNV.Buffer callocStack(int capacity)
VkGeometryDataNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkGeometryDataNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGeometryDataNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkGeometryDataNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGeometryDataNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkGeometryTrianglesNV ntriangles(long struct)
triangles().public static VkGeometryAABBNV naabbs(long struct)
aabbs().public static void ntriangles(long struct,
VkGeometryTrianglesNV value)
triangles.public static void naabbs(long struct,
VkGeometryAABBNV value)
aabbs.Copyright LWJGL. All Rights Reserved. License terms.