Function Calls
Functions can be declared in any order.
Function calls cannot be recursive, either directly:
| |
or indirectly:
| |
Functions can be declared in any order.
Function calls cannot be recursive, either directly:
| |
or indirectly:
| |
// WGSL does not require functions to be declared before usage
fn a() {
b(); // 'a' can call 'b' ...
}
fn b() {
// ...even when 'b' is declared after 'a'
}