wgsl: Print abstract-floats with full precision.

Change-Id: Ie95547f065b896983b90ffd5455538fdd843b81a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104824
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton
2022-10-12 19:13:38 +00:00
committed by Dawn LUCI CQ
parent 9f513ca541
commit d6daefc379
17 changed files with 321 additions and 116 deletions

View File

@@ -2,5 +2,5 @@ enable f16;
@fragment
fn main() -> @location(0) vec4<f32> {
return vec4<f32>(0.100000001, 0.200000003, 0.300000012, 0.400000006);
return vec4<f32>(0.1, 0.2, 0.3, 0.4);
}

View File

@@ -4,5 +4,5 @@ enable f16;
@fragment
fn main() -> @location(0) vec4<f32> {
return vec4<f32>(0.100000001, 0.200000003, 0.300000012, 0.400000006);
return vec4<f32>(0.1, 0.2, 0.3, 0.4);
}