Added MultiPlanarFormatExtendedUsages feature.
This feature allows:
- Creating multiplanar textures without importing external image.
- Including CopyDst as texture's usage.
- Copy per-plane data between texture and buffer.
In future this feature would allow:
- Using the texture as render target.
- Copy per-plane data between textures.
This is useful for Chrome to be able to use a multiplanar shared image
with SwiftShader. Chrome emulates the support by creating "shadow"
WGPUTexture to copy/from the shared image. The WGPUTexture needs to be
multiplanar formatted.
Bug: dawn:1923
Bug: chromium:1467566
Change-Id: I00674c41a59cb3b39a39194520c470662efd56ae
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/148000
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Quyen Le <lehoangquyen@chromium.org>
diff --git a/dawn.json b/dawn.json
index afa734e..378a3e9 100644
--- a/dawn.json
+++ b/dawn.json
@@ -1862,6 +1862,7 @@
{"value": 1017, "name": "pixel local storage coherent", "tags": ["dawn"]},
{"value": 1018, "name": "pixel local storage non coherent", "tags": ["dawn"]},
{"value": 1019, "name": "norm16 texture formats", "tags": ["dawn"]},
+ {"value": 1020, "name": "multi planar format extended usages", "tags": ["dawn"]},
{"value": 1100, "name": "shared texture memory vk dedicated allocation", "tags": ["dawn", "native"]},
{"value": 1101, "name": "shared texture memory a hardware buffer", "tags": ["dawn", "native"]},