WebGPU module

webgpu_format_is_srgb

procedureextensionexperimentalSource

Whether the GPU sRGB-encodes writes to format.

Example↗
assert(webgpu_format_is_srgb(.BGRA8UnormSrgb));
assert(!webgpu_format_is_srgb(.BGRA8Unorm));
webgpu_format_is_srgb :: (format: WGPUTextureFormat) -> bool

Parameters

Returns

bool

See also