From e433709e6e139684bb989ca95c0448d3267bbd3a Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Thu, 26 Nov 2020 12:57:45 +0000 Subject: [PATCH] Port ComputeIndirectValidationTests to WGSL Bug: dawn:572 Change-Id: I0db11c2416ca430b026cd2293061e99d35b18973 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/33924 Commit-Queue: Corentin Wallez Reviewed-by: Ben Clayton --- .../validation/ComputeIndirectValidationTests.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tests/unittests/validation/ComputeIndirectValidationTests.cpp b/src/tests/unittests/validation/ComputeIndirectValidationTests.cpp index 8fe945dba8..06693df7d0 100644 --- a/src/tests/unittests/validation/ComputeIndirectValidationTests.cpp +++ b/src/tests/unittests/validation/ComputeIndirectValidationTests.cpp @@ -22,12 +22,9 @@ class ComputeIndirectValidationTest : public ValidationTest { void SetUp() override { ValidationTest::SetUp(); - wgpu::ShaderModule computeModule = - utils::CreateShaderModule(device, utils::SingleShaderStage::Compute, R"( - #version 450 - layout(local_size_x = 1) in; - void main() { - })"); + wgpu::ShaderModule computeModule = utils::CreateShaderModuleFromWGSL(device, R"( + [[stage(compute), workgroup_size(1)]] fn main() -> void { + })"); // Set up compute pipeline wgpu::PipelineLayout pl = utils::MakeBasicPipelineLayout(device, nullptr);