commit | 14a2398e711f5df5dbb0ec45999d6b16c1e80304 | [log] [tgz] |
---|---|---|
author | Bryan Bernhart <bryan.bernhart@intel.com> | Fri Feb 05 20:11:24 2021 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Fri Feb 05 20:11:24 2021 +0000 |
tree | 6a4ca9bce23838a4347c34b505f7fdd854599db7 | |
parent | 185c6a5b0f358c115e3d3ef43afbb157d4c4b591 [diff] [blame] |
D3D12: Support per plane views with NV12 textures Adds support for NV12 texture format and per plane view aspects. Only allows planar sampling of imported DX11 textures. See usage tests for examples and formats.h for rules. Bug: dawn:551 Change-Id: I44b89d2c07bb9969638e77ce7c756ef367167f0c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/38781 Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com> Reviewed-by: Austin Eng <enga@chromium.org>
diff --git a/src/dawn_native/vulkan/UtilsVulkan.cpp b/src/dawn_native/vulkan/UtilsVulkan.cpp index b379e25..7e58319 100644 --- a/src/dawn_native/vulkan/UtilsVulkan.cpp +++ b/src/dawn_native/vulkan/UtilsVulkan.cpp
@@ -65,6 +65,8 @@ flags |= VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; break; + case Aspect::Plane0: + case Aspect::Plane1: case Aspect::None: UNREACHABLE(); }