Enum
VkIndexType
Type of index buffer indices
Possible values of
vkCmdBindIndexBuffer2::indexType and
vkCmdBindIndexBuffer::indexType, specifying the size of indices,
are:
typedef enum VkIndexType {
VK_INDEX_TYPE_UINT16 = 0,
VK_INDEX_TYPE_UINT32 = 1,
// Provided by extensions
VK_INDEX_TYPE_UINT8 = -1000265000,
VK_INDEX_TYPE_NONE_KHR = -1000165000,
VK_INDEX_TYPE_NONE_NV = VK_INDEX_TYPE_NONE_KHR,
VK_INDEX_TYPE_UINT8_EXT = VK_INDEX_TYPE_UINT8,
VK_INDEX_TYPE_UINT8_KHR = VK_INDEX_TYPE_UINT8,
} VkIndexType;
pub struct IndexType(u32);
impl IndexType {
pub const UINT16: Self = 0;
pub const UINT32: Self = 1;
pub const UINT8: Self = -1000265000;
pub const NONE_KHR: Self = -1000165000;
pub const NONE_NV: Self = Self::NONE_KHR;
pub const UINT8_EXT: Self = Self::UINT8;
pub const UINT8_KHR: Self = Self::UINT8;
}
VK_INDEX_TYPE_UINT16specifies that indices are 16-bit unsigned integer values.VK_INDEX_TYPE_UINT32specifies that indices are 32-bit unsigned integer values.VK_INDEX_TYPE_NONE_KHRspecifies that no indices are provided.VK_INDEX_TYPE_UINT8specifies that indices are 8-bit unsigned integer values.
Parent
VK_VERSION_1_0Type
Enum