From fc441f97fc93daa7624730c646582091ec36723e Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 29 Jan 2021 19:08:15 +0000 Subject: [PATCH] Make wgpu::BindGroupLayoutEntry extensible Bug: dawn:22 Change-Id: Ifce24a0b19fb8d3acb6ac8ab32f3f3e22a248b3b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/39340 Auto-Submit: Corentin Wallez Reviewed-by: Austin Eng Reviewed-by: Stephen White Commit-Queue: Stephen White --- dawn.json | 2 +- src/tests/unittests/wire/WireArgumentTests.cpp | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dawn.json b/dawn.json index 2834a861ea..ec91cd2849 100644 --- a/dawn.json +++ b/dawn.json @@ -163,7 +163,7 @@ "bind group layout entry": { "category": "structure", - "extensible": false, + "extensible": true, "members": [ {"name": "binding", "type": "uint32_t"}, {"name": "visibility", "type": "shader stage"}, diff --git a/src/tests/unittests/wire/WireArgumentTests.cpp b/src/tests/unittests/wire/WireArgumentTests.cpp index f39fa2081a..401f9b875b 100644 --- a/src/tests/unittests/wire/WireArgumentTests.cpp +++ b/src/tests/unittests/wire/WireArgumentTests.cpp @@ -307,7 +307,8 @@ TEST_F(WireArgumentTests, StructureOfObjectArrayArgument) { TEST_F(WireArgumentTests, StructureOfStructureArrayArgument) { static constexpr int NUM_BINDINGS = 3; WGPUBindGroupLayoutEntry entries[NUM_BINDINGS]{ - {0, + {nullptr, + 0, WGPUShaderStage_Vertex, WGPUBindingType_Sampler, false, @@ -319,7 +320,8 @@ TEST_F(WireArgumentTests, StructureOfStructureArrayArgument) { {}, {}, {}}, - {1, + {nullptr, + 1, WGPUShaderStage_Vertex, WGPUBindingType_SampledTexture, false, @@ -331,7 +333,8 @@ TEST_F(WireArgumentTests, StructureOfStructureArrayArgument) { {}, {}, {}}, - {2, + {nullptr, + 2, static_cast(WGPUShaderStage_Vertex | WGPUShaderStage_Fragment), WGPUBindingType_UniformBuffer, false,