From 04f5166ac1756a0d1c3878003c530b86c15c13cf Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 24 Aug 2020 13:04:36 +0000 Subject: [PATCH] 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 Reviewed-by: dan sinclair --- test/triangle.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/triangle.wgsl b/test/triangle.wgsl index 6eb9ed7b00..d833e83528 100644 --- a/test/triangle.wgsl +++ b/test/triangle.wgsl @@ -30,7 +30,7 @@ entry_point vertex as "main" = vtx_main; # Fragment shader [[location 0]] var outColor : vec4; fn frag_main() -> void { - outColor = vec4(1, 0, 0, 1); + outColor = vec4(1.0, 0.0, 0.0, 1.0); return; } entry_point fragment = frag_main;