Enum WebGPUTextureFormat
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.WebGPU.dll
Supported texture format identifiers for native WebGPU targets.
public enum WebGPUTextureFormat
Fields
Bgra8Unorm = 2Four-channel 8-bit normalized unsigned BGRA format, mapped to Bgra32. Storage binding for this format requires the optional
bgra8unorm-storagedevice feature.Rgba16Float = 3Four-channel 16-bit floating-point RGBA format, mapped to RgbaHalf.
Rgba8Snorm = 1Four-channel 8-bit normalized signed RGBA format, mapped to NormalizedByte4.
Rgba8Unorm = 0Four-channel 8-bit normalized unsigned RGBA format, mapped to Rgba32.
Remarks
The compute pipeline writes its result through a storage texture binding, so a target format
must be storage-bindable. Most formats here are storage-capable in core WebGPU;
Bgra8Unorm is the exception and requires the optional bgra8unorm-storage
device feature, which the backend enables when the adapter reports it.