dawn-cmake/generator
Corentin Wallez 1260a53018 Mark descriptor/options as optional for requestDevice/Adapter
These were not marked as optional previously because it would mean that
C++ methods would look like void F(a = null, b, c) which is invalid in C++
because default arguments must be contiguous and at the end of the
signature.

This commit adds a special case when optional=true where no_default=true
still marks the argument as optional, but doesn't produce a C++ default
argument.

Fixed: dawn:1502
Change-Id: I1b648d37edb94b8412109fc0a06a91bbbd31b8c4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97002
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
2022-07-26 17:36:44 +00:00
..
templates Mark descriptor/options as optional for requestDevice/Adapter 2022-07-26 17:36:44 +00:00
BUILD.gn tint->dawn: Move src/dawn_native -> src/dawn/native 2022-02-04 17:07:46 +00:00
CMakeLists.txt CMake: tweak third-party imports. 2022-05-16 09:11:21 +00:00
dawn_generator.gni Adds a generated file with the dawn git hash encoded at build time. 2022-03-31 05:09:04 +00:00
dawn_gpu_info_generator.py Begin auto generating GPUInfo utilities 2022-05-26 23:47:39 +00:00
dawn_json_generator.py dawn.json: Add the "chain roots" data for chained structs. 2022-07-14 12:58:25 +00:00
dawn_version_generator.py Fix incorrect indentation in version generator script. 2022-06-23 01:14:24 +00:00
extract_json.py Avoid unnecessary recompiles with code generators. 2021-03-23 19:06:02 +00:00
generator_lib.gni Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
generator_lib.py Adds strformat code-gen for helping auto-generate readable strings for structs. 2022-03-19 00:21:48 +00:00
opengl_loader_generator.py tint->dawn: Move src/dawn_native -> src/dawn/native 2022-02-04 17:07:46 +00:00
remove_files.py Revert "remove_files.py: Print warnings on removals" 2022-06-14 00:04:55 +00:00