Moves remaining logic in BindGroup dtor into Destroy.
Bug: dawn:628 Change-Id: I2e6a403c89e450efc952c91a2d497b99aa60c298 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/71244 Commit-Queue: Loko Kung <lokokung@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
6331f959c1
commit
1d47bac0fc
|
@ -399,7 +399,9 @@ namespace dawn_native {
|
|||
TrackInDevice();
|
||||
}
|
||||
|
||||
BindGroupBase::~BindGroupBase() {
|
||||
BindGroupBase::~BindGroupBase() = default;
|
||||
|
||||
void BindGroupBase::DestroyImpl() {
|
||||
if (mLayout != nullptr) {
|
||||
ASSERT(!IsError());
|
||||
for (BindingIndex i{0}; i < mLayout->GetBindingCount(); ++i) {
|
||||
|
@ -408,9 +410,6 @@ namespace dawn_native {
|
|||
}
|
||||
}
|
||||
|
||||
void BindGroupBase::DestroyImpl() {
|
||||
}
|
||||
|
||||
void BindGroupBase::DeleteThis() {
|
||||
// Add another ref to the layout so that if this is the last ref, the layout
|
||||
// is destroyed after the bind group. The bind group is slab-allocated inside
|
||||
|
|
Loading…
Reference in New Issue