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.
1import super::util::make_polka_dots;
3struct VertexOutput {
4 @builtin(position) position: vec4<f32>,
5 @location(2) uv: vec2<f32>,
6}
8struct CustomMaterial {
9 // Needed for 16-bit alignment on WebGL2
10 time: vec4<f32>,
13@group(3) @binding(0) var<uniform> material: CustomMaterial;
15@fragment
16fn fragment(
17 mesh: VertexOutput,
18) -> @location(0) vec4<f32> {
19 return make_polka_dots(mesh.uv, material.time.x);
Contents