Skip to content

Commit 2d2b7b4

Browse files
committed
Rename Feature/Limit to DeviceFeature/DeviceLimit
With aliases for the old names.
1 parent 504373d commit 2d2b7b4

File tree

5 files changed

+326
-215
lines changed

5 files changed

+326
-215
lines changed

gen/cheader.tmpl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
*
8282
* @{
8383
*/
84-
84+
{{ if eq .Name "webgpu"}}
8585
/**
8686
* 'True' value of @ref WGPUBool.
8787
*
@@ -96,6 +96,15 @@
9696
* `stdbool.h` or C++) casts to the same value.
9797
*/
9898
#define WGPU_FALSE (UINT32_C(0))
99+
/**
100+
* @deprecated alias for the new, more specific macro name.
101+
*/
102+
#define WGPU_LIMITS_INIT WGPU_DEVICE_LIMITS_INIT
103+
/**
104+
* @deprecated alias for the new, more specific macro name.
105+
*/
106+
#define WGPU_SUPPORTED_FEATURES_INIT WGPU_SUPPORTED_DEVICE_FEATURES_INIT
107+
{{- end }}
99108
{{- range .Constants}}
100109
{{- MComment .Doc 0}}
101110
#define WGPU_{{ConstantCaseName .Base}} ({{.Value | CValue}})

schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
"type": "string"
293293
},
294294
"type": {
295-
"$ref": "#/definitions/PrimitiveType"
295+
"$ref": "#/definitions/Type"
296296
}
297297
},
298298
"required": [

tests/extensions/webgpu_extension.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,6 @@
3232
* @{
3333
*/
3434

35-
/**
36-
* 'True' value of @ref WGPUBool.
37-
*
38-
* @remark It's not usually necessary to use this, as `true` (from
39-
* `stdbool.h` or C++) casts to the same value.
40-
*/
41-
#define WGPU_TRUE (UINT32_C(1))
42-
/**
43-
* 'False' value of @ref WGPUBool.
44-
*
45-
* @remark It's not usually necessary to use this, as `false` (from
46-
* `stdbool.h` or C++) casts to the same value.
47-
*/
48-
#define WGPU_FALSE (UINT32_C(0))
4935
/**
5036
* New constant should have the namespace prefix in the name by default.
5137
*/

0 commit comments

Comments
 (0)