|
81 | 81 | * |
82 | 82 | * @{ |
83 | 83 | */ |
84 | | - |
| 84 | +{{ if eq .Name "webgpu"}} |
85 | 85 | /** |
86 | 86 | * 'True' value of @ref WGPUBool. |
87 | 87 | * |
|
96 | 96 | * `stdbool.h` or C++) casts to the same value. |
97 | 97 | */ |
98 | 98 | #define WGPU_FALSE (UINT32_C(0)) |
99 | | -{{- range .Constants}} |
100 | | -{{- MComment .Doc 0}} |
| 99 | +{{- end }} |
| 100 | +{{- range .Constants}} |
| 101 | +{{- MComment .Doc 0}} |
101 | 102 | #define WGPU_{{ConstantCaseName .Base}} ({{.Value | CValue}}) |
102 | | -{{- end}} |
| 103 | +{{- end}} |
103 | 104 |
|
104 | 105 | /** @} */ |
105 | 106 |
|
| 107 | +{{ if eq .Name "webgpu" -}} |
| 108 | +/** |
| 109 | + * \defgroup Aliases Aliases |
| 110 | + * \brief Deprecated aliases for other definitions. |
| 111 | + * |
| 112 | + * @{ |
| 113 | + */ |
| 114 | + |
| 115 | +/** @deprecated alias for the new, more specific enum name. */ |
| 116 | +#define WGPUFeatureName WGPUDeviceFeatureName |
| 117 | +/** @deprecated alias for the new, more specific enum name. */ |
| 118 | +#define WGPUFeatureName_DepthClipControl WGPUDeviceFeatureName_DepthClipControl |
| 119 | +/** @deprecated alias for the new, more specific enum name. */ |
| 120 | +#define WGPUFeatureName_Depth32FloatStencil8 WGPUDeviceFeatureName_Depth32FloatStencil8 |
| 121 | +/** @deprecated alias for the new, more specific enum name. */ |
| 122 | +#define WGPUFeatureName_TimestampQuery WGPUDeviceFeatureName_TimestampQuery |
| 123 | +/** @deprecated alias for the new, more specific enum name. */ |
| 124 | +#define WGPUFeatureName_TextureCompressionBC WGPUDeviceFeatureName_TextureCompressionBC |
| 125 | +/** @deprecated alias for the new, more specific enum name. */ |
| 126 | +#define WGPUFeatureName_TextureCompressionBCSliced3D WGPUDeviceFeatureName_TextureCompressionBCSliced3D |
| 127 | +/** @deprecated alias for the new, more specific enum name. */ |
| 128 | +#define WGPUFeatureName_TextureCompressionETC2 WGPUDeviceFeatureName_TextureCompressionETC2 |
| 129 | +/** @deprecated alias for the new, more specific enum name. */ |
| 130 | +#define WGPUFeatureName_TextureCompressionASTC WGPUDeviceFeatureName_TextureCompressionASTC |
| 131 | +/** @deprecated alias for the new, more specific enum name. */ |
| 132 | +#define WGPUFeatureName_TextureCompressionASTCSliced3D WGPUDeviceFeatureName_TextureCompressionASTCSliced3D |
| 133 | +/** @deprecated alias for the new, more specific enum name. */ |
| 134 | +#define WGPUFeatureName_IndirectFirstInstance WGPUDeviceFeatureName_IndirectFirstInstance |
| 135 | +/** @deprecated alias for the new, more specific enum name. */ |
| 136 | +#define WGPUFeatureName_ShaderF16 WGPUDeviceFeatureName_ShaderF16 |
| 137 | +/** @deprecated alias for the new, more specific enum name. */ |
| 138 | +#define WGPUFeatureName_RG11B10UfloatRenderable WGPUDeviceFeatureName_RG11B10UfloatRenderable |
| 139 | +/** @deprecated alias for the new, more specific enum name. */ |
| 140 | +#define WGPUFeatureName_BGRA8UnormStorage WGPUDeviceFeatureName_BGRA8UnormStorage |
| 141 | +/** @deprecated alias for the new, more specific enum name. */ |
| 142 | +#define WGPUFeatureName_Float32Filterable WGPUDeviceFeatureName_Float32Filterable |
| 143 | +/** @deprecated alias for the new, more specific enum name. */ |
| 144 | +#define WGPUFeatureName_Float32Blendable WGPUDeviceFeatureName_Float32Blendable |
| 145 | +/** @deprecated alias for the new, more specific enum name. */ |
| 146 | +#define WGPUFeatureName_ClipDistances WGPUDeviceFeatureName_ClipDistances |
| 147 | +/** @deprecated alias for the new, more specific enum name. */ |
| 148 | +#define WGPUFeatureName_DualSourceBlending WGPUDeviceFeatureName_DualSourceBlending |
| 149 | +/** @deprecated alias for the new, more specific enum name. */ |
| 150 | +#define WGPUFeatureName_Subgroups WGPUDeviceFeatureName_Subgroups |
| 151 | + |
| 152 | +/** @deprecated alias for the new, more specific struct name. */ |
| 153 | +#define WGPULimits WGPUDeviceLimits |
| 154 | +/** @deprecated alias for the new, more specific struct init macro name. */ |
| 155 | +#define WGPU_LIMITS_INIT WGPU_DEVICE_LIMITS_INIT |
| 156 | + |
| 157 | +/** @deprecated alias for the new, more specific struct name. */ |
| 158 | +#define WGPUSupportedFeatures WGPUSupportedDeviceFeatures |
| 159 | +/** @deprecated alias for the new, more specific struct init macro name. */ |
| 160 | +#define WGPU_SUPPORTED_FEATURES_INIT WGPU_SUPPORTED_DEVICE_FEATURES_INIT |
| 161 | + |
| 162 | +/** @} */ |
| 163 | + |
| 164 | +{{ end -}} |
| 165 | + |
106 | 166 | /** |
107 | 167 | * \defgroup UtilityTypes Utility Types |
108 | 168 | * |
|
0 commit comments