fromValue static method
Returns the CubemapLayout for the given native value.
Throws ArgumentError if value does not correspond to a known entry.
Implementation
static CubemapLayout fromValue(int value) => switch (value) {
0 => CUBEMAP_LAYOUT_AUTO_DETECT,
1 => CUBEMAP_LAYOUT_LINE_VERTICAL,
2 => CUBEMAP_LAYOUT_LINE_HORIZONTAL,
3 => CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR,
4 => CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE,
_ => throw ArgumentError('Unknown value for $CubemapLayout: $value'),
};