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.

Bindings

screen_texture

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

texture_sampler

#
@group(0)
@binding(1)
var texture_sampler: sampler

settings

#
@group(0)
@binding(2)
var<uniform> settings: FullScreenEffect

Structures

FullScreenEffect

#
struct FullScreenEffect {
intensity: f32 ,
@if(SIXTEEN_BYTE_ALIGNMENT)
_webgl2_padding: vec3<f32> ,
}

Functions

fragment

#
@fragment
Calculates the final color of each pixel on the screen
fn fragment (
in: FullscreenVertexOutput
) ->
@location(0)
vec4<f32>
Contents