Deprecate clearColor, clearDepth, and clearStencil in dawn.json Need to mark them as deprecated to remove from webgpu headers. Bug: dawn:1269 Change-Id: I332e7e4f6a27efd05f4e97240044efb65644cc77 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/82940 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Shrek Shao <shrekshao@google.com>
diff --git a/dawn.json b/dawn.json index 0ee7e22..1cead4a 100644 --- a/dawn.json +++ b/dawn.json
@@ -1806,8 +1806,8 @@ {"name": "resolve target", "type": "texture view", "optional": true}, {"name": "load op", "type": "load op"}, {"name": "store op", "type": "store op"}, - {"name": "clear color", "type": "color", "default": "{ NAN, NAN, NAN, NAN }" }, - {"name": "clear value", "type": "color" } + {"name": "clear color", "type": "color", "default": "{ NAN, NAN, NAN, NAN }", "tags": ["deprecated"]}, + {"name": "clear value", "type": "color"} ] }, @@ -1817,12 +1817,12 @@ {"name": "view", "type": "texture view"}, {"name": "depth load op", "type": "load op", "default": "undefined"}, {"name": "depth store op", "type": "store op", "default": "undefined"}, - {"name": "clear depth", "type": "float", "default": "NAN"}, + {"name": "clear depth", "type": "float", "default": "NAN", "tags": ["deprecated"]}, {"name": "depth clear value", "type": "float", "default": "0"}, {"name": "depth read only", "type": "bool", "default": "false"}, {"name": "stencil load op", "type": "load op", "default": "undefined"}, {"name": "stencil store op", "type": "store op", "default": "undefined"}, - {"name": "clear stencil", "type": "uint32_t", "default": "0"}, + {"name": "clear stencil", "type": "uint32_t", "default": "0", "tags": ["deprecated"]}, {"name": "stencil clear value", "type": "uint32_t", "default": "0"}, {"name": "stencil read only", "type": "bool", "default": "false"} ]