Port ComputeIndirectValidationTests to WGSL

Bug: dawn:572
Change-Id: I0db11c2416ca430b026cd2293061e99d35b18973
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/33924
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
Corentin Wallez 2020-11-26 12:57:45 +00:00 committed by Commit Bot service account
parent 261d261fd1
commit e433709e6e
1 changed files with 3 additions and 6 deletions

View File

@ -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);