DataType

Represents the scalar encoding used for each output channel.

For example, FLOAT32 stores each output value as a 32-bit float in the normalized range from 0.0 to 1.0.

Entries

Link copied to clipboard

A signed 8-bit integer per channel, from -128 to 127 (the 0..255 value shifted by -128).

Link copied to clipboard

An unsigned 8-bit integer per channel, from 0 to 255.

Link copied to clipboard

A 16-bit (half precision) float per channel, in the normalized range from 0.0 to 1.0.

Link copied to clipboard

A 32-bit float per channel, in the normalized range from 0.0 to 1.0.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): DataType

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.