|
4 | 4 |
|
5 | 5 | # flake8: noqa |
6 | 6 |
|
7 | | -# There are 188 enum mappings |
| 7 | +# There are 227 enum mappings |
8 | 8 |
|
9 | 9 | enummap = { |
10 | 10 | "AddressMode.clamp-to-edge": 2, |
|
42 | 42 | "CompilationMessageType.error": 0, |
43 | 43 | "CompilationMessageType.info": 2, |
44 | 44 | "CompilationMessageType.warning": 1, |
| 45 | + "ComputePassTimestampLocation.beginning": 0, |
| 46 | + "ComputePassTimestampLocation.end": 1, |
45 | 47 | "CullMode.back": 2, |
46 | 48 | "CullMode.front": 1, |
47 | 49 | "CullMode.none": 0, |
48 | 50 | "DeviceLostReason.destroyed": 1, |
49 | 51 | "ErrorFilter.out-of-memory": 2, |
50 | 52 | "ErrorFilter.validation": 1, |
| 53 | + "FeatureName.depth-clip-control": 1, |
51 | 54 | "FeatureName.depth24unorm-stencil8": 2, |
52 | 55 | "FeatureName.depth32float-stencil8": 3, |
53 | | - "FeatureName.pipeline-statistics-query": 5, |
| 56 | + "FeatureName.indirect-first-instance": 9, |
| 57 | + "FeatureName.texture-compression-astc": 8, |
54 | 58 | "FeatureName.texture-compression-bc": 6, |
| 59 | + "FeatureName.texture-compression-etc2": 7, |
55 | 60 | "FeatureName.timestamp-query": 4, |
56 | 61 | "FilterMode.linear": 1, |
57 | 62 | "FilterMode.nearest": 0, |
|
60 | 65 | "IndexFormat.uint16": 1, |
61 | 66 | "IndexFormat.uint32": 2, |
62 | 67 | "LoadOp.load": 1, |
63 | | - "PipelineStatisticName.clipper-invocations": 1, |
64 | | - "PipelineStatisticName.clipper-primitives-out": 2, |
65 | | - "PipelineStatisticName.compute-shader-invocations": 4, |
66 | | - "PipelineStatisticName.fragment-shader-invocations": 3, |
67 | | - "PipelineStatisticName.vertex-shader-invocations": 0, |
68 | 68 | "PowerPreference.high-performance": 2, |
69 | 69 | "PowerPreference.low-power": 1, |
70 | 70 | "PrimitiveTopology.line-list": 1, |
|
73 | 73 | "PrimitiveTopology.triangle-list": 3, |
74 | 74 | "PrimitiveTopology.triangle-strip": 4, |
75 | 75 | "QueryType.occlusion": 0, |
76 | | - "QueryType.pipeline-statistics": 1, |
77 | 76 | "QueryType.timestamp": 2, |
| 77 | + "RenderPassTimestampLocation.beginning": 0, |
| 78 | + "RenderPassTimestampLocation.end": 1, |
78 | 79 | "SamplerBindingType.comparison": 3, |
79 | 80 | "SamplerBindingType.filtering": 1, |
80 | 81 | "SamplerBindingType.non-filtering": 2, |
|
95 | 96 | "TextureDimension.1d": 0, |
96 | 97 | "TextureDimension.2d": 1, |
97 | 98 | "TextureDimension.3d": 2, |
| 99 | + "TextureFormat.astc-10x10-unorm": 90, |
| 100 | + "TextureFormat.astc-10x10-unorm-srgb": 91, |
| 101 | + "TextureFormat.astc-10x5-unorm": 84, |
| 102 | + "TextureFormat.astc-10x5-unorm-srgb": 85, |
| 103 | + "TextureFormat.astc-10x6-unorm": 86, |
| 104 | + "TextureFormat.astc-10x6-unorm-srgb": 87, |
| 105 | + "TextureFormat.astc-10x8-unorm": 88, |
| 106 | + "TextureFormat.astc-10x8-unorm-srgb": 89, |
| 107 | + "TextureFormat.astc-12x10-unorm": 92, |
| 108 | + "TextureFormat.astc-12x10-unorm-srgb": 93, |
| 109 | + "TextureFormat.astc-12x12-unorm": 94, |
| 110 | + "TextureFormat.astc-12x12-unorm-srgb": 95, |
| 111 | + "TextureFormat.astc-4x4-unorm": 68, |
| 112 | + "TextureFormat.astc-4x4-unorm-srgb": 69, |
| 113 | + "TextureFormat.astc-5x4-unorm": 70, |
| 114 | + "TextureFormat.astc-5x4-unorm-srgb": 71, |
| 115 | + "TextureFormat.astc-5x5-unorm": 72, |
| 116 | + "TextureFormat.astc-5x5-unorm-srgb": 73, |
| 117 | + "TextureFormat.astc-6x5-unorm": 74, |
| 118 | + "TextureFormat.astc-6x5-unorm-srgb": 75, |
| 119 | + "TextureFormat.astc-6x6-unorm": 76, |
| 120 | + "TextureFormat.astc-6x6-unorm-srgb": 77, |
| 121 | + "TextureFormat.astc-8x5-unorm": 78, |
| 122 | + "TextureFormat.astc-8x5-unorm-srgb": 79, |
| 123 | + "TextureFormat.astc-8x6-unorm": 80, |
| 124 | + "TextureFormat.astc-8x6-unorm-srgb": 81, |
| 125 | + "TextureFormat.astc-8x8-unorm": 82, |
| 126 | + "TextureFormat.astc-8x8-unorm-srgb": 83, |
98 | 127 | "TextureFormat.bc1-rgba-unorm": 44, |
99 | 128 | "TextureFormat.bc1-rgba-unorm-srgb": 45, |
100 | 129 | "TextureFormat.bc2-rgba-unorm": 46, |
|
117 | 146 | "TextureFormat.depth24unorm-stencil8": 41, |
118 | 147 | "TextureFormat.depth32float": 42, |
119 | 148 | "TextureFormat.depth32float-stencil8": 43, |
| 149 | + "TextureFormat.eac-r11snorm": 65, |
| 150 | + "TextureFormat.eac-r11unorm": 64, |
| 151 | + "TextureFormat.eac-rg11snorm": 67, |
| 152 | + "TextureFormat.eac-rg11unorm": 66, |
| 153 | + "TextureFormat.etc2-rgb8a1unorm": 60, |
| 154 | + "TextureFormat.etc2-rgb8a1unorm-srgb": 61, |
| 155 | + "TextureFormat.etc2-rgb8unorm": 58, |
| 156 | + "TextureFormat.etc2-rgb8unorm-srgb": 59, |
| 157 | + "TextureFormat.etc2-rgba8unorm": 62, |
| 158 | + "TextureFormat.etc2-rgba8unorm-srgb": 63, |
120 | 159 | "TextureFormat.r16float": 7, |
121 | 160 | "TextureFormat.r16sint": 6, |
122 | 161 | "TextureFormat.r16uint": 5, |
|
197 | 236 | "VertexStepMode.vertex": 0, |
198 | 237 | } |
199 | 238 |
|
200 | | -# There are 47 struct-field enum mappings |
| 239 | +# There are 49 struct-field enum mappings |
201 | 240 |
|
202 | 241 | cstructfield2enum = { |
203 | 242 | "BlendComponent.dstFactor": "BlendFactor", |
|
206 | 245 | "BufferBindingLayout.type": "BufferBindingType", |
207 | 246 | "ColorTargetState.format": "TextureFormat", |
208 | 247 | "CompilationMessage.type": "CompilationMessageType", |
| 248 | + "ComputePassTimestampWrite.location": "ComputePassTimestampLocation", |
209 | 249 | "DepthStencilState.depthCompare": "CompareFunction", |
210 | 250 | "DepthStencilState.format": "TextureFormat", |
211 | 251 | "ImageCopyTexture.aspect": "TextureAspect", |
|
221 | 261 | "RenderPassDepthStencilAttachment.depthStoreOp": "StoreOp", |
222 | 262 | "RenderPassDepthStencilAttachment.stencilLoadOp": "LoadOp", |
223 | 263 | "RenderPassDepthStencilAttachment.stencilStoreOp": "StoreOp", |
| 264 | + "RenderPassTimestampWrite.location": "RenderPassTimestampLocation", |
224 | 265 | "RequestAdapterOptions.powerPreference": "PowerPreference", |
225 | 266 | "SamplerBindingLayout.type": "SamplerBindingType", |
226 | 267 | "SamplerDescriptor.addressModeU": "AddressMode", |
|
0 commit comments