Update WGSL struct syntax.
This CL updates the Dawn tests to use the new WGSL struct syntax. Bug: tint:175 Change-Id: I7ce43385f9107f1a133117c41325a344d2241657 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30640 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
03e1400fce
commit
3f6bb08d00
|
@ -121,7 +121,7 @@ TEST_P(EntryPointTests, TwoComputeInModule) {
|
||||||
DAWN_SKIP_TEST_IF(IsVulkan());
|
DAWN_SKIP_TEST_IF(IsVulkan());
|
||||||
|
|
||||||
wgpu::ShaderModule module = utils::CreateShaderModuleFromWGSL(device, R"(
|
wgpu::ShaderModule module = utils::CreateShaderModuleFromWGSL(device, R"(
|
||||||
type Data = [[block]] struct {
|
[[block]] struct Data {
|
||||||
[[offset(0)]] data : u32;
|
[[offset(0)]] data : u32;
|
||||||
};
|
};
|
||||||
[[binding(0), set(0)]] var<storage_buffer> data : Data;
|
[[binding(0), set(0)]] var<storage_buffer> data : Data;
|
||||||
|
|
|
@ -830,7 +830,7 @@ TEST_F(GetBindGroupLayoutTests, Reflection) {
|
||||||
// TODO(dawn:216): Re-enable when we correctly reflect which bindings are used for an entryPoint.
|
// TODO(dawn:216): Re-enable when we correctly reflect which bindings are used for an entryPoint.
|
||||||
TEST_F(GetBindGroupLayoutTests, DISABLED_FromCorrectEntryPoint) {
|
TEST_F(GetBindGroupLayoutTests, DISABLED_FromCorrectEntryPoint) {
|
||||||
wgpu::ShaderModule module = utils::CreateShaderModuleFromWGSL(device, R"(
|
wgpu::ShaderModule module = utils::CreateShaderModuleFromWGSL(device, R"(
|
||||||
type Data = [[block]] struct {
|
[[block]] struct Data {
|
||||||
[[offset 0]] data : f32;
|
[[offset 0]] data : f32;
|
||||||
};
|
};
|
||||||
[[binding 0, set 0]] var<storage_buffer> data0 : Data;
|
[[binding 0, set 0]] var<storage_buffer> data0 : Data;
|
||||||
|
|
|
@ -744,7 +744,7 @@ TEST_F(RenderPipelineValidationTest, DISABLED_BindingsFromCorrectEntryPoint) {
|
||||||
DAWN_SKIP_TEST_IF(!HasWGSL());
|
DAWN_SKIP_TEST_IF(!HasWGSL());
|
||||||
|
|
||||||
wgpu::ShaderModule module = utils::CreateShaderModuleFromWGSL(device, R"(
|
wgpu::ShaderModule module = utils::CreateShaderModuleFromWGSL(device, R"(
|
||||||
type Uniforms = [[block]] struct {
|
[[block]] struct Uniforms {
|
||||||
[[offset 0]] data : vec4<f32>;
|
[[offset 0]] data : vec4<f32>;
|
||||||
};
|
};
|
||||||
[[binding 0, set 0]] var<uniform> var0 : Uniforms;
|
[[binding 0, set 0]] var<uniform> var0 : Uniforms;
|
||||||
|
|
Loading…
Reference in New Issue