mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 21:17:45 +00:00
dawn.json: Add the "chain roots" data for chained structs.
This helps output in the headers information about which structure can be used to extend which. In the future it could also be used to generate helpers that validate that the chain for a root structure contains only allowed extension structs. Fixed: dawn:1486 Change-Id: I6134332d477503e242b3bec9f8e9bedeeb352351 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96000 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
e1bcb0b416
commit
a45561bb8c
@@ -68,7 +68,8 @@ A **record** is a list of **record members**, each of which is a dictionary with
|
||||
**`"structure"`**
|
||||
- `"members"` a **record**, so an array of **record members**
|
||||
- `"extensible"` (defaults to false) a boolean defining if this is an "extensible" WebGPU structure (i.e. has `nextInChain`). "descriptor" structures should usually have this set to true.
|
||||
- `"chained"` (defaults to false) a boolean defining if this is a structure that can be "chained" in a WebGPU structure (i.e. has `nextInChain` and `sType`)
|
||||
- `"chained"` (defaults to None) a string defining if this is a structure that can be "chained" in a WebGPU structure (i.e. has `nextInChain` and `sType`) and in which direction ('in' for inputs to WebGPU, 'out' for outputs)
|
||||
- `"chain roots"` (defaults to []) a list of strings that are the canonical names of structures that can be extended by this structure.
|
||||
|
||||
**`"object"`**
|
||||
- `**methods**` an array of methods for this object. Note that "release" and "reference" don't need to be specified. Each method is a dictionary containing:
|
||||
|
||||
Reference in New Issue
Block a user