Documentation / device / linearTextureFormatToSRGB
Function: linearTextureFormatToSRGB()
linearTextureFormatToSRGB(
format):"r8unorm"|"r8snorm"|"r16f"|"r32f"|"r8ui"|"r8i"|"r16ui"|"r16i"|"r32ui"|"r32i"|"rg8unorm"|"rg8snorm"|"rg16f"|"rg32f"|"rg8ui"|"rg8i"|"rg16ui"|"rg16i"|"rg32ui"|"rg32i"|"rgba8unorm-srgb"|"rgba8snorm"|"bgra8unorm-srgb"|"rgba16f"|"rgba32f"|"rgba8ui"|"rgba8i"|"rgba16ui"|"rgba16i"|"rgba32ui"|"rgba32i"|"rg11b10uf"|"d16"|"d24"|"d32f"|"d24s8"|"d32fs8"|"dxt1-srgb"|"dxt3-srgb"|"dxt5-srgb"|"bc4"|"bc4-signed"|"bc5"|"bc5-signed"|"bc7-srgb"|"bc6h"|"bc6h-signed"|"astc-4x4-srgb"|"astc-5x4-srgb"|"astc-5x5-srgb"|"astc-6x5-srgb"|"astc-6x6-srgb"|"astc-8x5-srgb"|"astc-8x6-srgb"|"astc-8x8-srgb"|"astc-10x5-srgb"|"astc-10x6-srgb"|"astc-10x8-srgb"|"astc-10x10-srgb"|"astc-12x10-srgb"|"astc-12x12-srgb"
Defined in: libs/device/src/base_types.ts:1678
Converts a non-sRGB texture format to the corresponding sRGB texture format
Parameters
format
The texture format to be converted
Returns
"r8unorm" | "r8snorm" | "r16f" | "r32f" | "r8ui" | "r8i" | "r16ui" | "r16i" | "r32ui" | "r32i" | "rg8unorm" | "rg8snorm" | "rg16f" | "rg32f" | "rg8ui" | "rg8i" | "rg16ui" | "rg16i" | "rg32ui" | "rg32i" | "rgba8unorm-srgb" | "rgba8snorm" | "bgra8unorm-srgb" | "rgba16f" | "rgba32f" | "rgba8ui" | "rgba8i" | "rgba16ui" | "rgba16i" | "rgba32ui" | "rgba32i" | "rg11b10uf" | "d16" | "d24" | "d32f" | "d24s8" | "d32fs8" | "dxt1-srgb" | "dxt3-srgb" | "dxt5-srgb" | "bc4" | "bc4-signed" | "bc5" | "bc5-signed" | "bc7-srgb" | "bc6h" | "bc6h-signed" | "astc-4x4-srgb" | "astc-5x4-srgb" | "astc-5x5-srgb" | "astc-6x5-srgb" | "astc-6x6-srgb" | "astc-8x5-srgb" | "astc-8x6-srgb" | "astc-8x8-srgb" | "astc-10x5-srgb" | "astc-10x6-srgb" | "astc-10x8-srgb" | "astc-10x10-srgb" | "astc-12x10-srgb" | "astc-12x12-srgb"
The sRGB texture format