GPUIndexFormat¶
=== "common"
The index format determines both the data type of index values in a buffer and, when used with strip primitive topologies ("line-strip" or "triangle-strip") also specifies the primitive restart value. The primitive restart value indicates which index value indicates that a new primitive should be started rather than continuing to construct the triangle strip with the prior indexed vertices.
=== "commonNative"
The index format determines both the data type of index values in a buffer and, when used with strip primitive topologies ("line-strip" or "triangle-strip") also specifies the primitive restart value. The primitive restart value indicates which index value indicates that a new primitive should be started rather than continuing to construct the triangle strip with the prior indexed vertices.
=== "web"
The index format determines both the data type of index values in a buffer and, when used with strip primitive topologies ("line-strip" or "triangle-strip") also specifies the primitive restart value. The primitive restart value indicates which index value indicates that a new primitive should be started rather than continuing to construct the triangle strip with the prior indexed vertices.
expect enum GPUIndexFormat : Enum<GPUIndexFormat>
actual enum GPUIndexFormat : Enum<GPUIndexFormat>
actual enum GPUIndexFormat : Enum<GPUIndexFormat>
Entries¶
Uint16¶
Uint32¶
Types¶
Companion¶
object Companion
object Companion
Properties¶
entries¶
expect val entries: EnumEntries<GPUIndexFormat>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
This method may be used to iterate over the enum entries.
name¶
ordinal¶
value¶
Functions¶
valueOf¶
expect fun valueOf(value: String): GPUIndexFormat
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
**Throws**
[`kotlin.IllegalArgumentException`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html)
: if this enum type has no constant with the specified name
values¶
expect fun values(): Array<GPUIndexFormat>
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.