Skip to content

Commit 5b47767

Browse files
authored
Remove resolve from tier1 formats (#4425)
These 6 formats erroneously has `resolve: true` but they should be `resolve: false`. See: https://gpuweb.github.io/gpuweb/#texture-formats-tier1 and gpuweb/gpuweb#5237
1 parent 2e418e2 commit 5b47767

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/webgpu/format_info.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ const kRegularTextureFormatInfo = formatTableWithDefaults({
297297
readWriteStorage: false,
298298
bytes: 2,
299299
},
300-
colorRender: { blend: true, resolve: true, byteCost: 2, alignment: 2 },
300+
colorRender: { blend: true, resolve: false, byteCost: 2, alignment: 2 },
301301
multisample: true,
302302
feature: 'texture-formats-tier1',
303303
/*prettier-ignore*/ get bytesPerBlock() { return this.color.bytes; },
@@ -311,7 +311,7 @@ const kRegularTextureFormatInfo = formatTableWithDefaults({
311311
readWriteStorage: false,
312312
bytes: 2,
313313
},
314-
colorRender: { blend: true, resolve: true, byteCost: 2, alignment: 2 },
314+
colorRender: { blend: true, resolve: false, byteCost: 2, alignment: 2 },
315315
multisample: true,
316316
feature: 'texture-formats-tier1',
317317
/*prettier-ignore*/ get bytesPerBlock() { return this.color.bytes; },
@@ -365,7 +365,7 @@ const kRegularTextureFormatInfo = formatTableWithDefaults({
365365
readWriteStorage: false,
366366
bytes: 4,
367367
},
368-
colorRender: { blend: true, resolve: true, byteCost: 4, alignment: 2 },
368+
colorRender: { blend: true, resolve: false, byteCost: 4, alignment: 2 },
369369
multisample: true,
370370
feature: 'texture-formats-tier1',
371371
/*prettier-ignore*/ get bytesPerBlock() { return this.color.bytes; },
@@ -379,7 +379,7 @@ const kRegularTextureFormatInfo = formatTableWithDefaults({
379379
readWriteStorage: false,
380380
bytes: 4,
381381
},
382-
colorRender: { blend: true, resolve: true, byteCost: 4, alignment: 2 },
382+
colorRender: { blend: true, resolve: false, byteCost: 4, alignment: 2 },
383383
multisample: true,
384384
feature: 'texture-formats-tier1',
385385
/*prettier-ignore*/ get bytesPerBlock() { return this.color.bytes; },
@@ -433,7 +433,7 @@ const kRegularTextureFormatInfo = formatTableWithDefaults({
433433
readWriteStorage: false,
434434
bytes: 8,
435435
},
436-
colorRender: { blend: true, resolve: true, byteCost: 8, alignment: 4 },
436+
colorRender: { blend: true, resolve: false, byteCost: 8, alignment: 4 },
437437
multisample: true,
438438
feature: 'texture-formats-tier1',
439439
/*prettier-ignore*/ get bytesPerBlock() { return this.color.bytes; },
@@ -447,7 +447,7 @@ const kRegularTextureFormatInfo = formatTableWithDefaults({
447447
readWriteStorage: false,
448448
bytes: 8,
449449
},
450-
colorRender: { blend: true, resolve: true, byteCost: 8, alignment: 2 },
450+
colorRender: { blend: true, resolve: false, byteCost: 8, alignment: 2 },
451451
multisample: true,
452452
feature: 'texture-formats-tier1',
453453
/*prettier-ignore*/ get bytesPerBlock() { return this.color.bytes; },

0 commit comments

Comments
 (0)