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#define_import_path include
3fn non_ep(f: f32) -> f32 {
4 return f * 2.0;
5}
7@fragment
8fn fragment(
9 @builtin(position) frag_coord: vec4<f32>,
10) -> @location(0) vec4<f32> {
11 return vec4<f32>(1.5 * frag_coord);
Contents