Skip to main content

check_effect

Function check_effect 

Source
pub fn check_effect(
    definition: &EffectDef,
) -> Result<CheckedEffect, ShaderDiagnostics>
Expand description

Checks definition as registration does before the device compiles it: the schema, the lexical rules of the body, its calls and its cost. Device limits (uniform size, texture bindings) and the compile itself are not checked.

ยงErrors

The diagnostics registration would return.