fn gen_unexpected_error(err: SpirvErrorCode) -> ShaderError {
    let msg = match err {
        SpirvErrorCode::CompilationError(msg) => msg,
        SpirvErrorCode::Unhandled => "Unexpected error".into(),
    };
    ShaderError::CompilationFailed(msg)
}
/// Emit error during shader module creation. Used if we don't expect an error
/// but might panic due to an exception in SPIRV-Cross.
Emit error during shader module creation. Used if we don't expect an error
but might panic due to an exception in SPIRV-Cross.
Emit error during shader module creation . Used if we don ' t expect an error but might panic due to an exception in SPIRV - Cross .
fn gen_unexpected_error(err: SpirvErrorCode) -> ShaderError {
    let msg = match err {
        SpirvErrorCode::CompilationError(msg) => msg,
        SpirvErrorCode::Unhandled => "Unexpected error".into(),
    };
    ShaderError::CompilationFailed(msg)
}
fn gen_unexpected_error ( err : SpirvErrorCode ) -> ShaderError { let msg = match err { SpirvErrorCode :: CompilationError ( msg ) => msg , SpirvErrorCode :: Unhandled => " " . into ( ) , } ; ShaderError :: CompilationFailed ( msg ) }
Emit error during shader module creation.
Emit error during shader module creation .
err
SpirvErrorCode
err
SpirvErrorCode