public enum WgpuTextureFormatA WebGPU texture format, with webgpu.h's numbering.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Why this exists rather than Silk.NET.WebGPU.TextureFormat: the browser surface cannot reference Silk.NET at all — it reaches WebGPU through navigator.gpu — so the vocabulary the two surfaces share has to be the backend's own. Everything above IWebGpuBinding is written in these terms.
The values are webgpu.h's, so the native surface casts rather than switches, and the browser surface indexes a string table by the same number. WebGpuEnumAgreementTests asserts every one of them against Silk's, which is what makes the cast safe across a binding upgrade rather than merely convenient.
Fields and properties (59)
UndefinedNo format.
R8UnormOne 8-bit channel, [0, 1].
R8SnormOne 8-bit channel, [-1, 1].
R8UintOne 8-bit unsigned integer channel.
R8SintOne 8-bit signed integer channel.
R16UintOne 16-bit unsigned integer channel.
R16SintOne 16-bit signed integer channel.
R16FloatOne 16-bit half-float channel.
Rg8UnormTwo 8-bit channels, [0, 1].
Rg8SnormTwo 8-bit channels, [-1, 1].
Rg8UintTwo 8-bit unsigned integer channels.
Rg8SintTwo 8-bit signed integer channels.
R32FloatOne 32-bit float channel.
R32UintOne 32-bit unsigned integer channel.
R32SintOne 32-bit signed integer channel.
Rg16UintTwo 16-bit unsigned integer channels.
Rg16SintTwo 16-bit signed integer channels.
Rg16FloatTwo 16-bit half-float channels.
Rgba8UnormFour 8-bit channels, [0, 1].
Rgba8UnormSrgbFour 8-bit channels, sRGB-encoded.
Rgba8SnormFour 8-bit channels, [-1, 1].
Rgba8UintFour 8-bit unsigned integer channels.
Rgba8SintFour 8-bit signed integer channels.
Bgra8UnormFour 8-bit channels in BGRA order, [0, 1].
Bgra8UnormSrgbFour 8-bit channels in BGRA order, sRGB-encoded.
Rgb10A2UintTen bits per colour and two of alpha, as unsigned integers.
Rgb10A2UnormTen bits per colour and two of alpha, [0, 1].
Rg11B10UfloatEleven bits each for red and green, ten for blue, as small floats.
Rgb9E5UfloatNine-bit mantissas with a shared five-bit exponent.
Rg32FloatTwo 32-bit float channels.
Rg32UintTwo 32-bit unsigned integer channels.
Rg32SintTwo 32-bit signed integer channels.
Rgba16UintFour 16-bit unsigned integer channels.
Rgba16SintFour 16-bit signed integer channels.
Rgba16FloatFour 16-bit half-float channels.
Rgba32FloatFour 32-bit float channels.
Rgba32UintFour 32-bit unsigned integer channels.
Rgba32SintFour 32-bit signed integer channels.
Stencil8An 8-bit stencil with no depth.
Depth16Unorm16-bit unsigned normalised depth.
Depth24PlusAt least 24 bits of depth, of an implementation-chosen layout.
Depth24PlusStencil8At least 24 bits of depth with an 8-bit stencil.
Depth32Float32-bit float depth.
Depth32FloatStencil832-bit float depth with an 8-bit stencil.
Bc1RgbaUnormBC1 with one bit of alpha.
Bc1RgbaUnormSrgbBC1, sRGB-encoded.
Bc3RgbaUnormBC3 with interpolated alpha.
Bc3RgbaUnormSrgbBC3, sRGB-encoded.
Bc4RUnormBC4, one channel.
Bc5RgUnormBC5, two channels.
Bc6HRgbUfloatBC6H, three HDR channels, unsigned.
Bc7RgbaUnormBC7, colour and alpha.
Bc7RgbaUnormSrgbBC7, sRGB-encoded.
Etc2Rgb8A1UnormETC2 with one bit of alpha.
Etc2Rgba8UnormETC2 with full alpha.
Astc4X4UnormASTC with a 4×4 block.
Astc4X4UnormSrgbASTC with a 4×4 block, sRGB-encoded.
Astc8X8UnormASTC with an 8×8 block.
Astc8X8UnormSrgbASTC with an 8×8 block, sRGB-encoded.
Used by (14)
- FakeWebGpuBindingVixen.Graphics.WebGPU.Tests
- IWebGpuBindingVixen.Graphics.WebGPU
- NativeWebGpuBindingVixen.Graphics.WebGPU
- WebGpuConversionTestsVixen.Graphics.WebGPU.Tests
- WebGpuConversionsVixen.Graphics.WebGPU
- WebGpuEnumAgreementTestsVixen.Graphics.WebGPU.Tests
- WebGpuFormatsVixen.Graphics.WebGPU
- WebGpuSwapChainVixen.Graphics.WebGPU
- WgpuBindGroupLayoutEntryVixen.Graphics.WebGPU
- WgpuColourTargetStateVixen.Graphics.WebGPU
- WgpuDepthStencilStateVixen.Graphics.WebGPU
- WgpuSurfaceConfigurationVixen.Graphics.WebGPU
- WgpuTextureDescriptorVixen.Graphics.WebGPU
- WgpuTextureViewDescriptorVixen.Graphics.WebGPU