summary refs log tree commit diff
path: root/src/demosaic/lmmse_01_interpolate.wgsl
blob: 57cd328674bd04cf18ac2c6fc906cc796bb111f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
@group(0) @binding(0)
var input_tex: texture_storage_2d<r16uint, read>;

@group(0) @binding(1)
var output_tex: texture_storage_2d<rgba32float, write>;

@compute @workgroup_size(8, 8)
fn main(@builtin(global_invocation_id) global_id: vec3<u32>) {
	let texel = textureLoad(input_tex, global_id.xy);
	textureStore(output_tex, global_id.xy, vec4<f32>(texel) / 1024f);	
}