Function create_validator
pub fn create_validator(
features: Features,
downlevel: DownlevelFlags,
flags: ValidationFlags,
) -> ValidatorAvailable on crate feature
unstable-wgpu-27 only.Expand description
Create a validator for Naga Modules.
Create a Naga Validator that ensures that each naga::Module
presented to it is valid, and uses no features not included in
features and downlevel.
The validator can only catch invalid modules and feature misuse
reliably when the flags argument includes all the flags in
ValidationFlags::default().