@@ -587,7 +587,7 @@ ExpandedBindingInfo ConvertAndExpandBGLEntries(
587
587
struct ExternalTextureExpansion {
588
588
BindingNumber plane0;
589
589
BindingNumber plane1;
590
- BindingNumber params ;
590
+ BindingNumber metadata ;
591
591
};
592
592
absl::flat_hash_map<BindingNumber, ExternalTextureExpansion> externalTextureExpansions;
593
593
@@ -610,16 +610,16 @@ ExpandedBindingInfo ConvertAndExpandBGLEntries(
610
610
entries.push_back (plane1Entry);
611
611
internalEntries.insert (plane1Entry.binding );
612
612
613
- BindingInfo paramsEntry = CreateUniformBindingForExternalTexture (
613
+ BindingInfo metadataEntry = CreateUniformBindingForExternalTexture (
614
614
nextOpenBindingNumberForNewEntryET++, entry->visibility );
615
- entries.push_back (paramsEntry );
616
- internalEntries.insert (paramsEntry .binding );
615
+ entries.push_back (metadataEntry );
616
+ internalEntries.insert (metadataEntry .binding );
617
617
618
618
externalTextureExpansions.insert ({BindingNumber (entry->binding ),
619
619
{
620
620
.plane0 = BindingNumber (plane0Entry.binding ),
621
621
.plane1 = BindingNumber (plane1Entry.binding ),
622
- .params = BindingNumber (paramsEntry .binding ),
622
+ .metadata = BindingNumber (metadataEntry .binding ),
623
623
}});
624
624
}
625
625
@@ -665,7 +665,7 @@ ExpandedBindingInfo ConvertAndExpandBGLEntries(
665
665
for (const auto & [etBindingNumber, expansion] : externalTextureExpansions) {
666
666
auto & layout = entries[fullBindingMap[etBindingNumber]];
667
667
layout.bindingLayout = ExternalTextureBindingInfo{{
668
- .params = fullBindingMap[expansion.params ],
668
+ .metadata = fullBindingMap[expansion.metadata ],
669
669
.plane0 = fullBindingMap[expansion.plane0 ],
670
670
.plane1 = fullBindingMap[expansion.plane1 ],
671
671
}};
@@ -941,7 +941,7 @@ size_t BindGroupLayoutInternalBase::ComputeContentHash() {
941
941
recorder.Record (BindingInfoType::InputAttachment, layout.sampleType );
942
942
},
943
943
[&](const ExternalTextureBindingInfo& layout) {
944
- recorder.Record (BindingInfoType::ExternalTexture, layout.params , layout.plane0 ,
944
+ recorder.Record (BindingInfoType::ExternalTexture, layout.metadata , layout.plane0 ,
945
945
layout.plane1 );
946
946
});
947
947
}
0 commit comments