Fixes for Emscripten generators

Bug: none
Change-Id: I9b4f7843e2b401776a868d33335a9df027c13511
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24881
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Kai Ninomiya 2020-07-15 08:57:49 +00:00 committed by Commit Bot service account
parent 3b17f0bde8
commit 9da11c990f
2 changed files with 3 additions and 4 deletions

View File

@ -430,7 +430,7 @@
"compare function": { "compare function": {
"category": "enum", "category": "enum",
"values": [ "values": [
{"value": 0, "name": "undefined"}, {"value": 0, "name": "undefined", "jsrepr": "undefined"},
{"value": 1, "name": "never"}, {"value": 1, "name": "never"},
{"value": 2, "name": "less"}, {"value": 2, "name": "less"},
{"value": 3, "name": "less equal"}, {"value": 3, "name": "less equal"},

View File

@ -23,14 +23,13 @@
"defines": [], "defines": [],
"structs": { "structs": {
"WGPUChainedStruct": [ "WGPUChainedStruct": [
"nextInChain", "next",
"sType" "sType"
], ],
{% for type in by_category["structure"] if type.javascript %} {% for type in by_category["structure"] if type.javascript %}
"{{as_cType(type.name)}}": [ "{{as_cType(type.name)}}": [
{% if type.chained %} {% if type.chained %}
"nextInChain", "chain"
"sType"
{%- elif type.extensible %} {%- elif type.extensible %}
"nextInChain" "nextInChain"
{%- endif %} {%- endif %}