taa.wgsl
Constants
Name |
Type |
Value |
DEFAULT_HISTORY_BLEND_RATE
#
|
f32
|
0.1 |
MIN_HISTORY_BLEND_RATE
#
|
f32
|
0.015 |
Bindings
Name |
Group |
Binding index |
Binding type |
Type |
view_target
#
|
0 |
0 |
|
texture_2d<f32>
|
history
#
|
0 |
1 |
|
texture_2d<f32>
|
motion_vectors
#
|
0 |
2 |
|
texture_2d<f32>
|
depth
#
|
0 |
3 |
|
texture_depth_2d
|
nearest_sampler
#
|
0 |
4 |
|
sampler
|
linear_sampler
#
|
0 |
5 |
|
sampler
|
Structures
Functions
fn
rcp(x:
f32)
->
f32
Parameter |
Type |
x |
f32
|
fn
max3(x:
vec3<f32>)
->
f32
fn
tonemap(color:
vec3<f32>)
->
vec3<f32>
fn
reverse_tonemap(color:
vec3<f32>)
->
vec3<f32>
fn
RGB_to_YCoCg(rgb:
vec3<f32>)
->
vec3<f32>
fn
YCoCg_to_RGB(ycocg:
vec3<f32>)
->
vec3<f32>
fn
clip_towards_aabb_center(history_color:
vec3<f32>, current_color:
vec3<f32>, aabb_min:
vec3<f32>, aabb_max:
vec3<f32>)
->
vec3<f32>
fn
sample_history(u:
f32, v:
f32)
->
vec3<f32>
fn
sample_view_target(uv:
vec2<f32>)
->
vec3<f32>
fn
taa(uv:
vec2<f32>)
->
Output
Returns:
Output