public enum PixelFormatA texture or attachment format.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The set every backend can express, named the way Vulkan and WebGPU name them: channels, then bit depth, then interpretation. Rgba8UNorm is four eight-bit channels read as [0, 1]; Rgba8UNormSrgb is the same bits with the hardware doing the sRGB conversion on read and write.
Deliberately not exhaustive. Every format here is one the engine uses or the swapchain may hand us; a backend that supports more is not obliged to expose them, and a format nobody has a use for is a format nobody has tested. PixelFormats answers the questions the RHI actually asks — how big is a block, is it depth, is it sRGB — and a backend translates by table lookup.
Fields and properties (44)
UndefinedNo format. Not a valid attachment or texture format.
R8UNormOne 8-bit channel, [0, 1].
R8SNormOne 8-bit channel, [-1, 1].
R8UIntOne 8-bit channel as an unsigned integer.
R8SIntOne 8-bit channel as a signed integer.
Rg8UNormTwo 8-bit channels, [0, 1].
Rg8SNormTwo 8-bit channels, [-1, 1].
R16FloatOne 16-bit channel as a half float.
R16UIntOne 16-bit channel as an unsigned integer.
R16UNormOne 16-bit channel, [0, 1].
Rgba8UNormFour 8-bit channels, [0, 1].
Rgba8UNormSrgbFour 8-bit channels, [0, 1], sRGB-encoded.
Bgra8UNormFour 8-bit channels in blue-green-red-alpha order, [0, 1].
Bgra8UNormSrgbFour 8-bit channels in blue-green-red-alpha order, sRGB-encoded.
Rgba8SNormFour 8-bit channels, [-1, 1].
Rg16FloatTwo 16-bit channels as half floats.
R32FloatOne 32-bit channel as a float.
R32UIntOne 32-bit channel as an unsigned integer.
Rgb10A2UNormTen bits each for red, green and blue and two for alpha, [0, 1].
Rg11B10FloatEleven bits each for red and green and ten for blue, as small floats.
Rgba16FloatFour 16-bit channels as half floats.
Rg32FloatTwo 32-bit channels as floats.
Rgba16UNormFour 16-bit channels, [0, 1].
Rgba32FloatFour 32-bit channels as floats.
Rgba32UIntFour 32-bit channels as unsigned integers.
Depth16UNorm16-bit unsigned normalised depth.
Depth32Float32-bit float depth.
Depth24UNormStencil824-bit unsigned normalised depth with an 8-bit stencil.
Depth32FloatStencil832-bit float depth with an 8-bit stencil.
Bc1RgbaUNormBC1 — colour with one bit of alpha, 0.5 bytes per pixel.
Bc1RgbaUNormSrgbBC1, sRGB-encoded.
Bc3RgbaUNormBC3 — colour with interpolated alpha, 1 byte per pixel.
Bc3RgbaUNormSrgbBC3, sRGB-encoded.
Bc4RUNormBC4 — one channel, 0.5 bytes per pixel.
Bc5RgUNormBC5 — two channels, 1 byte per pixel. The normal-map format.
Bc6HRgbUFloatBC6H — three HDR channels, 1 byte per pixel.
Bc7RgbaUNormBC7 — high-quality colour and alpha, 1 byte per pixel.
Bc7RgbaUNormSrgbBC7, sRGB-encoded.
Etc2Rgb8A1UNormETC2 — colour with one bit of alpha, 0.5 bytes per pixel. Mobile.
Etc2Rgba8UNormETC2 with full alpha, 1 byte per pixel. Mobile.
Astc4X4UNormASTC with a 4×4 block, 1 byte per pixel. Mobile.
Astc4X4UNormSrgbASTC with a 4×4 block, sRGB-encoded.
Astc8X8UNormASTC with an 8×8 block, 0.25 bytes per pixel.
Astc8X8UNormSrgbASTC with an 8×8 block, sRGB-encoded.
Used by (243, showing 40)
- ArenaFrameThirdPersonShooter
- PbrShowcaseGamePbrShowcase
- SampleLogPbrShowcase
- SampleLogVideoPlayback
- SampleLogHelloTriangle
- TriangleGameHelloTriangle
- UiHostHelloUi
- VideoGameVideoPlayback
- VirtualGeometryGameVirtualGeometry
- __SceneReadyStructPbrShowcase
- AccelerationStructureTestsVixen.Graphics.Null.Tests
- AmbientCombineTestsVixen.Rendering.PostFx.Tests
- AssetTextureSourceTestsVixen.Engine.Renderer.Tests
- AutoExposureRendererVixen.Rendering.PostFx
- AutoExposureTestsVixen.Rendering.PostFx.Tests
- BindlessFrameTestsVixen.Rendering.Tests
- BindlessSamplingDeviceTestsVixen.Graphics.Golden.Tests
- BindlessSetLayoutTestsVixen.Shaders.Tests
- BindlessTableDeviceTestsVixen.Graphics.Golden.Tests
- BindlessTableTestsVixen.Graphics.Tests
- BlockCompressorVixen.Core.Imaging
- BlockCompressorTestsVixen.Core.Imaging.Tests
- BlockEncoderTestsVixen.Core.Imaging.Tests
- BloomAssetVixen.Rendering.PostFx
- BloomRendererVixen.Rendering.PostFx
- BloomTestsVixen.Rendering.PostFx.Tests
- BrdfLutVixen.Core.Imaging
- ClusterResolveTestsVixen.Rendering.Tests
- ClusteredLightingTestsVixen.Rendering.Tests
- ClusteredShadingDeviceTestsVixen.Graphics.Golden.Tests
- ColourTargetStateVixen.Graphics
- CommandRecorderTestsVixen.Graphics.Null.Tests
- CompositorAssetTestsVixen.Rendering.Tests
- CompositorFrameVixen.Rendering
- CompositorImageTestsVixen.Graphics.Golden.Tests
- CubeMapVixen.Core.Imaging
- DataFormatDescriptorVixen.Core.Imaging
- DebugDrawImageTestsVixen.Graphics.Golden.Tests
- DepthOfFieldAssetVixen.Rendering.PostFx
- DepthPrepassTestsVixen.Rendering.Tests