pub fn create_validator(
features: Features,
downlevel: DownlevelFlags,
flags: ValidationFlags,
) -> Validator
Expand description
Create a validator for Naga Module
s.
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()
.