Skip to content

Commit

Permalink
revert configure change
Browse files Browse the repository at this point in the history
  • Loading branch information
shrekshao committed Jan 17, 2025
1 parent 824ea20 commit 149a20b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webgpu/web_platform/canvas/configure.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ g.test('format')
format,
});
const configuration = ctx.getConfiguration();
t.expect(configuration.format === format);
t.expect(configuration!.format === format);
} else {
t.shouldThrow('TypeError', () => {
ctx.configure({
Expand Down Expand Up @@ -224,7 +224,7 @@ g.test('usage')
});

const configuration = ctx.getConfiguration();
t.expect(configuration.usage === usage);
t.expect(configuration!.usage === usage);

const currentTexture = ctx.getCurrentTexture();
t.expect(currentTexture instanceof GPUTexture);
Expand Down Expand Up @@ -343,7 +343,7 @@ g.test('alpha_mode')
});

const configuration = ctx.getConfiguration();
t.expect(configuration.alphaMode === alphaMode);
t.expect(configuration!.alphaMode === alphaMode);

const currentTexture = ctx.getCurrentTexture();
t.expect(currentTexture instanceof GPUTexture);
Expand Down

0 comments on commit 149a20b

Please sign in to comment.