fn gen_parse_error(err: SpirvErrorCode) -> ShaderError {
    let msg = match err {
        SpirvErrorCode::CompilationError(msg) => msg,
        SpirvErrorCode::Unhandled => "Unknown parse error".into(),
    };
    ShaderError::CompilationFailed(msg)
}
/// Emit error during shader module parsing.
Emit error during shader module parsing.
Emit error during shader module parsing .
fn gen_parse_error(err: SpirvErrorCode) -> ShaderError {
    let msg = match err {
        SpirvErrorCode::CompilationError(msg) => msg,
        SpirvErrorCode::Unhandled => "Unknown parse error".into(),
    };
    ShaderError::CompilationFailed(msg)
}
fn gen_parse_error ( err : SpirvErrorCode ) -> ShaderError { let msg = match err { SpirvErrorCode :: CompilationError ( msg ) => msg , SpirvErrorCode :: Unhandled => " " . into ( ) , } ; ShaderError :: CompilationFailed ( msg ) }
Emit error during shader module parsing.
Emit error during shader module parsing .
err
SpirvErrorCode
err
SpirvErrorCode