mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-24 23:43:30 +00:00
If the literal was constructed with an 'f', make sure we print it. Bug: tint:1504 Change-Id: I6f04e31a166919c07574db56b0a2063ce5b8ca5c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91965 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
18 lines
271 B
WebGPU Shading Language
18 lines
271 B
WebGPU Shading Language
var<private> gl_Position : vec4<f32>;
|
|
|
|
fn main_1() {
|
|
gl_Position = vec4<f32>(0.0f, 0.0f, 0.0f, 0.0f);
|
|
return;
|
|
}
|
|
|
|
struct main_out {
|
|
@builtin(position)
|
|
gl_Position : vec4<f32>,
|
|
}
|
|
|
|
@stage(vertex)
|
|
fn main() -> main_out {
|
|
main_1();
|
|
return main_out(gl_Position);
|
|
}
|