mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-09 06:35:54 +00:00
We have already been validating the component type of a texture matches the bind group layout. Here is another constraint introduced by https://github.com/gpuweb/gpuweb/pull/384. For better code reuse, conversion from wgpu::TextureComponentType to dawn_native::Format::Type is factored out as a helper function. Bug: dawn:202 Change-Id: I394497722b4043dc109eca60116224b7a617e02e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/12860 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>