Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkGeometryTrianglesNV

extends Struct<VkGeometryTrianglesNV>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying a triangle geometry in a bottom-level acceleration structure.
Description

If indexType is INDEX_TYPE_NONE_NV, then this structure describes a set of triangles determined by vertexCount. Otherwise, this structure describes a set of indexed triangles determined by indexCount.

Valid Usage
Valid Usage (Implicit)
See Also

VkGeometryDataNV

Layout


struct VkGeometryTrianglesNV {
    VkStructureType sType;
    void const * pNext;
    VkBuffer vertexData;
    VkDeviceSize vertexOffset;
    uint32_t vertexCount;
    VkDeviceSize vertexStride;
    VkFormat vertexFormat;
    VkBuffer indexData;
    VkDeviceSize indexOffset;
    uint32_t indexCount;
    VkIndexType indexType;
    VkBuffer transformData;
    VkDeviceSize transformOffset;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
INDEXCOUNT

The struct member offsets.

public static final int
INDEXDATA

The struct member offsets.

public static final int
INDEXOFFSET

The struct member offsets.

public static final int
INDEXTYPE

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
TRANSFORMDATA

The struct member offsets.

public static final int
TRANSFORMOFFSET

The struct member offsets.

public static final int
VERTEXCOUNT

The struct member offsets.

public static final int
VERTEXDATA

The struct member offsets.

public static final int
VERTEXFORMAT

The struct member offsets.

public static final int
VERTEXOFFSET

The struct member offsets.

public static final int
VERTEXSTRIDE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkGeometryTrianglesNV(long address, ByteBuffer container)

public
VkGeometryTrianglesNV(ByteBuffer container)

Creates a VkGeometryTrianglesNV instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkGeometryTrianglesNV
calloc()

Returns a new VkGeometryTrianglesNV instance allocated with memCalloc.

public static VkGeometryTrianglesNV.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkGeometryTrianglesNV.Buffer instance allocated with memCalloc.

public static VkGeometryTrianglesNV
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkGeometryTrianglesNV instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkGeometryTrianglesNV.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkGeometryTrianglesNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkGeometryTrianglesNV
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkGeometryTrianglesNV
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkGeometryTrianglesNV.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkGeometryTrianglesNV.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VkGeometryTrianglesNV
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkGeometryTrianglesNV
create()

Returns a new VkGeometryTrianglesNV instance allocated with BufferUtils.

public static VkGeometryTrianglesNV
create(long address)

Returns a new VkGeometryTrianglesNV instance for the specified memory address.

public static VkGeometryTrianglesNV.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkGeometryTrianglesNV.Buffer instance allocated with BufferUtils.

public static VkGeometryTrianglesNV.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkGeometryTrianglesNV.Buffer instance at the specified memory.

public static VkGeometryTrianglesNV
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkGeometryTrianglesNV.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
indexCount()

the number of indices to include in this geometry.

public VkGeometryTrianglesNV
indexCount(int value)

Sets the specified value to the indexCount field.

public long
indexData()

the buffer containing index data for this geometry.

public VkGeometryTrianglesNV
indexData(long value)

Sets the specified value to the indexData field.

public long
indexOffset()

the offset in bytes within indexData containing index data for this geometry.

public VkGeometryTrianglesNV
indexOffset(long value)

Sets the specified value to the indexOffset field.

public int
indexType()

a VkIndexType describing the format of each index.

public VkGeometryTrianglesNV
indexType(int value)

Sets the specified value to the indexType field.

public static VkGeometryTrianglesNV
malloc()

Returns a new VkGeometryTrianglesNV instance allocated with memAlloc.

public static VkGeometryTrianglesNV.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkGeometryTrianglesNV.Buffer instance allocated with memAlloc.

public static VkGeometryTrianglesNV
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkGeometryTrianglesNV instance allocated on the specified MemoryStack.

public static VkGeometryTrianglesNV.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkGeometryTrianglesNV.Buffer instance allocated on the specified MemoryStack.

public static VkGeometryTrianglesNV
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkGeometryTrianglesNV
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkGeometryTrianglesNV.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkGeometryTrianglesNV.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nindexCount(long struct)

Unsafe version of indexCount.

public static void
nindexCount(long struct, int value)

Unsafe version of indexCount.

public static long
nindexData(long struct)

Unsafe version of indexData.

public static void
nindexData(long struct, long value)

Unsafe version of indexData.

public static long
nindexOffset(long struct)

Unsafe version of indexOffset.

public static void
nindexOffset(long struct, long value)

Unsafe version of indexOffset.

public static int
nindexType(long struct)

Unsafe version of indexType.

public static void
nindexType(long struct, int value)

Unsafe version of indexType.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static long
ntransformData(long struct)

Unsafe version of transformData.

public static void
ntransformData(long struct, long value)

Unsafe version of transformData.

public static long
ntransformOffset(long struct)

Unsafe version of transformOffset.

public static void
ntransformOffset(long struct, long value)

Unsafe version of transformOffset.

public static int
nvertexCount(long struct)

Unsafe version of vertexCount.

public static void
nvertexCount(long struct, int value)

Unsafe version of vertexCount.

public static long
nvertexData(long struct)

Unsafe version of vertexData.

public static void
nvertexData(long struct, long value)

Unsafe version of vertexData.

public static int
nvertexFormat(long struct)

Unsafe version of vertexFormat.

public static void
nvertexFormat(long struct, int value)

Unsafe version of vertexFormat.

public static long
nvertexOffset(long struct)

Unsafe version of vertexOffset.

public static void
nvertexOffset(long struct, long value)

Unsafe version of vertexOffset.

public static long
nvertexStride(long struct)

Unsafe version of vertexStride.

public static void
nvertexStride(long struct, long value)

Unsafe version of vertexStride.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkGeometryTrianglesNV
pNext(long value)

Sets the specified value to the pNext field.

public VkGeometryTrianglesNV
set(int sType, long pNext, long vertexData, long vertexOffset, int vertexCount, long vertexStride, int vertexFormat, long indexData, long indexOffset, int indexCount, int indexType, long transformData, long transformOffset)

Initializes this struct with the specified values.

public VkGeometryTrianglesNV

Returns:

this struct
set
(VkGeometryTrianglesNV
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkGeometryTrianglesNV
sType(int value)

Sets the specified value to the sType field.

public VkGeometryTrianglesNV
public long
transformData()

an optional buffer containing an VkTransformMatrixNV structure defining a transformation to be applied to this geometry.

public VkGeometryTrianglesNV
transformData(long value)

Sets the specified value to the transformData field.

public long
transformOffset()

the offset in bytes in transformData of the transform information described above.

public VkGeometryTrianglesNV
transformOffset(long value)

Sets the specified value to the transformOffset field.

public int
vertexCount()

the number of valid vertices.

public VkGeometryTrianglesNV
vertexCount(int value)

Sets the specified value to the vertexCount field.

public long
vertexData()

the buffer containing vertex data for this geometry.

public VkGeometryTrianglesNV
vertexData(long value)

Sets the specified value to the vertexData field.

public int
vertexFormat()

a VkFormat describing the format of each vertex element.

public VkGeometryTrianglesNV
vertexFormat(int value)

Sets the specified value to the vertexFormat field.

public long
vertexOffset()

the offset in bytes within vertexData containing vertex data for this geometry.

public VkGeometryTrianglesNV
vertexOffset(long value)

Sets the specified value to the vertexOffset field.

public long
vertexStride()

the stride in bytes between each vertex.

public VkGeometryTrianglesNV
vertexStride(long value)

Sets the specified value to the vertexStride field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate