Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
1// module `package::cycle_a`: circular module imports are allowed.
2// cycle_a imports from cycle_b, and cycle_b imports from cycle_a.
3// (the declarations themselves must not be cyclic: no call or const cycle.)
5import package::cycle_b::pong;
7const A_OFFSET: f32 = 0.25;
9fn ping(x: f32) -> f32 {
10 return x + A_OFFSET;
13public fn ping2(x: f32) -> f32 {
14 return pong(x) + ping(0.0);
Contents