mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 00:26:00 +00:00
This patch adds validations to the texture usage "Storage" when creating a texture. 1. "Storage" usage cannot be used when SampleCount > 1 2. "Storage" usage can only be used with some texture formats. The list of the formats can be found through the following link: https://github.com/gpuweb/gpuweb/issues/513 BUG=dawn:267 TEST=dawn_unittests Change-Id: Ifc7296d966ac0c600433948a63c3dd6a436c8d8b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/15040 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>