From e88bca946e35a91ffda61fed27985ee65b186fb3 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Thu, 1 Apr 2021 13:50:25 +0000 Subject: [PATCH] SubresourceTrackingPerf: use the result of textureDimensions This fixes a failure when use_tint_generator on D3D12, but also preps the code for the future where WGSL requires that return values from functions are used. Bug: None Change-Id: I6b8a5e0aef6550ef39d2972cdc510e05e4be3662 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/46620 Commit-Queue: Corentin Wallez Reviewed-by: Ben Clayton --- src/tests/perf_tests/SubresourceTrackingPerf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/perf_tests/SubresourceTrackingPerf.cpp b/src/tests/perf_tests/SubresourceTrackingPerf.cpp index d39f75beea..d967c0b94a 100644 --- a/src/tests/perf_tests/SubresourceTrackingPerf.cpp +++ b/src/tests/perf_tests/SubresourceTrackingPerf.cpp @@ -80,7 +80,7 @@ class SubresourceTrackingPerf : public DawnPerfTestWithParams FragColor : vec4; [[group(0), binding(0)]] var materials : texture_2d; [[stage(fragment)]] fn main() -> void { - textureDimensions(materials); + const foo : vec2 = textureDimensions(materials); FragColor = vec4(1.0, 0.0, 0.0, 1.0); } )");