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 15, 2025
1 parent f2acbe3 commit 6e707f8
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 @@ -223,7 +223,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 @@ -336,7 +336,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 6e707f8

Please sign in to comment.