CommandBufferVk: Update an ASSERT with copy format compatibility.
Fixed: dawn:1354 Change-Id: Id5b8169113436debf7a8af71df9737d1e0d2dec5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/85920 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
380a262ad0
commit
a696d08c51
|
@ -449,7 +449,7 @@ namespace dawn::native::vulkan {
|
|||
const TextureCopy& srcCopy,
|
||||
const TextureCopy& dstCopy,
|
||||
const Extent3D& copySize) {
|
||||
ASSERT(srcCopy.texture->GetFormat().format == dstCopy.texture->GetFormat().format);
|
||||
ASSERT(srcCopy.texture->GetFormat().CopyCompatibleWith(dstCopy.texture->GetFormat()));
|
||||
ASSERT(srcCopy.aspect == dstCopy.aspect);
|
||||
dawn::native::Format format = srcCopy.texture->GetFormat();
|
||||
const TexelBlockInfo& blockInfo = format.GetAspectInfo(srcCopy.aspect).block;
|
||||
|
|
Loading…
Reference in New Issue