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>
@group(0)
@binding(0)
var screen_texture: texture_2d<f32>

motion_vectors

#
@group(0)
@binding(1)
var motion_vectors: texture_multisampled_2d<f32>
@group(0)
@binding(1)
var motion_vectors: texture_2d<f32>

depth

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

texture_sampler

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

settings

#
@group(0)
@binding(4)
var<uniform> settings: MotionBlur

globals

#
@group(0)
@binding(5)
var<uniform> globals: Globals

Structures

MotionBlur

#
struct MotionBlur {
shutter_angle: f32 ,
samples: u32 ,
@if(SIXTEEN_BYTE_ALIGNMENT)
_webgl2_padding: vec2<f32> ,
}

Functions

fragment

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