Add entry points for creating a cube map/cube map array texture view
This patch adds the entry points for creating cube map and cube map
array texture views. This patch also adds validations that the array
layer in the texture view descriptor must be 6 when the texture view
dimension is cube map, and a multiple of 6 when the texture view
dimension is cube map array.
BUG=dawn:16
TEST=dawn_unittests
Change-Id: I86a66c3753a7678351f65b43f6cd54b96d1b762c
Reviewed-on: https://dawn-review.googlesource.com/c/2200
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
diff --git a/dawn.json b/dawn.json
index 7ed7a6f..5837279 100644
--- a/dawn.json
+++ b/dawn.json
@@ -1111,10 +1111,12 @@
"category": "enum",
"values": [
{"value": 0, "name": "2D"},
- {"value": 1, "name": "2D array"}
+ {"value": 1, "name": "2D array"},
+ {"value": 2, "name": "cube"},
+ {"value": 3, "name": "cube array"}
],
"TODO": [
- "jiawei.shao@intel.com: support 1D, 3D, cube and cube array texture views"
+ "jiawei.shao@intel.com: support 1D and 3D texture views"
]
},
"vertex format": {