#[non_exhaustive]pub enum BuildError {
UnsupportedFormat,
DepthStencilPremultipliedAlpha,
DepthStencilTransferFunction,
DepthStencilColorPrimaries,
DepthStencilColorModel,
CompressedColorModel,
SrgbTransferNotAllowed,
SrgbTransferRequired,
}Expand description
Error type for DFD generation and validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedFormat
The Format is not recognized by the DFD generation table.
DepthStencilPremultipliedAlpha
Premultiplied alpha was requested for a depth-stencil format, which has no alpha channel.
DepthStencilTransferFunction
A transfer function override was specified for a depth-stencil format. Depth-stencil formats always use linear transfer.
DepthStencilColorPrimaries
A color primaries override was specified for a depth-stencil format. Depth-stencil formats always use BT.709 primaries.
DepthStencilColorModel
A color model override was specified for a depth-stencil format. Depth-stencil formats always use RGBSDA.
CompressedColorModel
A color model override was specified for a compressed format. Compressed formats must use their intrinsic color model.
SrgbTransferNotAllowed
The transfer function was set to sRGB, but this format has a dedicated sRGB variant. Use the sRGB variant of the format instead.
SrgbTransferRequired
The transfer function was overridden to a non-sRGB value, but this format is an sRGB variant and must use sRGB transfer.
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
Available on crate feature std only.
impl Error for BuildError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()