pub struct Validator { /* private fields */ }
Available on
wgpu_core
or naga
only.Implementations§
source§impl Validator
impl Validator
pub fn validate_literal(&self, literal: Literal) -> Result<(), LiteralError>
Available on
wgpu_core
only.source§impl Validator
impl Validator
sourcepub fn new(flags: ValidationFlags, capabilities: Capabilities) -> Validator
Available on wgpu_core
only.
pub fn new(flags: ValidationFlags, capabilities: Capabilities) -> Validator
wgpu_core
only.Construct a new validator instance.
pub fn subgroup_stages(&mut self, stages: ShaderStages) -> &mut Validator
Available on
wgpu_core
only.pub fn subgroup_operations( &mut self, operations: SubgroupOperationSet ) -> &mut Validator
Available on
wgpu_core
only.sourcepub fn validate(
&mut self,
module: &Module
) -> Result<ModuleInfo, WithSpan<ValidationError>>
Available on wgpu_core
only.
pub fn validate( &mut self, module: &Module ) -> Result<ModuleInfo, WithSpan<ValidationError>>
wgpu_core
only.Check the given module to be valid.
sourcepub fn validate_no_overrides(
&mut self,
module: &Module
) -> Result<ModuleInfo, WithSpan<ValidationError>>
Available on wgpu_core
only.
pub fn validate_no_overrides( &mut self, module: &Module ) -> Result<ModuleInfo, WithSpan<ValidationError>>
wgpu_core
only.Check the given module to be valid.
With the additional restriction that overrides are not present.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more