@matjash/pixi-native-linux-x64 0.1.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +7 -6
- package/index.cjs +1 -0
- package/native/audio/binding-path.js +16 -0
- package/native/audio/dist/linux-x64/native_audio.node +0 -0
- package/native/audio/package.json +7 -0
- package/native/audio/src/audio_impl.rs +1348 -0
- package/native/audio/src/index.d.ts +63 -0
- package/native/audio/src/index.js +5 -0
- package/native/audio/src/lib.rs +5 -0
- package/native/gpu/dist/linux-x64/pixi_native_gpu.node +0 -0
- package/native/gpu/package.json +20 -20
- package/native/gpu/src/binding-path.js +13 -9
- package/native/gpu/src/index.d.ts +430 -683
- package/native/gpu/src/index.js +34 -33
- package/native/video/package.json +5 -5
- package/native/video/src/binding-path.js +16 -7
- package/native/video/src/index.d.ts +28 -28
- package/native/video/src/index.js +39 -39
- package/native/video/src/lib.rs +34 -7
- package/native/window/binding-path.js +9 -3
- package/native/window/dist/linux-x64/libSDL3.so.0 +0 -0
- package/native/window/dist/linux-x64/native_window.node +0 -0
- package/native/window/package.json +5 -5
- package/native/window/src/index.d.ts +54 -8
- package/native/window/src/index.js +80 -11
- package/native/window/src/key-mapping.js +32 -0
- package/native/window/src/lib.rs +658 -46
- package/package.json +1 -1
|
@@ -1,382 +1,261 @@
|
|
|
1
1
|
type GPUBindingResource =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
type
|
|
12
|
-
|
|
13
|
-
| Array<number>
|
|
14
|
-
| GPUColorDict;
|
|
15
|
-
type GPUColorWriteFlags =
|
|
16
|
-
number;
|
|
17
|
-
type GPUDepthBias =
|
|
18
|
-
number;
|
|
19
|
-
type GPUExtent3D =
|
|
20
|
-
|
|
21
|
-
| Array<GPUIntegerCoordinate>
|
|
22
|
-
| GPUExtent3DDict;
|
|
23
|
-
type GPUFlagsConstant =
|
|
24
|
-
number;
|
|
2
|
+
| GPUSampler
|
|
3
|
+
| GPUTextureView
|
|
4
|
+
| GPUBufferBinding
|
|
5
|
+
| GPUExternalTexture;
|
|
6
|
+
type GPUBufferDynamicOffset = number;
|
|
7
|
+
type GPUBufferUsageFlags = number;
|
|
8
|
+
type GPUColor = Array<number> | GPUColorDict;
|
|
9
|
+
type GPUColorWriteFlags = number;
|
|
10
|
+
type GPUDepthBias = number;
|
|
11
|
+
type GPUExtent3D = Array<GPUIntegerCoordinate> | GPUExtent3DDict;
|
|
12
|
+
type GPUFlagsConstant = number;
|
|
25
13
|
type GPUImageCopyExternalImageSource =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
type
|
|
35
|
-
|
|
36
|
-
type
|
|
37
|
-
|
|
38
|
-
type
|
|
39
|
-
|
|
40
|
-
type
|
|
41
|
-
|
|
42
|
-
type
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
type
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
type
|
|
51
|
-
number;
|
|
52
|
-
type GPUSampleMask =
|
|
53
|
-
number;
|
|
54
|
-
type GPUShaderStageFlags =
|
|
55
|
-
number;
|
|
56
|
-
type GPUSignedOffset32 =
|
|
57
|
-
number;
|
|
58
|
-
type GPUSize32 =
|
|
59
|
-
number;
|
|
60
|
-
type GPUSize32Out =
|
|
61
|
-
number;
|
|
62
|
-
type GPUSize64 =
|
|
63
|
-
number;
|
|
64
|
-
type GPUSize64Out =
|
|
65
|
-
number;
|
|
66
|
-
type GPUStencilValue =
|
|
67
|
-
number;
|
|
68
|
-
type GPUTextureUsageFlags =
|
|
69
|
-
number;
|
|
70
|
-
type GPUAddressMode =
|
|
71
|
-
|
|
72
|
-
| "clamp-to-edge"
|
|
73
|
-
| "repeat"
|
|
74
|
-
| "mirror-repeat";
|
|
75
|
-
type GPUAutoLayoutMode =
|
|
76
|
-
"auto";
|
|
14
|
+
| ImageBitmap
|
|
15
|
+
| ImageData
|
|
16
|
+
| HTMLImageElement
|
|
17
|
+
| HTMLVideoElement
|
|
18
|
+
| VideoFrame
|
|
19
|
+
| HTMLCanvasElement
|
|
20
|
+
| OffscreenCanvas;
|
|
21
|
+
type GPUIndex32 = number;
|
|
22
|
+
type GPUIntegerCoordinate = number;
|
|
23
|
+
type GPUIntegerCoordinateOut = number;
|
|
24
|
+
type GPUMapModeFlags = number;
|
|
25
|
+
type GPUOrigin2D = Array<GPUIntegerCoordinate> | GPUOrigin2DDict;
|
|
26
|
+
type GPUOrigin3D = Array<GPUIntegerCoordinate> | GPUOrigin3DDict;
|
|
27
|
+
type GPUPipelineConstantValue = number;
|
|
28
|
+
type GPUSampleMask = number;
|
|
29
|
+
type GPUShaderStageFlags = number;
|
|
30
|
+
type GPUSignedOffset32 = number;
|
|
31
|
+
type GPUSize32 = number;
|
|
32
|
+
type GPUSize32Out = number;
|
|
33
|
+
type GPUSize64 = number;
|
|
34
|
+
type GPUSize64Out = number;
|
|
35
|
+
type GPUStencilValue = number;
|
|
36
|
+
type GPUTextureUsageFlags = number;
|
|
37
|
+
type GPUAddressMode = "clamp-to-edge" | "repeat" | "mirror-repeat";
|
|
38
|
+
type GPUAutoLayoutMode = "auto";
|
|
77
39
|
type GPUBlendFactor =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
| "one-minus-constant";
|
|
40
|
+
| "zero"
|
|
41
|
+
| "one"
|
|
42
|
+
| "src"
|
|
43
|
+
| "one-minus-src"
|
|
44
|
+
| "src-alpha"
|
|
45
|
+
| "one-minus-src-alpha"
|
|
46
|
+
| "dst"
|
|
47
|
+
| "one-minus-dst"
|
|
48
|
+
| "dst-alpha"
|
|
49
|
+
| "one-minus-dst-alpha"
|
|
50
|
+
| "src-alpha-saturated"
|
|
51
|
+
| "constant"
|
|
52
|
+
| "one-minus-constant";
|
|
92
53
|
type GPUBlendOperation =
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
type
|
|
100
|
-
|
|
101
|
-
| "uniform"
|
|
102
|
-
| "storage"
|
|
103
|
-
| "read-only-storage";
|
|
104
|
-
type GPUBufferMapState =
|
|
105
|
-
|
|
106
|
-
| "unmapped"
|
|
107
|
-
| "pending"
|
|
108
|
-
| "mapped";
|
|
109
|
-
type GPUCanvasAlphaMode =
|
|
110
|
-
|
|
111
|
-
| "opaque"
|
|
112
|
-
| "premultiplied";
|
|
54
|
+
| "add"
|
|
55
|
+
| "subtract"
|
|
56
|
+
| "reverse-subtract"
|
|
57
|
+
| "min"
|
|
58
|
+
| "max";
|
|
59
|
+
type GPUBufferBindingType = "uniform" | "storage" | "read-only-storage";
|
|
60
|
+
type GPUBufferMapState = "unmapped" | "pending" | "mapped";
|
|
61
|
+
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
113
62
|
type GPUCompareFunction =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
type
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
| "warning"
|
|
127
|
-
| "info";
|
|
128
|
-
type GPUCullMode =
|
|
129
|
-
|
|
130
|
-
| "none"
|
|
131
|
-
| "front"
|
|
132
|
-
| "back";
|
|
133
|
-
type GPUDeviceLostReason =
|
|
134
|
-
|
|
135
|
-
| "unknown"
|
|
136
|
-
| "destroyed";
|
|
137
|
-
type GPUErrorFilter =
|
|
138
|
-
|
|
139
|
-
| "validation"
|
|
140
|
-
| "out-of-memory"
|
|
141
|
-
| "internal";
|
|
63
|
+
| "never"
|
|
64
|
+
| "less"
|
|
65
|
+
| "equal"
|
|
66
|
+
| "less-equal"
|
|
67
|
+
| "greater"
|
|
68
|
+
| "not-equal"
|
|
69
|
+
| "greater-equal"
|
|
70
|
+
| "always";
|
|
71
|
+
type GPUCompilationMessageType = "error" | "warning" | "info";
|
|
72
|
+
type GPUCullMode = "none" | "front" | "back";
|
|
73
|
+
type GPUDeviceLostReason = "unknown" | "destroyed";
|
|
74
|
+
type GPUErrorFilter = "validation" | "out-of-memory" | "internal";
|
|
142
75
|
type GPUFeatureName =
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
type
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
type
|
|
160
|
-
|
|
161
|
-
| "ccw"
|
|
162
|
-
| "cw";
|
|
163
|
-
type GPUIndexFormat =
|
|
164
|
-
|
|
165
|
-
| "uint16"
|
|
166
|
-
| "uint32";
|
|
167
|
-
type GPULoadOp =
|
|
168
|
-
|
|
169
|
-
| "load"
|
|
170
|
-
| "clear";
|
|
171
|
-
type GPUMipmapFilterMode =
|
|
172
|
-
|
|
173
|
-
| "nearest"
|
|
174
|
-
| "linear";
|
|
175
|
-
type GPUPipelineErrorReason =
|
|
176
|
-
|
|
177
|
-
| "validation"
|
|
178
|
-
| "internal";
|
|
179
|
-
type GPUPowerPreference =
|
|
180
|
-
|
|
181
|
-
| "low-power"
|
|
182
|
-
| "high-performance";
|
|
76
|
+
| "depth-clip-control"
|
|
77
|
+
| "depth32float-stencil8"
|
|
78
|
+
| "texture-compression-bc"
|
|
79
|
+
| "texture-compression-etc2"
|
|
80
|
+
| "texture-compression-astc"
|
|
81
|
+
| "timestamp-query"
|
|
82
|
+
| "indirect-first-instance"
|
|
83
|
+
| "shader-f16"
|
|
84
|
+
| "rg11b10ufloat-renderable"
|
|
85
|
+
| "bgra8unorm-storage"
|
|
86
|
+
| "float32-filterable";
|
|
87
|
+
type GPUFilterMode = "nearest" | "linear";
|
|
88
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
89
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
90
|
+
type GPULoadOp = "load" | "clear";
|
|
91
|
+
type GPUMipmapFilterMode = "nearest" | "linear";
|
|
92
|
+
type GPUPipelineErrorReason = "validation" | "internal";
|
|
93
|
+
type GPUPowerPreference = "low-power" | "high-performance";
|
|
183
94
|
type GPUPrimitiveTopology =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
type
|
|
191
|
-
|
|
192
|
-
| "occlusion"
|
|
193
|
-
| "timestamp";
|
|
194
|
-
type GPUSamplerBindingType =
|
|
195
|
-
|
|
196
|
-
| "filtering"
|
|
197
|
-
| "non-filtering"
|
|
198
|
-
| "comparison";
|
|
95
|
+
| "point-list"
|
|
96
|
+
| "line-list"
|
|
97
|
+
| "line-strip"
|
|
98
|
+
| "triangle-list"
|
|
99
|
+
| "triangle-strip";
|
|
100
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
101
|
+
type GPUSamplerBindingType = "filtering" | "non-filtering" | "comparison";
|
|
199
102
|
type GPUStencilOperation =
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
type
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
| "read-only"
|
|
213
|
-
| "read-write";
|
|
214
|
-
type GPUStoreOp =
|
|
215
|
-
|
|
216
|
-
| "store"
|
|
217
|
-
| "discard";
|
|
218
|
-
type GPUTextureAspect =
|
|
219
|
-
|
|
220
|
-
| "all"
|
|
221
|
-
| "stencil-only"
|
|
222
|
-
| "depth-only";
|
|
223
|
-
type GPUTextureDimension =
|
|
224
|
-
|
|
225
|
-
| "1d"
|
|
226
|
-
| "2d"
|
|
227
|
-
| "3d";
|
|
103
|
+
| "keep"
|
|
104
|
+
| "zero"
|
|
105
|
+
| "replace"
|
|
106
|
+
| "invert"
|
|
107
|
+
| "increment-clamp"
|
|
108
|
+
| "decrement-clamp"
|
|
109
|
+
| "increment-wrap"
|
|
110
|
+
| "decrement-wrap";
|
|
111
|
+
type GPUStorageTextureAccess = "write-only" | "read-only" | "read-write";
|
|
112
|
+
type GPUStoreOp = "store" | "discard";
|
|
113
|
+
type GPUTextureAspect = "all" | "stencil-only" | "depth-only";
|
|
114
|
+
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
228
115
|
type GPUTextureFormat =
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
| "astc-12x12-unorm-srgb";
|
|
116
|
+
| "r8unorm"
|
|
117
|
+
| "r8snorm"
|
|
118
|
+
| "r8uint"
|
|
119
|
+
| "r8sint"
|
|
120
|
+
| "r16uint"
|
|
121
|
+
| "r16sint"
|
|
122
|
+
| "r16float"
|
|
123
|
+
| "rg8unorm"
|
|
124
|
+
| "rg8snorm"
|
|
125
|
+
| "rg8uint"
|
|
126
|
+
| "rg8sint"
|
|
127
|
+
| "r32uint"
|
|
128
|
+
| "r32sint"
|
|
129
|
+
| "r32float"
|
|
130
|
+
| "rg16uint"
|
|
131
|
+
| "rg16sint"
|
|
132
|
+
| "rg16float"
|
|
133
|
+
| "rgba8unorm"
|
|
134
|
+
| "rgba8unorm-srgb"
|
|
135
|
+
| "rgba8snorm"
|
|
136
|
+
| "rgba8uint"
|
|
137
|
+
| "rgba8sint"
|
|
138
|
+
| "bgra8unorm"
|
|
139
|
+
| "bgra8unorm-srgb"
|
|
140
|
+
| "rgb9e5ufloat"
|
|
141
|
+
| "rgb10a2uint"
|
|
142
|
+
| "rgb10a2unorm"
|
|
143
|
+
| "rg11b10ufloat"
|
|
144
|
+
| "rg32uint"
|
|
145
|
+
| "rg32sint"
|
|
146
|
+
| "rg32float"
|
|
147
|
+
| "rgba16uint"
|
|
148
|
+
| "rgba16sint"
|
|
149
|
+
| "rgba16float"
|
|
150
|
+
| "rgba32uint"
|
|
151
|
+
| "rgba32sint"
|
|
152
|
+
| "rgba32float"
|
|
153
|
+
| "stencil8"
|
|
154
|
+
| "depth16unorm"
|
|
155
|
+
| "depth24plus"
|
|
156
|
+
| "depth24plus-stencil8"
|
|
157
|
+
| "depth32float"
|
|
158
|
+
| "depth32float-stencil8"
|
|
159
|
+
| "bc1-rgba-unorm"
|
|
160
|
+
| "bc1-rgba-unorm-srgb"
|
|
161
|
+
| "bc2-rgba-unorm"
|
|
162
|
+
| "bc2-rgba-unorm-srgb"
|
|
163
|
+
| "bc3-rgba-unorm"
|
|
164
|
+
| "bc3-rgba-unorm-srgb"
|
|
165
|
+
| "bc4-r-unorm"
|
|
166
|
+
| "bc4-r-snorm"
|
|
167
|
+
| "bc5-rg-unorm"
|
|
168
|
+
| "bc5-rg-snorm"
|
|
169
|
+
| "bc6h-rgb-ufloat"
|
|
170
|
+
| "bc6h-rgb-float"
|
|
171
|
+
| "bc7-rgba-unorm"
|
|
172
|
+
| "bc7-rgba-unorm-srgb"
|
|
173
|
+
| "etc2-rgb8unorm"
|
|
174
|
+
| "etc2-rgb8unorm-srgb"
|
|
175
|
+
| "etc2-rgb8a1unorm"
|
|
176
|
+
| "etc2-rgb8a1unorm-srgb"
|
|
177
|
+
| "etc2-rgba8unorm"
|
|
178
|
+
| "etc2-rgba8unorm-srgb"
|
|
179
|
+
| "eac-r11unorm"
|
|
180
|
+
| "eac-r11snorm"
|
|
181
|
+
| "eac-rg11unorm"
|
|
182
|
+
| "eac-rg11snorm"
|
|
183
|
+
| "astc-4x4-unorm"
|
|
184
|
+
| "astc-4x4-unorm-srgb"
|
|
185
|
+
| "astc-5x4-unorm"
|
|
186
|
+
| "astc-5x4-unorm-srgb"
|
|
187
|
+
| "astc-5x5-unorm"
|
|
188
|
+
| "astc-5x5-unorm-srgb"
|
|
189
|
+
| "astc-6x5-unorm"
|
|
190
|
+
| "astc-6x5-unorm-srgb"
|
|
191
|
+
| "astc-6x6-unorm"
|
|
192
|
+
| "astc-6x6-unorm-srgb"
|
|
193
|
+
| "astc-8x5-unorm"
|
|
194
|
+
| "astc-8x5-unorm-srgb"
|
|
195
|
+
| "astc-8x6-unorm"
|
|
196
|
+
| "astc-8x6-unorm-srgb"
|
|
197
|
+
| "astc-8x8-unorm"
|
|
198
|
+
| "astc-8x8-unorm-srgb"
|
|
199
|
+
| "astc-10x5-unorm"
|
|
200
|
+
| "astc-10x5-unorm-srgb"
|
|
201
|
+
| "astc-10x6-unorm"
|
|
202
|
+
| "astc-10x6-unorm-srgb"
|
|
203
|
+
| "astc-10x8-unorm"
|
|
204
|
+
| "astc-10x8-unorm-srgb"
|
|
205
|
+
| "astc-10x10-unorm"
|
|
206
|
+
| "astc-10x10-unorm-srgb"
|
|
207
|
+
| "astc-12x10-unorm"
|
|
208
|
+
| "astc-12x10-unorm-srgb"
|
|
209
|
+
| "astc-12x12-unorm"
|
|
210
|
+
| "astc-12x12-unorm-srgb";
|
|
325
211
|
type GPUTextureSampleType =
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
| "uint";
|
|
212
|
+
| "float"
|
|
213
|
+
| "unfilterable-float"
|
|
214
|
+
| "depth"
|
|
215
|
+
| "sint"
|
|
216
|
+
| "uint";
|
|
332
217
|
type GPUTextureViewDimension =
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
| "3d";
|
|
218
|
+
| "1d"
|
|
219
|
+
| "2d"
|
|
220
|
+
| "2d-array"
|
|
221
|
+
| "cube"
|
|
222
|
+
| "cube-array"
|
|
223
|
+
| "3d";
|
|
340
224
|
type GPUVertexFormat =
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
| "vertex"
|
|
376
|
-
| "instance";
|
|
377
|
-
|
|
378
|
-
interface GPUBindGroupDescriptor
|
|
379
|
-
extends GPUObjectDescriptorBase {
|
|
225
|
+
| "uint8x2"
|
|
226
|
+
| "uint8x4"
|
|
227
|
+
| "sint8x2"
|
|
228
|
+
| "sint8x4"
|
|
229
|
+
| "unorm8x2"
|
|
230
|
+
| "unorm8x4"
|
|
231
|
+
| "snorm8x2"
|
|
232
|
+
| "snorm8x4"
|
|
233
|
+
| "uint16x2"
|
|
234
|
+
| "uint16x4"
|
|
235
|
+
| "sint16x2"
|
|
236
|
+
| "sint16x4"
|
|
237
|
+
| "unorm16x2"
|
|
238
|
+
| "unorm16x4"
|
|
239
|
+
| "snorm16x2"
|
|
240
|
+
| "snorm16x4"
|
|
241
|
+
| "float16x2"
|
|
242
|
+
| "float16x4"
|
|
243
|
+
| "float32"
|
|
244
|
+
| "float32x2"
|
|
245
|
+
| "float32x3"
|
|
246
|
+
| "float32x4"
|
|
247
|
+
| "uint32"
|
|
248
|
+
| "uint32x2"
|
|
249
|
+
| "uint32x3"
|
|
250
|
+
| "uint32x4"
|
|
251
|
+
| "sint32"
|
|
252
|
+
| "sint32x2"
|
|
253
|
+
| "sint32x3"
|
|
254
|
+
| "sint32x4"
|
|
255
|
+
| "unorm10-10-10-2";
|
|
256
|
+
type GPUVertexStepMode = "vertex" | "instance";
|
|
257
|
+
|
|
258
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
380
259
|
/**
|
|
381
260
|
* The {@link GPUBindGroupLayout} the entries of this bind group will conform to.
|
|
382
261
|
*/
|
|
@@ -402,8 +281,7 @@ interface GPUBindGroupEntry {
|
|
|
402
281
|
resource: GPUBindingResource;
|
|
403
282
|
}
|
|
404
283
|
|
|
405
|
-
interface GPUBindGroupLayoutDescriptor
|
|
406
|
-
extends GPUObjectDescriptorBase {
|
|
284
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
407
285
|
entries: Array<GPUBindGroupLayoutEntry>;
|
|
408
286
|
}
|
|
409
287
|
|
|
@@ -521,8 +399,7 @@ interface GPUBufferBindingLayout {
|
|
|
521
399
|
minBindingSize?: GPUSize64;
|
|
522
400
|
}
|
|
523
401
|
|
|
524
|
-
interface GPUBufferDescriptor
|
|
525
|
-
extends GPUObjectDescriptorBase {
|
|
402
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
526
403
|
/**
|
|
527
404
|
* The size of the buffer in bytes.
|
|
528
405
|
*/
|
|
@@ -616,13 +493,10 @@ interface GPUColorTargetState {
|
|
|
616
493
|
writeMask?: GPUColorWriteFlags;
|
|
617
494
|
}
|
|
618
495
|
|
|
619
|
-
type GPUCommandBufferDescriptor =
|
|
620
|
-
|
|
621
|
-
type GPUCommandEncoderDescriptor =
|
|
622
|
-
GPUObjectDescriptorBase;
|
|
496
|
+
type GPUCommandBufferDescriptor = GPUObjectDescriptorBase;
|
|
497
|
+
type GPUCommandEncoderDescriptor = GPUObjectDescriptorBase;
|
|
623
498
|
|
|
624
|
-
interface GPUComputePassDescriptor
|
|
625
|
-
extends GPUObjectDescriptorBase {
|
|
499
|
+
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
626
500
|
/**
|
|
627
501
|
* Defines which timestamp values will be written for this pass, and where to write them to.
|
|
628
502
|
*/
|
|
@@ -647,8 +521,7 @@ interface GPUComputePassTimestampWrites {
|
|
|
647
521
|
endOfPassWriteIndex?: GPUSize32;
|
|
648
522
|
}
|
|
649
523
|
|
|
650
|
-
interface GPUComputePipelineDescriptor
|
|
651
|
-
extends GPUPipelineDescriptorBase {
|
|
524
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
652
525
|
/**
|
|
653
526
|
* Describes the compute shader entry point of the pipeline.
|
|
654
527
|
*/
|
|
@@ -703,8 +576,7 @@ interface GPUDepthStencilState {
|
|
|
703
576
|
depthBiasClamp?: number;
|
|
704
577
|
}
|
|
705
578
|
|
|
706
|
-
interface GPUDeviceDescriptor
|
|
707
|
-
extends GPUObjectDescriptorBase {
|
|
579
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
708
580
|
/**
|
|
709
581
|
* Specifies the features that are required by the device request.
|
|
710
582
|
* The request will fail if the adapter cannot provide these features.
|
|
@@ -723,10 +595,7 @@ interface GPUDeviceDescriptor
|
|
|
723
595
|
* reference to WebIDL spec). Or change the entire type to `any` and add back a `dictionary
|
|
724
596
|
* GPULimits` and define the conversion of the whole object by reference to WebIDL. -->
|
|
725
597
|
*/
|
|
726
|
-
requiredLimits?: Record<
|
|
727
|
-
string,
|
|
728
|
-
GPUSize64
|
|
729
|
-
>;
|
|
598
|
+
requiredLimits?: Record<string, GPUSize64>;
|
|
730
599
|
/**
|
|
731
600
|
* The descriptor for the default {@link GPUQueue}.
|
|
732
601
|
*/
|
|
@@ -753,16 +622,12 @@ interface GPUExtent3DDict {
|
|
|
753
622
|
|
|
754
623
|
interface GPUExternalTextureBindingLayout {}
|
|
755
624
|
|
|
756
|
-
interface GPUExternalTextureDescriptor
|
|
757
|
-
|
|
758
|
-
source:
|
|
759
|
-
| HTMLVideoElement
|
|
760
|
-
| VideoFrame;
|
|
625
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
626
|
+
source: HTMLVideoElement | VideoFrame;
|
|
761
627
|
colorSpace?: PredefinedColorSpace;
|
|
762
628
|
}
|
|
763
629
|
|
|
764
|
-
interface GPUFragmentState
|
|
765
|
-
extends GPUProgrammableStage {
|
|
630
|
+
interface GPUFragmentState extends GPUProgrammableStage {
|
|
766
631
|
/**
|
|
767
632
|
* A list of {@link GPUColorTargetState} defining the formats and behaviors of the color targets
|
|
768
633
|
* this pipeline writes to.
|
|
@@ -770,8 +635,7 @@ interface GPUFragmentState
|
|
|
770
635
|
targets: Array<GPUColorTargetState | null>;
|
|
771
636
|
}
|
|
772
637
|
|
|
773
|
-
interface GPUImageCopyBuffer
|
|
774
|
-
extends GPUImageDataLayout {
|
|
638
|
+
interface GPUImageCopyBuffer extends GPUImageDataLayout {
|
|
775
639
|
/**
|
|
776
640
|
* A buffer which either contains image data to be copied or will store the image data being
|
|
777
641
|
* copied, depending on the method it is being passed to.
|
|
@@ -852,8 +716,7 @@ interface GPUImageCopyTexture {
|
|
|
852
716
|
aspect?: GPUTextureAspect;
|
|
853
717
|
}
|
|
854
718
|
|
|
855
|
-
interface GPUImageCopyTextureTagged
|
|
856
|
-
extends GPUImageCopyTexture {
|
|
719
|
+
interface GPUImageCopyTextureTagged extends GPUImageCopyTexture {
|
|
857
720
|
/**
|
|
858
721
|
* Describes the color space and encoding used to encode data into the destination texture.
|
|
859
722
|
* This [[#color-space-conversions|may result]] in values outside of the range [0, 1]
|
|
@@ -935,25 +798,21 @@ interface GPUOrigin3DDict {
|
|
|
935
798
|
z?: GPUIntegerCoordinate;
|
|
936
799
|
}
|
|
937
800
|
|
|
938
|
-
interface GPUPipelineDescriptorBase
|
|
939
|
-
extends GPUObjectDescriptorBase {
|
|
801
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
940
802
|
/**
|
|
941
803
|
* The {@link GPUPipelineLayout} for this pipeline, or {@link GPUAutoLayoutMode#"auto"} to generate
|
|
942
804
|
* the pipeline layout automatically.
|
|
943
805
|
* Note: If {@link GPUAutoLayoutMode#"auto"} is used the pipeline cannot share {@link GPUBindGroup}s
|
|
944
806
|
* with any other pipelines.
|
|
945
807
|
*/
|
|
946
|
-
layout:
|
|
947
|
-
| GPUPipelineLayout
|
|
948
|
-
| GPUAutoLayoutMode;
|
|
808
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
949
809
|
}
|
|
950
810
|
|
|
951
811
|
interface GPUPipelineErrorInit {
|
|
952
812
|
reason: GPUPipelineErrorReason;
|
|
953
813
|
}
|
|
954
814
|
|
|
955
|
-
interface GPUPipelineLayoutDescriptor
|
|
956
|
-
extends GPUObjectDescriptorBase {
|
|
815
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
957
816
|
/**
|
|
958
817
|
* A list of {@link GPUBindGroupLayout}s the pipeline will use. Each element corresponds to a
|
|
959
818
|
* @group attribute in the {@link GPUShaderModule}, with the `N`th element corresponding with
|
|
@@ -1062,14 +921,10 @@ interface GPUProgrammableStage {
|
|
|
1062
921
|
* </pre>
|
|
1063
922
|
* </div>
|
|
1064
923
|
*/
|
|
1065
|
-
constants?: Record<
|
|
1066
|
-
string,
|
|
1067
|
-
GPUPipelineConstantValue
|
|
1068
|
-
>;
|
|
924
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
1069
925
|
}
|
|
1070
926
|
|
|
1071
|
-
interface GPUQuerySetDescriptor
|
|
1072
|
-
extends GPUObjectDescriptorBase {
|
|
927
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
1073
928
|
/**
|
|
1074
929
|
* The type of queries managed by {@link GPUQuerySet}.
|
|
1075
930
|
*/
|
|
@@ -1080,13 +935,10 @@ interface GPUQuerySetDescriptor
|
|
|
1080
935
|
count: GPUSize32;
|
|
1081
936
|
}
|
|
1082
937
|
|
|
1083
|
-
type GPUQueueDescriptor =
|
|
1084
|
-
|
|
1085
|
-
type GPURenderBundleDescriptor =
|
|
1086
|
-
GPUObjectDescriptorBase;
|
|
938
|
+
type GPUQueueDescriptor = GPUObjectDescriptorBase;
|
|
939
|
+
type GPURenderBundleDescriptor = GPUObjectDescriptorBase;
|
|
1087
940
|
|
|
1088
|
-
interface GPURenderBundleEncoderDescriptor
|
|
1089
|
-
extends GPURenderPassLayout {
|
|
941
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
1090
942
|
/**
|
|
1091
943
|
* If `true`, indicates that the render bundle does not modify the depth component of the
|
|
1092
944
|
* {@link GPURenderPassDepthStencilAttachment} of any render pass the render bundle is executed
|
|
@@ -1195,8 +1047,7 @@ interface GPURenderPassDepthStencilAttachment {
|
|
|
1195
1047
|
stencilReadOnly?: boolean;
|
|
1196
1048
|
}
|
|
1197
1049
|
|
|
1198
|
-
interface GPURenderPassDescriptor
|
|
1199
|
-
extends GPUObjectDescriptorBase {
|
|
1050
|
+
interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
1200
1051
|
/**
|
|
1201
1052
|
* The set of {@link GPURenderPassColorAttachment} values in this sequence defines which
|
|
1202
1053
|
* color attachments will be output to when executing this render pass.
|
|
@@ -1227,8 +1078,7 @@ interface GPURenderPassDescriptor
|
|
|
1227
1078
|
maxDrawCount?: GPUSize64;
|
|
1228
1079
|
}
|
|
1229
1080
|
|
|
1230
|
-
interface GPURenderPassLayout
|
|
1231
|
-
extends GPUObjectDescriptorBase {
|
|
1081
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
1232
1082
|
/**
|
|
1233
1083
|
* A list of the {@link GPUTextureFormat}s of the color attachments for this pass or bundle.
|
|
1234
1084
|
*/
|
|
@@ -1261,8 +1111,7 @@ interface GPURenderPassTimestampWrites {
|
|
|
1261
1111
|
endOfPassWriteIndex?: GPUSize32;
|
|
1262
1112
|
}
|
|
1263
1113
|
|
|
1264
|
-
interface GPURenderPipelineDescriptor
|
|
1265
|
-
extends GPUPipelineDescriptorBase {
|
|
1114
|
+
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
1266
1115
|
/**
|
|
1267
1116
|
* Describes the vertex shader entry point of the pipeline and its input buffer layouts.
|
|
1268
1117
|
*/
|
|
@@ -1298,8 +1147,7 @@ interface GPUSamplerBindingLayout {
|
|
|
1298
1147
|
type?: GPUSamplerBindingType;
|
|
1299
1148
|
}
|
|
1300
1149
|
|
|
1301
|
-
interface GPUSamplerDescriptor
|
|
1302
|
-
extends GPUObjectDescriptorBase {
|
|
1150
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
1303
1151
|
/**
|
|
1304
1152
|
*/
|
|
1305
1153
|
addressModeU?: GPUAddressMode;
|
|
@@ -1356,13 +1204,10 @@ interface GPUShaderModuleCompilationHint {
|
|
|
1356
1204
|
* If set to {@link GPUAutoLayoutMode#"auto"} the layout will be the [$default pipeline layout$]
|
|
1357
1205
|
* for the entry point associated with this hint will be used.
|
|
1358
1206
|
*/
|
|
1359
|
-
layout?:
|
|
1360
|
-
| GPUPipelineLayout
|
|
1361
|
-
| GPUAutoLayoutMode;
|
|
1207
|
+
layout?: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
1362
1208
|
}
|
|
1363
1209
|
|
|
1364
|
-
interface GPUShaderModuleDescriptor
|
|
1365
|
-
extends GPUObjectDescriptorBase {
|
|
1210
|
+
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
1366
1211
|
/**
|
|
1367
1212
|
* The <a href="https://gpuweb.github.io/gpuweb/wgsl/">WGSL</a> source code for the shader
|
|
1368
1213
|
* module.
|
|
@@ -1457,8 +1302,7 @@ interface GPUTextureBindingLayout {
|
|
|
1457
1302
|
multisampled?: boolean;
|
|
1458
1303
|
}
|
|
1459
1304
|
|
|
1460
|
-
interface GPUTextureDescriptor
|
|
1461
|
-
extends GPUObjectDescriptorBase {
|
|
1305
|
+
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1462
1306
|
/**
|
|
1463
1307
|
* The width, height, and depth or layer count of the texture.
|
|
1464
1308
|
*/
|
|
@@ -1509,8 +1353,7 @@ interface GPUTextureDescriptor
|
|
|
1509
1353
|
viewFormats?: Array<GPUTextureFormat>;
|
|
1510
1354
|
}
|
|
1511
1355
|
|
|
1512
|
-
interface GPUTextureViewDescriptor
|
|
1513
|
-
extends GPUObjectDescriptorBase {
|
|
1356
|
+
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
1514
1357
|
/**
|
|
1515
1358
|
* The format of the texture view. Must be either the {@link GPUTextureDescriptor#format} of the
|
|
1516
1359
|
* texture or one of the {@link GPUTextureDescriptor#viewFormats} specified during its creation.
|
|
@@ -1544,8 +1387,7 @@ interface GPUTextureViewDescriptor
|
|
|
1544
1387
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
1545
1388
|
}
|
|
1546
1389
|
|
|
1547
|
-
interface GPUUncapturedErrorEventInit
|
|
1548
|
-
extends EventInit {
|
|
1390
|
+
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
1549
1391
|
error: GPUError;
|
|
1550
1392
|
}
|
|
1551
1393
|
|
|
@@ -1581,8 +1423,7 @@ interface GPUVertexBufferLayout {
|
|
|
1581
1423
|
attributes: Array<GPUVertexAttribute>;
|
|
1582
1424
|
}
|
|
1583
1425
|
|
|
1584
|
-
interface GPUVertexState
|
|
1585
|
-
extends GPUProgrammableStage {
|
|
1426
|
+
interface GPUVertexState extends GPUProgrammableStage {
|
|
1586
1427
|
/**
|
|
1587
1428
|
* A list of {@link GPUVertexBufferLayout}s, each defining the layout of vertex attribute data in a
|
|
1588
1429
|
* vertex buffer used by this pipeline.
|
|
@@ -1597,14 +1438,14 @@ interface GPUBindingCommandsMixin {
|
|
|
1597
1438
|
setBindGroup(
|
|
1598
1439
|
index: GPUIndex32,
|
|
1599
1440
|
bindGroup: GPUBindGroup | null,
|
|
1600
|
-
dynamicOffsets?: Array<GPUBufferDynamicOffset
|
|
1441
|
+
dynamicOffsets?: Array<GPUBufferDynamicOffset>,
|
|
1601
1442
|
): undefined;
|
|
1602
1443
|
setBindGroup(
|
|
1603
1444
|
index: GPUIndex32,
|
|
1604
1445
|
bindGroup: GPUBindGroup | null,
|
|
1605
1446
|
dynamicOffsetsData: Uint32Array,
|
|
1606
1447
|
dynamicOffsetsDataStart: GPUSize64,
|
|
1607
|
-
dynamicOffsetsDataLength: GPUSize32
|
|
1448
|
+
dynamicOffsetsDataLength: GPUSize32,
|
|
1608
1449
|
): undefined;
|
|
1609
1450
|
}
|
|
1610
1451
|
|
|
@@ -1615,9 +1456,7 @@ interface GPUDebugCommandsMixin {
|
|
|
1615
1456
|
* Begins a labeled debug group containing subsequent commands.
|
|
1616
1457
|
* @param groupLabel - The label for the command group.
|
|
1617
1458
|
*/
|
|
1618
|
-
pushDebugGroup(
|
|
1619
|
-
groupLabel: string
|
|
1620
|
-
): undefined;
|
|
1459
|
+
pushDebugGroup(groupLabel: string): undefined;
|
|
1621
1460
|
/**
|
|
1622
1461
|
* Ends the labeled debug group most recently started by {@link GPUDebugCommandsMixin#pushDebugGroup}.
|
|
1623
1462
|
*/
|
|
@@ -1626,9 +1465,7 @@ interface GPUDebugCommandsMixin {
|
|
|
1626
1465
|
* Marks a point in a stream of commands with a label.
|
|
1627
1466
|
* @param markerLabel - The label to insert.
|
|
1628
1467
|
*/
|
|
1629
|
-
insertDebugMarker(
|
|
1630
|
-
markerLabel: string
|
|
1631
|
-
): undefined;
|
|
1468
|
+
insertDebugMarker(markerLabel: string): undefined;
|
|
1632
1469
|
}
|
|
1633
1470
|
|
|
1634
1471
|
interface GPUObjectBase {
|
|
@@ -1642,9 +1479,7 @@ interface GPUPipelineBase {
|
|
|
1642
1479
|
* @param index - Index into the pipeline layout's {@link GPUPipelineLayout#[[bindGroupLayouts]]}
|
|
1643
1480
|
* sequence.
|
|
1644
1481
|
*/
|
|
1645
|
-
getBindGroupLayout(
|
|
1646
|
-
index: number
|
|
1647
|
-
): GPUBindGroupLayout;
|
|
1482
|
+
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
1648
1483
|
}
|
|
1649
1484
|
|
|
1650
1485
|
interface GPURenderCommandsMixin {
|
|
@@ -1652,9 +1487,7 @@ interface GPURenderCommandsMixin {
|
|
|
1652
1487
|
* Sets the current {@link GPURenderPipeline}.
|
|
1653
1488
|
* @param pipeline - The render pipeline to use for subsequent drawing commands.
|
|
1654
1489
|
*/
|
|
1655
|
-
setPipeline(
|
|
1656
|
-
pipeline: GPURenderPipeline
|
|
1657
|
-
): undefined;
|
|
1490
|
+
setPipeline(pipeline: GPURenderPipeline): undefined;
|
|
1658
1491
|
/**
|
|
1659
1492
|
* Sets the current index buffer.
|
|
1660
1493
|
* @param buffer - Buffer containing index data to use for subsequent drawing commands.
|
|
@@ -1667,7 +1500,7 @@ interface GPURenderCommandsMixin {
|
|
|
1667
1500
|
buffer: GPUBuffer,
|
|
1668
1501
|
indexFormat: GPUIndexFormat,
|
|
1669
1502
|
offset?: GPUSize64,
|
|
1670
|
-
size?: GPUSize64
|
|
1503
|
+
size?: GPUSize64,
|
|
1671
1504
|
): undefined;
|
|
1672
1505
|
/**
|
|
1673
1506
|
* Sets the current vertex buffer for the given slot.
|
|
@@ -1681,7 +1514,7 @@ interface GPURenderCommandsMixin {
|
|
|
1681
1514
|
slot: GPUIndex32,
|
|
1682
1515
|
buffer: GPUBuffer | null,
|
|
1683
1516
|
offset?: GPUSize64,
|
|
1684
|
-
size?: GPUSize64
|
|
1517
|
+
size?: GPUSize64,
|
|
1685
1518
|
): undefined;
|
|
1686
1519
|
/**
|
|
1687
1520
|
* Draws primitives.
|
|
@@ -1695,22 +1528,19 @@ interface GPURenderCommandsMixin {
|
|
|
1695
1528
|
vertexCount: GPUSize32,
|
|
1696
1529
|
instanceCount?: GPUSize32,
|
|
1697
1530
|
firstVertex?: GPUSize32,
|
|
1698
|
-
firstInstance?: GPUSize32
|
|
1531
|
+
firstInstance?: GPUSize32,
|
|
1699
1532
|
): undefined;
|
|
1700
1533
|
drawIndexed(
|
|
1701
1534
|
indexCount: GPUSize32,
|
|
1702
1535
|
instanceCount?: GPUSize32,
|
|
1703
1536
|
firstIndex?: GPUSize32,
|
|
1704
1537
|
baseVertex?: GPUSignedOffset32,
|
|
1705
|
-
firstInstance?: GPUSize32
|
|
1706
|
-
): undefined;
|
|
1707
|
-
drawIndirect(
|
|
1708
|
-
indirectBuffer: GPUBuffer,
|
|
1709
|
-
indirectOffset: GPUSize64
|
|
1538
|
+
firstInstance?: GPUSize32,
|
|
1710
1539
|
): undefined;
|
|
1540
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): undefined;
|
|
1711
1541
|
drawIndexedIndirect(
|
|
1712
1542
|
indirectBuffer: GPUBuffer,
|
|
1713
|
-
indirectOffset: GPUSize64
|
|
1543
|
+
indirectOffset: GPUSize64,
|
|
1714
1544
|
): undefined;
|
|
1715
1545
|
}
|
|
1716
1546
|
|
|
@@ -1735,7 +1565,7 @@ interface GPU {
|
|
|
1735
1565
|
* @param options - Criteria used to select the adapter.
|
|
1736
1566
|
*/
|
|
1737
1567
|
requestAdapter(
|
|
1738
|
-
options?: GPURequestAdapterOptions
|
|
1568
|
+
options?: GPURequestAdapterOptions,
|
|
1739
1569
|
): Promise<GPUAdapter | null>;
|
|
1740
1570
|
/**
|
|
1741
1571
|
* Returns an optimal {@link GPUTextureFormat} for displaying 8-bit depth, standard dynamic range
|
|
@@ -1780,9 +1610,7 @@ interface GPUAdapter {
|
|
|
1780
1610
|
* the adapter becomes invalid.
|
|
1781
1611
|
* @param descriptor - Description of the {@link GPUDevice} to request.
|
|
1782
1612
|
*/
|
|
1783
|
-
requestDevice(
|
|
1784
|
-
descriptor?: GPUDeviceDescriptor
|
|
1785
|
-
): Promise<GPUDevice>;
|
|
1613
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
1786
1614
|
/**
|
|
1787
1615
|
* Requests the {@link GPUAdapterInfo} for this {@link GPUAdapter}.
|
|
1788
1616
|
* Note: Adapter info values are returned with a Promise to give user agents an
|
|
@@ -1833,8 +1661,7 @@ declare var GPUAdapterInfo: {
|
|
|
1833
1661
|
prototype: GPUAdapterInfo;
|
|
1834
1662
|
};
|
|
1835
1663
|
|
|
1836
|
-
interface GPUBindGroup
|
|
1837
|
-
extends GPUObjectBase {
|
|
1664
|
+
interface GPUBindGroup extends GPUObjectBase {
|
|
1838
1665
|
/**
|
|
1839
1666
|
* Nominal type branding.
|
|
1840
1667
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -1847,8 +1674,7 @@ declare var GPUBindGroup: {
|
|
|
1847
1674
|
prototype: GPUBindGroup;
|
|
1848
1675
|
};
|
|
1849
1676
|
|
|
1850
|
-
interface GPUBindGroupLayout
|
|
1851
|
-
extends GPUObjectBase {
|
|
1677
|
+
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
1852
1678
|
/**
|
|
1853
1679
|
* Nominal type branding.
|
|
1854
1680
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -1861,8 +1687,7 @@ declare var GPUBindGroupLayout: {
|
|
|
1861
1687
|
prototype: GPUBindGroupLayout;
|
|
1862
1688
|
};
|
|
1863
1689
|
|
|
1864
|
-
interface GPUBuffer
|
|
1865
|
-
extends GPUObjectBase {
|
|
1690
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
1866
1691
|
/**
|
|
1867
1692
|
* Nominal type branding.
|
|
1868
1693
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -1891,17 +1716,14 @@ interface GPUBuffer
|
|
|
1891
1716
|
mapAsync(
|
|
1892
1717
|
mode: GPUMapModeFlags,
|
|
1893
1718
|
offset?: GPUSize64,
|
|
1894
|
-
size?: GPUSize64
|
|
1719
|
+
size?: GPUSize64,
|
|
1895
1720
|
): Promise<undefined>;
|
|
1896
1721
|
/**
|
|
1897
1722
|
* Returns an {@link ArrayBuffer} with the contents of the {@link GPUBuffer} in the given mapped range.
|
|
1898
1723
|
* @param offset - Offset in bytes into the buffer to return buffer contents from.
|
|
1899
1724
|
* @param size - Size in bytes of the {@link ArrayBuffer} to return.
|
|
1900
1725
|
*/
|
|
1901
|
-
getMappedRange(
|
|
1902
|
-
offset?: GPUSize64,
|
|
1903
|
-
size?: GPUSize64
|
|
1904
|
-
): ArrayBuffer;
|
|
1726
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
1905
1727
|
/**
|
|
1906
1728
|
* Unmaps the mapped range of the {@link GPUBuffer} and makes it's contents available for use by the
|
|
1907
1729
|
* GPU again.
|
|
@@ -1930,17 +1752,13 @@ interface GPUCanvasContext {
|
|
|
1930
1752
|
/**
|
|
1931
1753
|
* The canvas this context was created from.
|
|
1932
1754
|
*/
|
|
1933
|
-
readonly canvas:
|
|
1934
|
-
| HTMLCanvasElement
|
|
1935
|
-
| OffscreenCanvas;
|
|
1755
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
1936
1756
|
/**
|
|
1937
1757
|
* Configures the context for this canvas.
|
|
1938
1758
|
* This clears the drawing buffer to transparent black (in [$Replace the drawing buffer$]).
|
|
1939
1759
|
* @param configuration - Desired configuration for the context.
|
|
1940
1760
|
*/
|
|
1941
|
-
configure(
|
|
1942
|
-
configuration: GPUCanvasConfiguration
|
|
1943
|
-
): undefined;
|
|
1761
|
+
configure(configuration: GPUCanvasConfiguration): undefined;
|
|
1944
1762
|
/**
|
|
1945
1763
|
* Removes the context configuration. Destroys any textures produced while configured.
|
|
1946
1764
|
*/
|
|
@@ -1959,8 +1777,7 @@ declare var GPUCanvasContext: {
|
|
|
1959
1777
|
prototype: GPUCanvasContext;
|
|
1960
1778
|
};
|
|
1961
1779
|
|
|
1962
|
-
interface GPUCommandBuffer
|
|
1963
|
-
extends GPUObjectBase {
|
|
1780
|
+
interface GPUCommandBuffer extends GPUObjectBase {
|
|
1964
1781
|
/**
|
|
1965
1782
|
* Nominal type branding.
|
|
1966
1783
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -1987,15 +1804,13 @@ interface GPUCommandEncoder
|
|
|
1987
1804
|
* Begins encoding a render pass described by `descriptor`.
|
|
1988
1805
|
* @param descriptor - Description of the {@link GPURenderPassEncoder} to create.
|
|
1989
1806
|
*/
|
|
1990
|
-
beginRenderPass(
|
|
1991
|
-
descriptor: GPURenderPassDescriptor
|
|
1992
|
-
): GPURenderPassEncoder;
|
|
1807
|
+
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
1993
1808
|
/**
|
|
1994
1809
|
* Begins encoding a compute pass described by `descriptor`.
|
|
1995
1810
|
* descriptor:
|
|
1996
1811
|
*/
|
|
1997
1812
|
beginComputePass(
|
|
1998
|
-
descriptor?: GPUComputePassDescriptor
|
|
1813
|
+
descriptor?: GPUComputePassDescriptor,
|
|
1999
1814
|
): GPUComputePassEncoder;
|
|
2000
1815
|
/**
|
|
2001
1816
|
* Encode a command into the {@link GPUCommandEncoder} that copies data from a sub-region of a
|
|
@@ -2011,7 +1826,7 @@ interface GPUCommandEncoder
|
|
|
2011
1826
|
sourceOffset: GPUSize64,
|
|
2012
1827
|
destination: GPUBuffer,
|
|
2013
1828
|
destinationOffset: GPUSize64,
|
|
2014
|
-
size: GPUSize64
|
|
1829
|
+
size: GPUSize64,
|
|
2015
1830
|
): undefined;
|
|
2016
1831
|
/**
|
|
2017
1832
|
* Encode a command into the {@link GPUCommandEncoder} that copies data from a sub-region of a
|
|
@@ -2023,7 +1838,7 @@ interface GPUCommandEncoder
|
|
|
2023
1838
|
copyBufferToTexture(
|
|
2024
1839
|
source: GPUImageCopyBuffer,
|
|
2025
1840
|
destination: GPUImageCopyTexture,
|
|
2026
|
-
copySize: GPUExtent3D
|
|
1841
|
+
copySize: GPUExtent3D,
|
|
2027
1842
|
): undefined;
|
|
2028
1843
|
/**
|
|
2029
1844
|
* Encode a command into the {@link GPUCommandEncoder} that copies data from a sub-region of one or
|
|
@@ -2035,7 +1850,7 @@ interface GPUCommandEncoder
|
|
|
2035
1850
|
copyTextureToBuffer(
|
|
2036
1851
|
source: GPUImageCopyTexture,
|
|
2037
1852
|
destination: GPUImageCopyBuffer,
|
|
2038
|
-
copySize: GPUExtent3D
|
|
1853
|
+
copySize: GPUExtent3D,
|
|
2039
1854
|
): undefined;
|
|
2040
1855
|
/**
|
|
2041
1856
|
* Encode a command into the {@link GPUCommandEncoder} that copies data from a sub-region of one
|
|
@@ -2048,7 +1863,7 @@ interface GPUCommandEncoder
|
|
|
2048
1863
|
copyTextureToTexture(
|
|
2049
1864
|
source: GPUImageCopyTexture,
|
|
2050
1865
|
destination: GPUImageCopyTexture,
|
|
2051
|
-
copySize: GPUExtent3D
|
|
1866
|
+
copySize: GPUExtent3D,
|
|
2052
1867
|
): undefined;
|
|
2053
1868
|
/**
|
|
2054
1869
|
* Encode a command into the {@link GPUCommandEncoder} that fills a sub-region of a
|
|
@@ -2060,7 +1875,7 @@ interface GPUCommandEncoder
|
|
|
2060
1875
|
clearBuffer(
|
|
2061
1876
|
buffer: GPUBuffer,
|
|
2062
1877
|
offset?: GPUSize64,
|
|
2063
|
-
size?: GPUSize64
|
|
1878
|
+
size?: GPUSize64,
|
|
2064
1879
|
): undefined;
|
|
2065
1880
|
/**
|
|
2066
1881
|
* Resolves query results from a {@link GPUQuerySet} out into a range of a {@link GPUBuffer}.
|
|
@@ -2075,15 +1890,13 @@ interface GPUCommandEncoder
|
|
|
2075
1890
|
firstQuery: GPUSize32,
|
|
2076
1891
|
queryCount: GPUSize32,
|
|
2077
1892
|
destination: GPUBuffer,
|
|
2078
|
-
destinationOffset: GPUSize64
|
|
1893
|
+
destinationOffset: GPUSize64,
|
|
2079
1894
|
): undefined;
|
|
2080
1895
|
/**
|
|
2081
1896
|
* Completes recording of the commands sequence and returns a corresponding {@link GPUCommandBuffer}.
|
|
2082
1897
|
* descriptor:
|
|
2083
1898
|
*/
|
|
2084
|
-
finish(
|
|
2085
|
-
descriptor?: GPUCommandBufferDescriptor
|
|
2086
|
-
): GPUCommandBuffer;
|
|
1899
|
+
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
2087
1900
|
}
|
|
2088
1901
|
|
|
2089
1902
|
declare var GPUCommandEncoder: {
|
|
@@ -2182,9 +1995,7 @@ interface GPUComputePassEncoder
|
|
|
2182
1995
|
* Sets the current {@link GPUComputePipeline}.
|
|
2183
1996
|
* @param pipeline - The compute pipeline to use for subsequent dispatch commands.
|
|
2184
1997
|
*/
|
|
2185
|
-
setPipeline(
|
|
2186
|
-
pipeline: GPUComputePipeline
|
|
2187
|
-
): undefined;
|
|
1998
|
+
setPipeline(pipeline: GPUComputePipeline): undefined;
|
|
2188
1999
|
/**
|
|
2189
2000
|
* Dispatch work to be performed with the current {@link GPUComputePipeline}.
|
|
2190
2001
|
* See [[#computing-operations]] for the detailed specification.
|
|
@@ -2195,7 +2006,7 @@ interface GPUComputePassEncoder
|
|
|
2195
2006
|
dispatchWorkgroups(
|
|
2196
2007
|
workgroupCountX: GPUSize32,
|
|
2197
2008
|
workgroupCountY?: GPUSize32,
|
|
2198
|
-
workgroupCountZ?: GPUSize32
|
|
2009
|
+
workgroupCountZ?: GPUSize32,
|
|
2199
2010
|
): undefined;
|
|
2200
2011
|
/**
|
|
2201
2012
|
* Dispatch work to be performed with the current {@link GPUComputePipeline} using parameters read
|
|
@@ -2209,7 +2020,7 @@ interface GPUComputePassEncoder
|
|
|
2209
2020
|
*/
|
|
2210
2021
|
dispatchWorkgroupsIndirect(
|
|
2211
2022
|
indirectBuffer: GPUBuffer,
|
|
2212
|
-
indirectOffset: GPUSize64
|
|
2023
|
+
indirectOffset: GPUSize64,
|
|
2213
2024
|
): undefined;
|
|
2214
2025
|
/**
|
|
2215
2026
|
* Completes recording of the compute pass commands sequence.
|
|
@@ -2221,9 +2032,7 @@ declare var GPUComputePassEncoder: {
|
|
|
2221
2032
|
prototype: GPUComputePassEncoder;
|
|
2222
2033
|
};
|
|
2223
2034
|
|
|
2224
|
-
interface GPUComputePipeline
|
|
2225
|
-
extends GPUObjectBase,
|
|
2226
|
-
GPUPipelineBase {
|
|
2035
|
+
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
2227
2036
|
/**
|
|
2228
2037
|
* Nominal type branding.
|
|
2229
2038
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2236,9 +2045,7 @@ declare var GPUComputePipeline: {
|
|
|
2236
2045
|
prototype: GPUComputePipeline;
|
|
2237
2046
|
};
|
|
2238
2047
|
|
|
2239
|
-
interface GPUDevice
|
|
2240
|
-
extends EventTarget,
|
|
2241
|
-
GPUObjectBase {
|
|
2048
|
+
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
2242
2049
|
/**
|
|
2243
2050
|
* Nominal type branding.
|
|
2244
2051
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2269,71 +2076,61 @@ interface GPUDevice
|
|
|
2269
2076
|
* Creates a {@link GPUBuffer}.
|
|
2270
2077
|
* @param descriptor - Description of the {@link GPUBuffer} to create.
|
|
2271
2078
|
*/
|
|
2272
|
-
createBuffer(
|
|
2273
|
-
descriptor: GPUBufferDescriptor
|
|
2274
|
-
): GPUBuffer;
|
|
2079
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
2275
2080
|
/**
|
|
2276
2081
|
* Creates a {@link GPUTexture}.
|
|
2277
2082
|
* @param descriptor - Description of the {@link GPUTexture} to create.
|
|
2278
2083
|
*/
|
|
2279
|
-
createTexture(
|
|
2280
|
-
descriptor: GPUTextureDescriptor
|
|
2281
|
-
): GPUTexture;
|
|
2084
|
+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
2282
2085
|
/**
|
|
2283
2086
|
* Creates a {@link GPUSampler}.
|
|
2284
2087
|
* @param descriptor - Description of the {@link GPUSampler} to create.
|
|
2285
2088
|
*/
|
|
2286
|
-
createSampler(
|
|
2287
|
-
descriptor?: GPUSamplerDescriptor
|
|
2288
|
-
): GPUSampler;
|
|
2089
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
2289
2090
|
/**
|
|
2290
2091
|
* Creates a {@link GPUExternalTexture} wrapping the provided image source.
|
|
2291
2092
|
* @param descriptor - Provides the external image source object (and any creation options).
|
|
2292
2093
|
*/
|
|
2293
2094
|
importExternalTexture(
|
|
2294
|
-
descriptor: GPUExternalTextureDescriptor
|
|
2095
|
+
descriptor: GPUExternalTextureDescriptor,
|
|
2295
2096
|
): GPUExternalTexture;
|
|
2296
2097
|
/**
|
|
2297
2098
|
* Creates a {@link GPUBindGroupLayout}.
|
|
2298
2099
|
* @param descriptor - Description of the {@link GPUBindGroupLayout} to create.
|
|
2299
2100
|
*/
|
|
2300
2101
|
createBindGroupLayout(
|
|
2301
|
-
descriptor: GPUBindGroupLayoutDescriptor
|
|
2102
|
+
descriptor: GPUBindGroupLayoutDescriptor,
|
|
2302
2103
|
): GPUBindGroupLayout;
|
|
2303
2104
|
/**
|
|
2304
2105
|
* Creates a {@link GPUPipelineLayout}.
|
|
2305
2106
|
* @param descriptor - Description of the {@link GPUPipelineLayout} to create.
|
|
2306
2107
|
*/
|
|
2307
2108
|
createPipelineLayout(
|
|
2308
|
-
descriptor: GPUPipelineLayoutDescriptor
|
|
2109
|
+
descriptor: GPUPipelineLayoutDescriptor,
|
|
2309
2110
|
): GPUPipelineLayout;
|
|
2310
2111
|
/**
|
|
2311
2112
|
* Creates a {@link GPUBindGroup}.
|
|
2312
2113
|
* @param descriptor - Description of the {@link GPUBindGroup} to create.
|
|
2313
2114
|
*/
|
|
2314
|
-
createBindGroup(
|
|
2315
|
-
descriptor: GPUBindGroupDescriptor
|
|
2316
|
-
): GPUBindGroup;
|
|
2115
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
2317
2116
|
/**
|
|
2318
2117
|
* Creates a {@link GPUShaderModule}.
|
|
2319
2118
|
* @param descriptor - Description of the {@link GPUShaderModule} to create.
|
|
2320
2119
|
*/
|
|
2321
|
-
createShaderModule(
|
|
2322
|
-
descriptor: GPUShaderModuleDescriptor
|
|
2323
|
-
): GPUShaderModule;
|
|
2120
|
+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
2324
2121
|
/**
|
|
2325
2122
|
* Creates a {@link GPUComputePipeline} using immediate pipeline creation.
|
|
2326
2123
|
* @param descriptor - Description of the {@link GPUComputePipeline} to create.
|
|
2327
2124
|
*/
|
|
2328
2125
|
createComputePipeline(
|
|
2329
|
-
descriptor: GPUComputePipelineDescriptor
|
|
2126
|
+
descriptor: GPUComputePipelineDescriptor,
|
|
2330
2127
|
): GPUComputePipeline;
|
|
2331
2128
|
/**
|
|
2332
2129
|
* Creates a {@link GPURenderPipeline} using immediate pipeline creation.
|
|
2333
2130
|
* @param descriptor - Description of the {@link GPURenderPipeline} to create.
|
|
2334
2131
|
*/
|
|
2335
2132
|
createRenderPipeline(
|
|
2336
|
-
descriptor: GPURenderPipelineDescriptor
|
|
2133
|
+
descriptor: GPURenderPipelineDescriptor,
|
|
2337
2134
|
): GPURenderPipeline;
|
|
2338
2135
|
/**
|
|
2339
2136
|
* Creates a {@link GPUComputePipeline} using async pipeline creation.
|
|
@@ -2345,7 +2142,7 @@ interface GPUDevice
|
|
|
2345
2142
|
* @param descriptor - Description of the {@link GPUComputePipeline} to create.
|
|
2346
2143
|
*/
|
|
2347
2144
|
createComputePipelineAsync(
|
|
2348
|
-
descriptor: GPUComputePipelineDescriptor
|
|
2145
|
+
descriptor: GPUComputePipelineDescriptor,
|
|
2349
2146
|
): Promise<GPUComputePipeline>;
|
|
2350
2147
|
/**
|
|
2351
2148
|
* Creates a {@link GPURenderPipeline} using async pipeline creation.
|
|
@@ -2357,29 +2154,27 @@ interface GPUDevice
|
|
|
2357
2154
|
* @param descriptor - Description of the {@link GPURenderPipeline} to create.
|
|
2358
2155
|
*/
|
|
2359
2156
|
createRenderPipelineAsync(
|
|
2360
|
-
descriptor: GPURenderPipelineDescriptor
|
|
2157
|
+
descriptor: GPURenderPipelineDescriptor,
|
|
2361
2158
|
): Promise<GPURenderPipeline>;
|
|
2362
2159
|
/**
|
|
2363
2160
|
* Creates a {@link GPUCommandEncoder}.
|
|
2364
2161
|
* @param descriptor - Description of the {@link GPUCommandEncoder} to create.
|
|
2365
2162
|
*/
|
|
2366
2163
|
createCommandEncoder(
|
|
2367
|
-
descriptor?: GPUCommandEncoderDescriptor
|
|
2164
|
+
descriptor?: GPUCommandEncoderDescriptor,
|
|
2368
2165
|
): GPUCommandEncoder;
|
|
2369
2166
|
/**
|
|
2370
2167
|
* Creates a {@link GPURenderBundleEncoder}.
|
|
2371
2168
|
* @param descriptor - Description of the {@link GPURenderBundleEncoder} to create.
|
|
2372
2169
|
*/
|
|
2373
2170
|
createRenderBundleEncoder(
|
|
2374
|
-
descriptor: GPURenderBundleEncoderDescriptor
|
|
2171
|
+
descriptor: GPURenderBundleEncoderDescriptor,
|
|
2375
2172
|
): GPURenderBundleEncoder;
|
|
2376
2173
|
/**
|
|
2377
2174
|
* Creates a {@link GPUQuerySet}.
|
|
2378
2175
|
* @param descriptor - Description of the {@link GPUQuerySet} to create.
|
|
2379
2176
|
*/
|
|
2380
|
-
createQuerySet(
|
|
2381
|
-
descriptor: GPUQuerySetDescriptor
|
|
2382
|
-
): GPUQuerySet;
|
|
2177
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
2383
2178
|
/**
|
|
2384
2179
|
* A slot-backed attribute holding a promise which is created with the device, remains
|
|
2385
2180
|
* pending for the lifetime of the device, then resolves when the device is lost.
|
|
@@ -2390,9 +2185,7 @@ interface GPUDevice
|
|
|
2390
2185
|
* Pushes a new GPU error scope onto the {@link GPUDevice#[[errorScopeStack]]} for `this`.
|
|
2391
2186
|
* @param filter - Which class of errors this error scope observes.
|
|
2392
2187
|
*/
|
|
2393
|
-
pushErrorScope(
|
|
2394
|
-
filter: GPUErrorFilter
|
|
2395
|
-
): undefined;
|
|
2188
|
+
pushErrorScope(filter: GPUErrorFilter): undefined;
|
|
2396
2189
|
/**
|
|
2397
2190
|
* Pops a GPU error scope off the {@link GPUDevice#[[errorScopeStack]]} for `this`
|
|
2398
2191
|
* and resolves to **any** {@link GPUError} observed by the error scope, or `null` if none.
|
|
@@ -2447,8 +2240,7 @@ declare var GPUError: {
|
|
|
2447
2240
|
prototype: GPUError;
|
|
2448
2241
|
};
|
|
2449
2242
|
|
|
2450
|
-
interface GPUExternalTexture
|
|
2451
|
-
extends GPUObjectBase {
|
|
2243
|
+
interface GPUExternalTexture extends GPUObjectBase {
|
|
2452
2244
|
/**
|
|
2453
2245
|
* Nominal type branding.
|
|
2454
2246
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2461,8 +2253,7 @@ declare var GPUExternalTexture: {
|
|
|
2461
2253
|
prototype: GPUExternalTexture;
|
|
2462
2254
|
};
|
|
2463
2255
|
|
|
2464
|
-
interface GPUInternalError
|
|
2465
|
-
extends GPUError {
|
|
2256
|
+
interface GPUInternalError extends GPUError {
|
|
2466
2257
|
/**
|
|
2467
2258
|
* Nominal type branding.
|
|
2468
2259
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2473,13 +2264,10 @@ interface GPUInternalError
|
|
|
2473
2264
|
|
|
2474
2265
|
declare var GPUInternalError: {
|
|
2475
2266
|
prototype: GPUInternalError;
|
|
2476
|
-
new (
|
|
2477
|
-
message: string
|
|
2478
|
-
);
|
|
2267
|
+
new (message: string);
|
|
2479
2268
|
};
|
|
2480
2269
|
|
|
2481
|
-
interface GPUOutOfMemoryError
|
|
2482
|
-
extends GPUError {
|
|
2270
|
+
interface GPUOutOfMemoryError extends GPUError {
|
|
2483
2271
|
/**
|
|
2484
2272
|
* Nominal type branding.
|
|
2485
2273
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2490,13 +2278,10 @@ interface GPUOutOfMemoryError
|
|
|
2490
2278
|
|
|
2491
2279
|
declare var GPUOutOfMemoryError: {
|
|
2492
2280
|
prototype: GPUOutOfMemoryError;
|
|
2493
|
-
new (
|
|
2494
|
-
message: string
|
|
2495
|
-
);
|
|
2281
|
+
new (message: string);
|
|
2496
2282
|
};
|
|
2497
2283
|
|
|
2498
|
-
interface GPUPipelineError
|
|
2499
|
-
extends DOMException {
|
|
2284
|
+
interface GPUPipelineError extends DOMException {
|
|
2500
2285
|
/**
|
|
2501
2286
|
* Nominal type branding.
|
|
2502
2287
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2516,14 +2301,10 @@ interface GPUPipelineError
|
|
|
2516
2301
|
|
|
2517
2302
|
declare var GPUPipelineError: {
|
|
2518
2303
|
prototype: GPUPipelineError;
|
|
2519
|
-
new (
|
|
2520
|
-
message?: string,
|
|
2521
|
-
options: GPUPipelineErrorInit
|
|
2522
|
-
);
|
|
2304
|
+
new (message?: string, options: GPUPipelineErrorInit);
|
|
2523
2305
|
};
|
|
2524
2306
|
|
|
2525
|
-
interface GPUPipelineLayout
|
|
2526
|
-
extends GPUObjectBase {
|
|
2307
|
+
interface GPUPipelineLayout extends GPUObjectBase {
|
|
2527
2308
|
/**
|
|
2528
2309
|
* Nominal type branding.
|
|
2529
2310
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2536,8 +2317,7 @@ declare var GPUPipelineLayout: {
|
|
|
2536
2317
|
prototype: GPUPipelineLayout;
|
|
2537
2318
|
};
|
|
2538
2319
|
|
|
2539
|
-
interface GPUQuerySet
|
|
2540
|
-
extends GPUObjectBase {
|
|
2320
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
2541
2321
|
/**
|
|
2542
2322
|
* Nominal type branding.
|
|
2543
2323
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2562,8 +2342,7 @@ declare var GPUQuerySet: {
|
|
|
2562
2342
|
prototype: GPUQuerySet;
|
|
2563
2343
|
};
|
|
2564
2344
|
|
|
2565
|
-
interface GPUQueue
|
|
2566
|
-
extends GPUObjectBase {
|
|
2345
|
+
interface GPUQueue extends GPUObjectBase {
|
|
2567
2346
|
/**
|
|
2568
2347
|
* Nominal type branding.
|
|
2569
2348
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2575,9 +2354,7 @@ interface GPUQueue
|
|
|
2575
2354
|
* Submitted command buffers cannot be used again.
|
|
2576
2355
|
* `commandBuffers`:
|
|
2577
2356
|
*/
|
|
2578
|
-
submit(
|
|
2579
|
-
commandBuffers: Array<GPUCommandBuffer>
|
|
2580
|
-
): undefined;
|
|
2357
|
+
submit(commandBuffers: Array<GPUCommandBuffer>): undefined;
|
|
2581
2358
|
onSubmittedWorkDone(): Promise<undefined>;
|
|
2582
2359
|
/**
|
|
2583
2360
|
* Issues a write operation of the provided data into a {@link GPUBuffer}.
|
|
@@ -2594,7 +2371,7 @@ interface GPUQueue
|
|
|
2594
2371
|
bufferOffset: GPUSize64,
|
|
2595
2372
|
data: AllowSharedBufferSource,
|
|
2596
2373
|
dataOffset?: GPUSize64,
|
|
2597
|
-
size?: GPUSize64
|
|
2374
|
+
size?: GPUSize64,
|
|
2598
2375
|
): undefined;
|
|
2599
2376
|
/**
|
|
2600
2377
|
* Issues a write operation of the provided data into a {@link GPUTexture}.
|
|
@@ -2607,7 +2384,7 @@ interface GPUQueue
|
|
|
2607
2384
|
destination: GPUImageCopyTexture,
|
|
2608
2385
|
data: AllowSharedBufferSource,
|
|
2609
2386
|
dataLayout: GPUImageDataLayout,
|
|
2610
|
-
size: GPUExtent3D
|
|
2387
|
+
size: GPUExtent3D,
|
|
2611
2388
|
): undefined;
|
|
2612
2389
|
/**
|
|
2613
2390
|
* Issues a copy operation of the contents of a platform image/canvas
|
|
@@ -2626,7 +2403,7 @@ interface GPUQueue
|
|
|
2626
2403
|
copyExternalImageToTexture(
|
|
2627
2404
|
source: GPUImageCopyExternalImage,
|
|
2628
2405
|
destination: GPUImageCopyTextureTagged,
|
|
2629
|
-
copySize: GPUExtent3D
|
|
2406
|
+
copySize: GPUExtent3D,
|
|
2630
2407
|
): undefined;
|
|
2631
2408
|
}
|
|
2632
2409
|
|
|
@@ -2634,8 +2411,7 @@ declare var GPUQueue: {
|
|
|
2634
2411
|
prototype: GPUQueue;
|
|
2635
2412
|
};
|
|
2636
2413
|
|
|
2637
|
-
interface GPURenderBundle
|
|
2638
|
-
extends GPUObjectBase {
|
|
2414
|
+
interface GPURenderBundle extends GPUObjectBase {
|
|
2639
2415
|
/**
|
|
2640
2416
|
* Nominal type branding.
|
|
2641
2417
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2664,9 +2440,7 @@ interface GPURenderBundleEncoder
|
|
|
2664
2440
|
* Completes recording of the render bundle commands sequence.
|
|
2665
2441
|
* descriptor:
|
|
2666
2442
|
*/
|
|
2667
|
-
finish(
|
|
2668
|
-
descriptor?: GPURenderBundleDescriptor
|
|
2669
|
-
): GPURenderBundle;
|
|
2443
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
2670
2444
|
}
|
|
2671
2445
|
|
|
2672
2446
|
declare var GPURenderBundleEncoder: {
|
|
@@ -2701,7 +2475,7 @@ interface GPURenderPassEncoder
|
|
|
2701
2475
|
width: number,
|
|
2702
2476
|
height: number,
|
|
2703
2477
|
minDepth: number,
|
|
2704
|
-
maxDepth: number
|
|
2478
|
+
maxDepth: number,
|
|
2705
2479
|
): undefined;
|
|
2706
2480
|
/**
|
|
2707
2481
|
* Sets the scissor rectangle used during the rasterization stage.
|
|
@@ -2716,30 +2490,24 @@ interface GPURenderPassEncoder
|
|
|
2716
2490
|
x: GPUIntegerCoordinate,
|
|
2717
2491
|
y: GPUIntegerCoordinate,
|
|
2718
2492
|
width: GPUIntegerCoordinate,
|
|
2719
|
-
height: GPUIntegerCoordinate
|
|
2493
|
+
height: GPUIntegerCoordinate,
|
|
2720
2494
|
): undefined;
|
|
2721
2495
|
/**
|
|
2722
2496
|
* Sets the constant blend color and alpha values used with {@link GPUBlendFactor#"constant"}
|
|
2723
2497
|
* and {@link GPUBlendFactor#"one-minus-constant"} {@link GPUBlendFactor}s.
|
|
2724
2498
|
* @param color - The color to use when blending.
|
|
2725
2499
|
*/
|
|
2726
|
-
setBlendConstant(
|
|
2727
|
-
color: GPUColor
|
|
2728
|
-
): undefined;
|
|
2500
|
+
setBlendConstant(color: GPUColor): undefined;
|
|
2729
2501
|
/**
|
|
2730
2502
|
* Sets the {@link RenderState#[[stencilReference]]} value used during stencil tests with
|
|
2731
2503
|
* the {@link GPUStencilOperation#"replace"} {@link GPUStencilOperation}.
|
|
2732
2504
|
* @param reference - The new stencil reference value.
|
|
2733
2505
|
*/
|
|
2734
|
-
setStencilReference(
|
|
2735
|
-
reference: GPUStencilValue
|
|
2736
|
-
): undefined;
|
|
2506
|
+
setStencilReference(reference: GPUStencilValue): undefined;
|
|
2737
2507
|
/**
|
|
2738
2508
|
* @param queryIndex - The index of the query in the query set.
|
|
2739
2509
|
*/
|
|
2740
|
-
beginOcclusionQuery(
|
|
2741
|
-
queryIndex: GPUSize32
|
|
2742
|
-
): undefined;
|
|
2510
|
+
beginOcclusionQuery(queryIndex: GPUSize32): undefined;
|
|
2743
2511
|
/**
|
|
2744
2512
|
*/
|
|
2745
2513
|
endOcclusionQuery(): undefined;
|
|
@@ -2754,9 +2522,7 @@ interface GPURenderPassEncoder
|
|
|
2754
2522
|
* This occurs even if zero {@link GPURenderBundle|GPURenderBundles} are executed.
|
|
2755
2523
|
* @param bundles - List of render bundles to execute.
|
|
2756
2524
|
*/
|
|
2757
|
-
executeBundles(
|
|
2758
|
-
bundles: Array<GPURenderBundle>
|
|
2759
|
-
): undefined;
|
|
2525
|
+
executeBundles(bundles: Array<GPURenderBundle>): undefined;
|
|
2760
2526
|
/**
|
|
2761
2527
|
* Completes recording of the render pass commands sequence.
|
|
2762
2528
|
*/
|
|
@@ -2767,9 +2533,7 @@ declare var GPURenderPassEncoder: {
|
|
|
2767
2533
|
prototype: GPURenderPassEncoder;
|
|
2768
2534
|
};
|
|
2769
2535
|
|
|
2770
|
-
interface GPURenderPipeline
|
|
2771
|
-
extends GPUObjectBase,
|
|
2772
|
-
GPUPipelineBase {
|
|
2536
|
+
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
2773
2537
|
/**
|
|
2774
2538
|
* Nominal type branding.
|
|
2775
2539
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2782,8 +2546,7 @@ declare var GPURenderPipeline: {
|
|
|
2782
2546
|
prototype: GPURenderPipeline;
|
|
2783
2547
|
};
|
|
2784
2548
|
|
|
2785
|
-
interface GPUSampler
|
|
2786
|
-
extends GPUObjectBase {
|
|
2549
|
+
interface GPUSampler extends GPUObjectBase {
|
|
2787
2550
|
/**
|
|
2788
2551
|
* Nominal type branding.
|
|
2789
2552
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2796,8 +2559,7 @@ declare var GPUSampler: {
|
|
|
2796
2559
|
prototype: GPUSampler;
|
|
2797
2560
|
};
|
|
2798
2561
|
|
|
2799
|
-
interface GPUShaderModule
|
|
2800
|
-
extends GPUObjectBase {
|
|
2562
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
2801
2563
|
/**
|
|
2802
2564
|
* Nominal type branding.
|
|
2803
2565
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2816,8 +2578,7 @@ declare var GPUShaderModule: {
|
|
|
2816
2578
|
prototype: GPUShaderModule;
|
|
2817
2579
|
};
|
|
2818
2580
|
|
|
2819
|
-
type GPUSupportedFeatures =
|
|
2820
|
-
ReadonlySet<string>;
|
|
2581
|
+
type GPUSupportedFeatures = ReadonlySet<string>;
|
|
2821
2582
|
|
|
2822
2583
|
interface GPUSupportedLimits {
|
|
2823
2584
|
/**
|
|
@@ -2864,8 +2625,7 @@ declare var GPUSupportedLimits: {
|
|
|
2864
2625
|
prototype: GPUSupportedLimits;
|
|
2865
2626
|
};
|
|
2866
2627
|
|
|
2867
|
-
interface GPUTexture
|
|
2868
|
-
extends GPUObjectBase {
|
|
2628
|
+
interface GPUTexture extends GPUObjectBase {
|
|
2869
2629
|
/**
|
|
2870
2630
|
* Nominal type branding.
|
|
2871
2631
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2876,9 +2636,7 @@ interface GPUTexture
|
|
|
2876
2636
|
* Creates a {@link GPUTextureView}.
|
|
2877
2637
|
* @param descriptor - Description of the {@link GPUTextureView} to create.
|
|
2878
2638
|
*/
|
|
2879
|
-
createView(
|
|
2880
|
-
descriptor?: GPUTextureViewDescriptor
|
|
2881
|
-
): GPUTextureView;
|
|
2639
|
+
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
2882
2640
|
/**
|
|
2883
2641
|
* Destroys the {@link GPUTexture}.
|
|
2884
2642
|
*/
|
|
@@ -2921,8 +2679,7 @@ declare var GPUTexture: {
|
|
|
2921
2679
|
prototype: GPUTexture;
|
|
2922
2680
|
};
|
|
2923
2681
|
|
|
2924
|
-
interface GPUTextureView
|
|
2925
|
-
extends GPUObjectBase {
|
|
2682
|
+
interface GPUTextureView extends GPUObjectBase {
|
|
2926
2683
|
/**
|
|
2927
2684
|
* Nominal type branding.
|
|
2928
2685
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2935,8 +2692,7 @@ declare var GPUTextureView: {
|
|
|
2935
2692
|
prototype: GPUTextureView;
|
|
2936
2693
|
};
|
|
2937
2694
|
|
|
2938
|
-
interface GPUUncapturedErrorEvent
|
|
2939
|
-
extends Event {
|
|
2695
|
+
interface GPUUncapturedErrorEvent extends Event {
|
|
2940
2696
|
/**
|
|
2941
2697
|
* Nominal type branding.
|
|
2942
2698
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2954,12 +2710,11 @@ declare var GPUUncapturedErrorEvent: {
|
|
|
2954
2710
|
prototype: GPUUncapturedErrorEvent;
|
|
2955
2711
|
new (
|
|
2956
2712
|
type: string,
|
|
2957
|
-
gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit
|
|
2713
|
+
gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit,
|
|
2958
2714
|
);
|
|
2959
2715
|
};
|
|
2960
2716
|
|
|
2961
|
-
interface GPUValidationError
|
|
2962
|
-
extends GPUError {
|
|
2717
|
+
interface GPUValidationError extends GPUError {
|
|
2963
2718
|
/**
|
|
2964
2719
|
* Nominal type branding.
|
|
2965
2720
|
* https://github.com/microsoft/TypeScript/pull/33038
|
|
@@ -2970,19 +2725,14 @@ interface GPUValidationError
|
|
|
2970
2725
|
|
|
2971
2726
|
declare var GPUValidationError: {
|
|
2972
2727
|
prototype: GPUValidationError;
|
|
2973
|
-
new (
|
|
2974
|
-
message: string
|
|
2975
|
-
);
|
|
2728
|
+
new (message: string);
|
|
2976
2729
|
};
|
|
2977
2730
|
|
|
2978
|
-
type WGSLLanguageFeatures =
|
|
2979
|
-
ReadonlySet<string>;
|
|
2731
|
+
type WGSLLanguageFeatures = ReadonlySet<string>;
|
|
2980
2732
|
|
|
2981
|
-
interface Navigator
|
|
2982
|
-
extends NavigatorGPU {}
|
|
2733
|
+
interface Navigator extends NavigatorGPU {}
|
|
2983
2734
|
|
|
2984
|
-
interface WorkerNavigator
|
|
2985
|
-
extends NavigatorGPU {}
|
|
2735
|
+
interface WorkerNavigator extends NavigatorGPU {}
|
|
2986
2736
|
|
|
2987
2737
|
interface GPUBufferUsage {
|
|
2988
2738
|
readonly MAP_READ: GPUFlagsConstant;
|
|
@@ -3024,79 +2774,76 @@ interface GPUTextureUsage {
|
|
|
3024
2774
|
readonly RENDER_ATTACHMENT: GPUFlagsConstant;
|
|
3025
2775
|
}
|
|
3026
2776
|
|
|
3027
|
-
type PresentMode
|
|
3028
|
-
= 'fifo'
|
|
3029
|
-
| 'fifoRelaxed'
|
|
3030
|
-
| 'immediate'
|
|
3031
|
-
| 'mailbox'
|
|
2777
|
+
type PresentMode = "fifo" | "fifoRelaxed" | "immediate" | "mailbox";
|
|
3032
2778
|
|
|
3033
2779
|
interface Renderer {
|
|
3034
|
-
getPreferredFormat(): GPUTextureFormat
|
|
3035
|
-
getAlphaMode(): 'opaque' | 'premultiplied'
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
destroy()
|
|
2780
|
+
getPreferredFormat(): GPUTextureFormat;
|
|
2781
|
+
getAlphaMode(): 'opaque' | 'premultiplied' | 'inherit';
|
|
2782
|
+
getCurrentTexture(): GPUTexture;
|
|
2783
|
+
getCurrentTextureView(): GPUTextureView;
|
|
2784
|
+
swap();
|
|
2785
|
+
resize();
|
|
2786
|
+
destroy();
|
|
3042
2787
|
}
|
|
3043
2788
|
|
|
3044
2789
|
interface WebGPU {
|
|
3045
|
-
GPUSupportedFeatures: GPUSupportedFeatures
|
|
3046
|
-
GPUSupportedLimits: GPUSupportedLimits
|
|
3047
|
-
GPUCommandBuffer: GPUCommandBuffer
|
|
3048
|
-
GPUBuffer: GPUBuffer
|
|
3049
|
-
GPUTextureView: GPUTextureView
|
|
3050
|
-
GPUTexture: GPUTexture
|
|
3051
|
-
GPUQueue: GPUQueue
|
|
3052
|
-
GPUSampler: GPUSampler
|
|
3053
|
-
GPUExternalTexture: GPUExternalTexture
|
|
3054
|
-
GPUBindGroupLayout: GPUBindGroupLayout
|
|
3055
|
-
GPUPipelineLayout: GPUPipelineLayout
|
|
3056
|
-
GPUBindGroup: GPUBindGroup
|
|
3057
|
-
GPUCompilationMessage: GPUCompilationMessage
|
|
3058
|
-
GPUCompilationInfo: GPUCompilationInfo
|
|
3059
|
-
GPUShaderModule: GPUShaderModule
|
|
3060
|
-
GPUComputePipeline: GPUComputePipeline
|
|
3061
|
-
GPURenderPipeline: GPURenderPipeline
|
|
3062
|
-
GPURenderBundle: GPURenderBundle
|
|
3063
|
-
GPURenderPassEncoder: GPURenderPassEncoder
|
|
3064
|
-
GPUQuerySet: GPUQuerySet
|
|
3065
|
-
GPUComputePassEncoder: GPUComputePassEncoder
|
|
3066
|
-
GPUCommandEncoder: GPUCommandEncoder
|
|
3067
|
-
GPURenderBundleEncoder: GPURenderBundleEncoder
|
|
3068
|
-
GPUDeviceLostInfo: GPUDeviceLostInfo
|
|
3069
|
-
GPUError: GPUError
|
|
3070
|
-
GPUDevice: GPUDevice
|
|
3071
|
-
GPUAdapterInfo: GPUAdapterInfo
|
|
3072
|
-
GPUAdapter: GPUAdapter
|
|
3073
|
-
WGSLLanguageFeatures: WGSLLanguageFeatures
|
|
3074
|
-
GPU: GPU
|
|
3075
|
-
GPUBufferUsage: GPUBufferUsage
|
|
3076
|
-
GPUMapMode: GPUMapMode
|
|
3077
|
-
GPUTextureUsage: GPUTextureUsage
|
|
3078
|
-
GPUShaderStage: GPUShaderStage
|
|
3079
|
-
GPUPipelineError: GPUPipelineError
|
|
3080
|
-
GPUColorWrite: GPUColorWrite
|
|
3081
|
-
GPUCanvasContext: GPUCanvasContext
|
|
3082
|
-
GPUValidationError: GPUValidationError
|
|
3083
|
-
GPUOutOfMemoryError: GPUOutOfMemoryError
|
|
3084
|
-
GPUInternalError: GPUInternalError
|
|
3085
|
-
GPUUncapturedErrorEvent: GPUUncapturedErrorEvent
|
|
2790
|
+
GPUSupportedFeatures: GPUSupportedFeatures;
|
|
2791
|
+
GPUSupportedLimits: GPUSupportedLimits;
|
|
2792
|
+
GPUCommandBuffer: GPUCommandBuffer;
|
|
2793
|
+
GPUBuffer: GPUBuffer;
|
|
2794
|
+
GPUTextureView: GPUTextureView;
|
|
2795
|
+
GPUTexture: GPUTexture;
|
|
2796
|
+
GPUQueue: GPUQueue;
|
|
2797
|
+
GPUSampler: GPUSampler;
|
|
2798
|
+
GPUExternalTexture: GPUExternalTexture;
|
|
2799
|
+
GPUBindGroupLayout: GPUBindGroupLayout;
|
|
2800
|
+
GPUPipelineLayout: GPUPipelineLayout;
|
|
2801
|
+
GPUBindGroup: GPUBindGroup;
|
|
2802
|
+
GPUCompilationMessage: GPUCompilationMessage;
|
|
2803
|
+
GPUCompilationInfo: GPUCompilationInfo;
|
|
2804
|
+
GPUShaderModule: GPUShaderModule;
|
|
2805
|
+
GPUComputePipeline: GPUComputePipeline;
|
|
2806
|
+
GPURenderPipeline: GPURenderPipeline;
|
|
2807
|
+
GPURenderBundle: GPURenderBundle;
|
|
2808
|
+
GPURenderPassEncoder: GPURenderPassEncoder;
|
|
2809
|
+
GPUQuerySet: GPUQuerySet;
|
|
2810
|
+
GPUComputePassEncoder: GPUComputePassEncoder;
|
|
2811
|
+
GPUCommandEncoder: GPUCommandEncoder;
|
|
2812
|
+
GPURenderBundleEncoder: GPURenderBundleEncoder;
|
|
2813
|
+
GPUDeviceLostInfo: GPUDeviceLostInfo;
|
|
2814
|
+
GPUError: GPUError;
|
|
2815
|
+
GPUDevice: GPUDevice;
|
|
2816
|
+
GPUAdapterInfo: GPUAdapterInfo;
|
|
2817
|
+
GPUAdapter: GPUAdapter;
|
|
2818
|
+
WGSLLanguageFeatures: WGSLLanguageFeatures;
|
|
2819
|
+
GPU: GPU;
|
|
2820
|
+
GPUBufferUsage: GPUBufferUsage;
|
|
2821
|
+
GPUMapMode: GPUMapMode;
|
|
2822
|
+
GPUTextureUsage: GPUTextureUsage;
|
|
2823
|
+
GPUShaderStage: GPUShaderStage;
|
|
2824
|
+
GPUPipelineError: GPUPipelineError;
|
|
2825
|
+
GPUColorWrite: GPUColorWrite;
|
|
2826
|
+
GPUCanvasContext: GPUCanvasContext;
|
|
2827
|
+
GPUValidationError: GPUValidationError;
|
|
2828
|
+
GPUOutOfMemoryError: GPUOutOfMemoryError;
|
|
2829
|
+
GPUInternalError: GPUInternalError;
|
|
2830
|
+
GPUUncapturedErrorEvent: GPUUncapturedErrorEvent;
|
|
3086
2831
|
|
|
3087
2832
|
createWindowContext(options: {
|
|
3088
|
-
flags: string[]
|
|
3089
|
-
window: any
|
|
3090
|
-
presentMode?: PresentMode
|
|
3091
|
-
alphaMode?:
|
|
2833
|
+
flags: string[];
|
|
2834
|
+
window: any;
|
|
2835
|
+
presentMode?: PresentMode;
|
|
2836
|
+
alphaMode?: "opaque" | "premultiplied";
|
|
3092
2837
|
}): {
|
|
3093
|
-
gpu: GPU
|
|
3094
|
-
adapter: GPUAdapter
|
|
3095
|
-
device: GPUDevice
|
|
3096
|
-
renderer: Renderer
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
}
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
2838
|
+
gpu: GPU;
|
|
2839
|
+
adapter: GPUAdapter;
|
|
2840
|
+
device: GPUDevice;
|
|
2841
|
+
renderer: Renderer;
|
|
2842
|
+
requestedAlphaMode: "opaque" | "premultiplied";
|
|
2843
|
+
alphaMode: "opaque" | "premultiplied" | "inherit";
|
|
2844
|
+
};
|
|
2845
|
+
destroy(context: object);
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
declare const gpu: WebGPU;
|
|
2849
|
+
export = gpu;
|