Fix triangle.wgsl's floating point literals.

Bug: None
Change-Id: I76a4df338e6354915844822ac1d40cece10ac9e0
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/27241
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Corentin Wallez 2020-08-24 13:04:36 +00:00 committed by Commit Bot service account
parent c189b1d479
commit 04f5166ac1
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ entry_point vertex as "main" = vtx_main;
# Fragment shader
[[location 0]] var<out> outColor : vec4<f32>;
fn frag_main() -> void {
outColor = vec4<f32>(1, 0, 0, 1);
outColor = vec4<f32>(1.0, 0.0, 0.0, 1.0);
return;
}
entry_point fragment = frag_main;