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