Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

top.wgsl

Bindings

s

#
@group(0)
@binding(0)
var s: sampler

tex

#
@group(0)
@binding(2)
var tex: texture_2d<f32>

ro_buffer

#
@group(1)
@binding(0)
var<storage, read> ro_buffer: array<f32, 4>

Functions

main

#
@fragment
Calculates the final color of each pixel on the screen
fn main (
@builtin(position)
p: vec4f
) ->
@location(0)
vec4f