naga::proc

Module overloads

Source
Expand description

Overload resolution for builtin functions.

This module defines the OverloadSet trait, which provides methods the validator and typifier can use to check the types to builtin functions, determine their result types, and produce diagnostics that explain why a given application is not allowed and suggest fixes.

You can call MathFunction::overloads to obtain an impl OverloadSet representing the given MathFunction’s overloads.

Re-exports§

Modules§

Traits§

  • A trait for types representing of a set of Naga IR type rules.