dawn-cmake/docs/dawn
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
..
features Adds new chained struct for device creation to specify cache options. 2022-03-01 22:59:40 +00:00
buffer_mapping.md
codegen.md Mark descriptor/options as optional for requestDevice/Adapter 2022-07-26 17:36:44 +00:00
debug_markers.md
debugging.md
device_facilities.md tint->dawn: Move src/dawn_native -> src/dawn/native 2022-02-04 17:07:46 +00:00
errors.md
external_resources.md
fuzzing.md Fix inclusive language presubmit 2022-04-19 22:25:45 +00:00
infra.md Update Starlark config to use 'main' branch 2022-04-25 16:39:44 +00:00
overview.md Nuke SPIRV-Cross. 2022-02-11 00:45:51 +00:00
testing.md Fix inclusive language presubmit 2022-04-19 22:25:45 +00:00