C Specification
The VkGeometryTrianglesNV
structure is defined as:
typedef struct VkGeometryTrianglesNV {
VkStructureType sType;
const void* 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;
} VkGeometryTrianglesNV;
Members
-
sType
is the type of this structure. -
pNext
isNULL
or a pointer to an extension-specific structure. -
vertexData
is the buffer containing vertex data for this geometry. -
vertexOffset
is the offset in bytes withinvertexData
containing vertex data for this geometry. -
vertexCount
is the number of valid vertices. -
vertexStride
is the stride in bytes between each vertex. -
vertexFormat
is the format of each vertex element. -
indexData
is the buffer containing index data for this geometry. -
indexOffset
is the offset in bytes withinindexData
containing index data for this geometry. -
indexCount
is the number of indices to include in this geometry. -
indexType
is the format of each index. -
transformData
is a buffer containing optional reference to an array of 32-bit floats representing a 3x4 row major affine transformation matrix for this geometry. -
transformOffset
is the offset in bytes intransformData
of the transform information described above.
Description
If indexType
is VK_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
.
See Also
VkBuffer, VkDeviceSize
, VkFormat, VkGeometryDataNV, VkIndexType, VkStructureType
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.