20 lines
279 B
WebGPU Shading Language
20 lines
279 B
WebGPU Shading Language
fn exp_771fd2() {
|
|
var res : f32 = exp(1.0);
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
|
exp_771fd2();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment_main() {
|
|
exp_771fd2();
|
|
}
|
|
|
|
[[stage(compute)]]
|
|
fn compute_main() {
|
|
exp_771fd2();
|
|
}
|