File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 25
25
# define WGPU_EXPORT
26
26
#endif // defined(WGPU_SHARED_LIBRARY)
27
27
28
+ #if !defined(WGPU_DISABLE_DEPRECATED_ALIASES)
29
+ #define WGPU_DISABLE_DEPRECATED_ALIASES 0
30
+ #endif
31
+
28
32
#if !defined(WGPU_OBJECT_ATTRIBUTE)
29
33
#define WGPU_OBJECT_ATTRIBUTE
30
34
#endif
111
115
*
112
116
* @{
113
117
*/
118
+ #if !WGPU_DISABLE_DEPRECATED_ALIASES
114
119
115
120
/** @deprecated alias for the new, more specific enum name. */
116
121
#define WGPUFeatureName WGPUDeviceFeatureName
159
164
/** @deprecated alias for the new, more specific struct init macro name. */
160
165
#define WGPU_SUPPORTED_FEATURES_INIT WGPU_SUPPORTED_DEVICE_FEATURES_INIT
161
166
167
+ #endif // !WGPU_DISABLE_DEPRECATED_ALIASES
162
168
/** @} */
163
169
164
170
{{ end -}}
Original file line number Diff line number Diff line change @@ -153,4 +153,12 @@ int main(void) {
153
153
{ WGPUVertexState x = WGPU_VERTEX_STATE_INIT; }
154
154
{ WGPUFragmentState x = WGPU_FRAGMENT_STATE_INIT; }
155
155
{ WGPURenderPipelineDescriptor x = WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT; }
156
+
157
+ // Tests for deprecations
158
+ { WGPUFeatureName x = WGPUDeviceFeatureName_ShaderF16; }
159
+ { WGPUDeviceFeatureName x = WGPUFeatureName_ShaderF16; }
160
+ { WGPULimits x = WGPU_DEVICE_LIMITS_INIT; }
161
+ { WGPUDeviceLimits x = WGPU_LIMITS_INIT; }
162
+ { WGPUSupportedFeatures x = WGPU_SUPPORTED_DEVICE_FEATURES_INIT; }
163
+ { WGPUSupportedDeviceFeatures x = WGPU_SUPPORTED_FEATURES_INIT; }
156
164
}
Original file line number Diff line number Diff line change 45
45
# define WGPU_EXPORT
46
46
#endif // defined(WGPU_SHARED_LIBRARY)
47
47
48
+ #if !defined(WGPU_DISABLE_DEPRECATED_ALIASES)
49
+ #define WGPU_DISABLE_DEPRECATED_ALIASES 0
50
+ #endif
51
+
48
52
#if !defined(WGPU_OBJECT_ATTRIBUTE)
49
53
#define WGPU_OBJECT_ATTRIBUTE
50
54
#endif
164
168
*
165
169
* @{
166
170
*/
171
+ #if !WGPU_DISABLE_DEPRECATED_ALIASES
167
172
168
173
/* * @deprecated alias for the new, more specific enum name. */
169
174
#define WGPUFeatureName WGPUDeviceFeatureName
212
217
/* * @deprecated alias for the new, more specific struct init macro name. */
213
218
#define WGPU_SUPPORTED_FEATURES_INIT WGPU_SUPPORTED_DEVICE_FEATURES_INIT
214
219
220
+ #endif // !WGPU_DISABLE_DEPRECATED_ALIASES
215
221
/* * @} */
216
222
217
223
/* *
You can’t perform that action at this time.
0 commit comments