Files
wgpu/test-data/function.wgsl
2020-09-17 10:08:49 -04:00

12 lines
224 B
WebGPU Shading Language

import "GLSL.std.450" as std::glsl;
fn test_function(test: f32) -> f32 {
return test;
}
[[stage(vertex)]]
fn main() -> void {
var foo: f32 = std::glsl::distance(0.0, 1.0);
var test: f32 = test_function(1.0);
}