pub enum TextureFormat {
Show 13 variants
Rgba8Unorm,
Rgba8Snorm,
Rgba8UnormSrgb,
Bgra8Unorm,
Bgra8UnormSrgb,
Rgba16Float,
Rg16Float,
Rg32Float,
Rgba32Float,
R8Unorm,
R32Uint,
R32Float,
Depth32Float,
}Expand description
The formats the engine renders with. A deliberate subset: every format here is universally supported on the targeted backends, and backends match on it exhaustively, so growing the set is a deliberate change.
Variants§
Rgba8Unorm
8-bit RGBA, linear.
Rgba8Snorm
Signed normalized 8-bit RGBA; compact generated direction fields.
Rgba8UnormSrgb
8-bit RGBA, sRGB-encoded.
Bgra8Unorm
8-bit BGRA, linear (a common swapchain format).
Bgra8UnormSrgb
8-bit BGRA, sRGB-encoded (a common swapchain format).
Rgba16Float
16-bit float RGBA; the linear HDR working format.
Rg16Float
Two 16-bit float channels; compact screen-space motion vectors.
Rg32Float
Two 32-bit float channels; conservative scalar-volume min/max pairs.
Rgba32Float
Four 32-bit float channels; portable storage fallback for volume bounds.
R8Unorm
Single 8-bit channel; ambient-occlusion and masks.
R32Uint
Single 32-bit unsigned integer; the entity-id channel.
R32Float
Single 32-bit float channel; physical scalar density grids.
Depth32Float
32-bit float depth, used with reversed depth.