[wgsl] function lookup, improve error reporting

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2020-12-10 10:20:56 -05:00
1 parent 82c5cff605
commit b7744a1ec5
4 files changed
+50 -48

No files matched your search

+1 -3
View File
@@ -1,11 +1,9 @@
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 foo: f32 = distance(0.0, 1.0);
var test: f32 = test_function(1.0);
}