Skip to content

Commit c1e822b

Browse files
Roll gpuweb (#182)
This PR reflects changes from the following spec PRs: * gpuweb/gpuweb#5193 * gpuweb/gpuweb#5160 Please publish new version after it's merged so that we can add tests in the CTS as in gpuweb/cts#4390
1 parent 6917528 commit c1e822b

3 files changed

Lines changed: 22 additions & 5 deletions

File tree

dist/index.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ type GPUBindingResource =
115115

116116
| GPUSampler
117117
| GPUTextureView
118+
| GPUBuffer
118119
| GPUBufferBinding
119120
| GPUExternalTexture;
120121
type GPUBufferDynamicOffset =
@@ -262,6 +263,7 @@ type GPUErrorFilter =
262263
| "internal";
263264
type GPUFeatureName =
264265

266+
| "core-features-and-limits"
265267
| "depth-clip-control"
266268
| "depth32float-stencil8"
267269
| "texture-compression-bc"
@@ -279,7 +281,7 @@ type GPUFeatureName =
279281
| "clip-distances"
280282
| "dual-source-blending"
281283
| "subgroups"
282-
| "core-features-and-limits";
284+
| "texture-formats-tier1";
283285
type GPUFilterMode =
284286

285287
| "nearest"
@@ -359,6 +361,8 @@ type GPUTextureFormat =
359361
| "r8snorm"
360362
| "r8uint"
361363
| "r8sint"
364+
| "r16unorm"
365+
| "r16snorm"
362366
| "r16uint"
363367
| "r16sint"
364368
| "r16float"
@@ -369,6 +373,8 @@ type GPUTextureFormat =
369373
| "r32uint"
370374
| "r32sint"
371375
| "r32float"
376+
| "rg16unorm"
377+
| "rg16snorm"
372378
| "rg16uint"
373379
| "rg16sint"
374380
| "rg16float"
@@ -386,6 +392,8 @@ type GPUTextureFormat =
386392
| "rg32uint"
387393
| "rg32sint"
388394
| "rg32float"
395+
| "rgba16unorm"
396+
| "rgba16snorm"
389397
| "rgba16uint"
390398
| "rgba16sint"
391399
| "rgba16float"
@@ -535,7 +543,7 @@ interface GPUBindGroupEntry {
535543
binding: GPUIndex32;
536544
/**
537545
* The resource to bind, which may be a {@link GPUSampler}, {@link GPUTextureView},
538-
* {@link GPUExternalTexture}, or {@link GPUBufferBinding}.
546+
* {@link GPUBuffer}, {@link GPUBufferBinding}, or {@link GPUExternalTexture}.
539547
*/
540548
resource: GPUBindingResource;
541549
}

generated/index.d.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ type GPUBindingResource =
22

33
| GPUSampler
44
| GPUTextureView
5+
| GPUBuffer
56
| GPUBufferBinding
67
| GPUExternalTexture;
78
type GPUBufferDynamicOffset =
@@ -149,6 +150,7 @@ type GPUErrorFilter =
149150
| "internal";
150151
type GPUFeatureName =
151152

153+
| "core-features-and-limits"
152154
| "depth-clip-control"
153155
| "depth32float-stencil8"
154156
| "texture-compression-bc"
@@ -165,7 +167,8 @@ type GPUFeatureName =
165167
| "float32-blendable"
166168
| "clip-distances"
167169
| "dual-source-blending"
168-
| "subgroups";
170+
| "subgroups"
171+
| "texture-formats-tier1";
169172
type GPUFilterMode =
170173

171174
| "nearest"
@@ -245,6 +248,8 @@ type GPUTextureFormat =
245248
| "r8snorm"
246249
| "r8uint"
247250
| "r8sint"
251+
| "r16unorm"
252+
| "r16snorm"
248253
| "r16uint"
249254
| "r16sint"
250255
| "r16float"
@@ -255,6 +260,8 @@ type GPUTextureFormat =
255260
| "r32uint"
256261
| "r32sint"
257262
| "r32float"
263+
| "rg16unorm"
264+
| "rg16snorm"
258265
| "rg16uint"
259266
| "rg16sint"
260267
| "rg16float"
@@ -272,6 +279,8 @@ type GPUTextureFormat =
272279
| "rg32uint"
273280
| "rg32sint"
274281
| "rg32float"
282+
| "rgba16unorm"
283+
| "rgba16snorm"
275284
| "rgba16uint"
276285
| "rgba16sint"
277286
| "rgba16float"
@@ -421,7 +430,7 @@ interface GPUBindGroupEntry {
421430
binding: GPUIndex32;
422431
/**
423432
* The resource to bind, which may be a {@link GPUSampler}, {@link GPUTextureView},
424-
* {@link GPUExternalTexture}, or {@link GPUBufferBinding}.
433+
* {@link GPUBuffer}, {@link GPUBufferBinding}, or {@link GPUExternalTexture}.
425434
*/
426435
resource: GPUBindingResource;
427436
}

0 commit comments

Comments
 (0)