Make wgpu::BindGroupLayoutEntry extensible
Bug: dawn:22 Change-Id: Ifce24a0b19fb8d3acb6ac8ab32f3f3e22a248b3b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/39340 Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
parent
ec53444839
commit
fc441f97fc
|
@ -163,7 +163,7 @@
|
||||||
|
|
||||||
"bind group layout entry": {
|
"bind group layout entry": {
|
||||||
"category": "structure",
|
"category": "structure",
|
||||||
"extensible": false,
|
"extensible": true,
|
||||||
"members": [
|
"members": [
|
||||||
{"name": "binding", "type": "uint32_t"},
|
{"name": "binding", "type": "uint32_t"},
|
||||||
{"name": "visibility", "type": "shader stage"},
|
{"name": "visibility", "type": "shader stage"},
|
||||||
|
|
|
@ -307,7 +307,8 @@ TEST_F(WireArgumentTests, StructureOfObjectArrayArgument) {
|
||||||
TEST_F(WireArgumentTests, StructureOfStructureArrayArgument) {
|
TEST_F(WireArgumentTests, StructureOfStructureArrayArgument) {
|
||||||
static constexpr int NUM_BINDINGS = 3;
|
static constexpr int NUM_BINDINGS = 3;
|
||||||
WGPUBindGroupLayoutEntry entries[NUM_BINDINGS]{
|
WGPUBindGroupLayoutEntry entries[NUM_BINDINGS]{
|
||||||
{0,
|
{nullptr,
|
||||||
|
0,
|
||||||
WGPUShaderStage_Vertex,
|
WGPUShaderStage_Vertex,
|
||||||
WGPUBindingType_Sampler,
|
WGPUBindingType_Sampler,
|
||||||
false,
|
false,
|
||||||
|
@ -319,7 +320,8 @@ TEST_F(WireArgumentTests, StructureOfStructureArrayArgument) {
|
||||||
{},
|
{},
|
||||||
{},
|
{},
|
||||||
{}},
|
{}},
|
||||||
{1,
|
{nullptr,
|
||||||
|
1,
|
||||||
WGPUShaderStage_Vertex,
|
WGPUShaderStage_Vertex,
|
||||||
WGPUBindingType_SampledTexture,
|
WGPUBindingType_SampledTexture,
|
||||||
false,
|
false,
|
||||||
|
@ -331,7 +333,8 @@ TEST_F(WireArgumentTests, StructureOfStructureArrayArgument) {
|
||||||
{},
|
{},
|
||||||
{},
|
{},
|
||||||
{}},
|
{}},
|
||||||
{2,
|
{nullptr,
|
||||||
|
2,
|
||||||
static_cast<WGPUShaderStage>(WGPUShaderStage_Vertex | WGPUShaderStage_Fragment),
|
static_cast<WGPUShaderStage>(WGPUShaderStage_Vertex | WGPUShaderStage_Fragment),
|
||||||
WGPUBindingType_UniformBuffer,
|
WGPUBindingType_UniformBuffer,
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Reference in New Issue