20 lines
301 B
WebGPU Shading Language
20 lines
301 B
WebGPU Shading Language
|
fn refract_d7569b() {
|
||
|
var res = refract(vec3(1.0), vec3(1.0), 1.0);
|
||
|
}
|
||
|
|
||
|
@vertex
|
||
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||
|
refract_d7569b();
|
||
|
return vec4<f32>();
|
||
|
}
|
||
|
|
||
|
@fragment
|
||
|
fn fragment_main() {
|
||
|
refract_d7569b();
|
||
|
}
|
||
|
|
||
|
@compute @workgroup_size(1)
|
||
|
fn compute_main() {
|
||
|
refract_d7569b();
|
||
|
}
|