mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
[wgsl] function lookup, improve error reporting
This commit is contained in:
1 parent
82c5cff605
commit
b7744a1ec5
4 files changed
+50
-48
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user