dawn-cmake/generator/templates
Corentin Wallez d8c1a48fc4 WireCmd: require opt-in to treat ID 0 as nullptr instead of error.
In preparation for the descriptorization of BindGroup, support was added
to treat wire ID 0 as nullptr for a bunch of objects. Now that we have a
fuzzer for the wire+frontend, we need to validate when we have a 0 id.
Either the wire needs to reject the ID or the frontend needs to validate
against nullptrs. Since only few entrypoints will have a use for
nullptrs (bind groups, render pass resolve textures), we require an
opt-in in the JSON file for a structure member or an argument to be
optional.

This disables the tests related to ID 0 = nullptr, because we don't yet
have optional argument/members in dawn.json.

BUG=chromium:905273
BUG=chromium:906418
BUG=chromium:908678

Change-Id: If9a3c4857db43ca26a90abff2437e1cebb0ab79b
Reviewed-on: https://dawn-review.googlesource.com/c/2704
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
2018-11-28 17:00:33 +00:00
..
dawn_native Make codegen not cast between fnptrs. 2018-11-20 09:33:35 +00:00
dawn_wire WireCmd: require opt-in to treat ID 0 as nullptr instead of error. 2018-11-28 17:00:33 +00:00
api.c Rename nxtProcTable and nxtSetProcs to dawn 2018-07-18 22:54:06 +02:00
api.h dawn.h: Don't use anonymous structures 2018-09-18 12:09:55 +00:00
apicpp.cpp dawncpp.h: Don't expose the fluent syntax for non-builders 2018-09-20 20:05:21 +00:00
apicpp.h Add copy constructors to the C++ Dawn interface 2018-10-25 10:42:49 +00:00
apicpp_traits.h Standardize header guards for libdawn headers 2018-07-25 21:03:49 +02:00
mock_api.cpp Descriptorize Buffer 2018-08-23 08:23:06 -04:00
mock_api.h Descriptorize Buffer 2018-08-23 08:23:06 -04:00