pub trait SpirvTargetVariant {
// Required methods
fn validate(&self) -> Result<(), TargetError>;
fn to_spirv_tools(&self) -> TargetEnv;
fn spirv_version(&self) -> SpirvVersion;
}Expand description
A trait to describe common properties between different target variants
Required Methods§
Sourcefn validate(&self) -> Result<(), TargetError>
fn validate(&self) -> Result<(), TargetError>
Validate the target version
Sourcefn to_spirv_tools(&self) -> TargetEnv
fn to_spirv_tools(&self) -> TargetEnv
Get the spirv_tools::TargetEnv to use for spirv-val and spirv-opt. May panic if version is invalid.
Sourcefn spirv_version(&self) -> SpirvVersion
fn spirv_version(&self) -> SpirvVersion
Get the SpirvVersion of this target. May panic if version is invalid.