mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-19 01:46:35 +00:00
Fix misplaced ASSERT in bind group validation
Fixed: dawn:614 Change-Id: I06e4c89f34a1705346620dea074e3d469cbd1409 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/55900 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
@@ -155,11 +155,10 @@ namespace dawn_native {
|
||||
break;
|
||||
}
|
||||
case BindingInfoType::StorageTexture: {
|
||||
ASSERT(!texture->IsMultisampledTexture());
|
||||
|
||||
if (!(texture->GetUsage() & wgpu::TextureUsage::Storage)) {
|
||||
return DAWN_VALIDATION_ERROR("Storage Texture binding usage mismatch");
|
||||
}
|
||||
ASSERT(!texture->IsMultisampledTexture());
|
||||
|
||||
if (texture->GetFormat().format != bindingInfo.storageTexture.format) {
|
||||
return DAWN_VALIDATION_ERROR("Storage texture format mismatch");
|
||||
|
||||
Reference in New Issue
Block a user