Update shader validation message to reflect new @ binding syntax

Fixed: dawn:1317
Change-Id: Ib8eb4068ae9c52513945a51fe0a7a88a6e3fa43e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/83062
Reviewed-by: Brandon Jones <bajones@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
Austin Eng 2022-03-09 00:06:30 +00:00 committed by Dawn LUCI CQ
parent 4f1596134e
commit 1a73be4107
2 changed files with 3 additions and 3 deletions

View File

@ -589,8 +589,8 @@ namespace dawn::native {
for (const auto& [bindingId, bindingInfo] : entryPoint.bindings[group]) { for (const auto& [bindingId, bindingInfo] : entryPoint.bindings[group]) {
DAWN_TRY_CONTEXT(ValidateCompatibilityOfSingleBindingWithLayout( DAWN_TRY_CONTEXT(ValidateCompatibilityOfSingleBindingWithLayout(
device, layout, entryPoint.stage, bindingId, bindingInfo), device, layout, entryPoint.stage, bindingId, bindingInfo),
"validating that the entry-point's declaration for [[group(%u), " "validating that the entry-point's declaration for @group(%u) "
"binding(%u)]] matches %s", "@binding(%u) matches %s",
static_cast<uint32_t>(group), static_cast<uint32_t>(bindingId), static_cast<uint32_t>(group), static_cast<uint32_t>(bindingId),
layout); layout);
} }

View File

@ -166,7 +166,7 @@ namespace dawn::native {
// ShaderModuleBase. // ShaderModuleBase.
struct EntryPointMetadata { struct EntryPointMetadata {
// bindings[G][B] is the reflection data for the binding defined with // bindings[G][B] is the reflection data for the binding defined with
// [[group=G, binding=B]] in WGSL / SPIRV. // @group(G) @binding(B) in WGSL / SPIRV.
BindingInfoArray bindings; BindingInfoArray bindings;
struct SamplerTexturePair { struct SamplerTexturePair {