mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
10 lines
176 B
WebGPU Shading Language
10 lines
176 B
WebGPU Shading Language
fn test_function(test: f32) -> f32 {
|
|
return test;
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn main() -> void {
|
|
var foo: f32 = distance(0.0, 1.0);
|
|
var test: f32 = test_function(1.0);
|
|
}
|