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 2525# define WGPU_EXPORT
2626#endif // defined(WGPU_SHARED_LIBRARY)
2727
28+ #if !defined(WGPU_DISABLE_DEPRECATED_ALIASES)
29+ #define WGPU_DISABLE_DEPRECATED_ALIASES 0
30+ #endif
31+
2832#if !defined(WGPU_OBJECT_ATTRIBUTE)
2933#define WGPU_OBJECT_ATTRIBUTE
3034#endif
111115 *
112116 * @{
113117 */
118+ #if !WGPU_DISABLE_DEPRECATED_ALIASES
114119
115120/** @deprecated alias for the new, more specific enum name. */
116121#define WGPUFeatureName WGPUDeviceFeatureName
159164/** @deprecated alias for the new, more specific struct init macro name. */
160165#define WGPU_SUPPORTED_FEATURES_INIT WGPU_SUPPORTED_DEVICE_FEATURES_INIT
161166
167+ #endif // !WGPU_DISABLE_DEPRECATED_ALIASES
162168/** @} */
163169
164170{{ end -}}
Original file line number Diff line number Diff line change @@ -153,4 +153,12 @@ int main(void) {
153153 { WGPUVertexState x = WGPU_VERTEX_STATE_INIT; }
154154 { WGPUFragmentState x = WGPU_FRAGMENT_STATE_INIT; }
155155 { 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; }
156164}
Original file line number Diff line number Diff line change 4545# define WGPU_EXPORT
4646#endif // defined(WGPU_SHARED_LIBRARY)
4747
48+ #if !defined(WGPU_DISABLE_DEPRECATED_ALIASES)
49+ #define WGPU_DISABLE_DEPRECATED_ALIASES 0
50+ #endif
51+
4852#if !defined(WGPU_OBJECT_ATTRIBUTE)
4953#define WGPU_OBJECT_ATTRIBUTE
5054#endif
164168 *
165169 * @{
166170 */
171+ #if !WGPU_DISABLE_DEPRECATED_ALIASES
167172
168173/* * @deprecated alias for the new, more specific enum name. */
169174#define WGPUFeatureName WGPUDeviceFeatureName
212217/* * @deprecated alias for the new, more specific struct init macro name. */
213218#define WGPU_SUPPORTED_FEATURES_INIT WGPU_SUPPORTED_DEVICE_FEATURES_INIT
214219
220+ #endif // !WGPU_DISABLE_DEPRECATED_ALIASES
215221/* * @} */
216222
217223/* *
You can’t perform that action at this time.
0 commit comments