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>
This commit is contained in:
Shrek Shao 2022-03-07 19:29:54 +00:00 committed by Dawn LUCI CQ
parent eb5f79b3d1
commit b0987d6e46
1 changed files with 4 additions and 4 deletions

View File

@ -1806,7 +1806,7 @@
{"name": "resolve target", "type": "texture view", "optional": true}, {"name": "resolve target", "type": "texture view", "optional": true},
{"name": "load op", "type": "load op"}, {"name": "load op", "type": "load op"},
{"name": "store op", "type": "store op"}, {"name": "store op", "type": "store op"},
{"name": "clear color", "type": "color", "default": "{ NAN, NAN, NAN, NAN }" }, {"name": "clear color", "type": "color", "default": "{ NAN, NAN, NAN, NAN }", "tags": ["deprecated"]},
{"name": "clear value", "type": "color"} {"name": "clear value", "type": "color"}
] ]
}, },
@ -1817,12 +1817,12 @@
{"name": "view", "type": "texture view"}, {"name": "view", "type": "texture view"},
{"name": "depth load op", "type": "load op", "default": "undefined"}, {"name": "depth load op", "type": "load op", "default": "undefined"},
{"name": "depth store op", "type": "store 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 clear value", "type": "float", "default": "0"},
{"name": "depth read only", "type": "bool", "default": "false"}, {"name": "depth read only", "type": "bool", "default": "false"},
{"name": "stencil load op", "type": "load op", "default": "undefined"}, {"name": "stencil load op", "type": "load op", "default": "undefined"},
{"name": "stencil store op", "type": "store 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 clear value", "type": "uint32_t", "default": "0"},
{"name": "stencil read only", "type": "bool", "default": "false"} {"name": "stencil read only", "type": "bool", "default": "false"}
] ]