Add missing validation for unsupported texture view dims.
BUG=chromium:984809 Change-Id: Iea6bf88f79f9749237052c16e0ab2dd15d7d4308 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9081 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
ee0fa175a3
commit
9dbb81f004
|
@ -373,6 +373,11 @@ namespace dawn_native {
|
|||
}
|
||||
|
||||
DAWN_TRY(ValidateTextureViewDimension(descriptor->dimension));
|
||||
if (descriptor->dimension == dawn::TextureViewDimension::e1D ||
|
||||
descriptor->dimension == dawn::TextureViewDimension::e3D) {
|
||||
return DAWN_VALIDATION_ERROR("Texture view dimension must be 2D compatible.");
|
||||
}
|
||||
|
||||
DAWN_TRY(ValidateTextureFormat(descriptor->format));
|
||||
|
||||
// TODO(jiawei.shao@intel.com): check stuff based on resource limits
|
||||
|
|
Loading…
Reference in New Issue