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:
parent
4f1596134e
commit
1a73be4107
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue