Skip to content

Commit

Permalink
[WEBGPU] Update runtime to remove deprecated API
Browse files Browse the repository at this point in the history
This PR updates webgpu runtime code to remove
deprecated API. unblocks the CI.
  • Loading branch information
tqchen authored and MasterJH5574 committed Sep 13, 2024
1 parent 36f8345 commit 58b1b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/webgpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export async function detectGPUDevice(): Promise<GPUDeviceDetectOutput | undefin
requiredFeatures.push("shader-f16");
}

const adapterInfo = adapter.info || await adapter.requestAdapterInfo();
const adapterInfo = adapter.info;
const device = await adapter.requestDevice({
requiredLimits: {
maxBufferSize: requiredMaxBufferSize,
Expand Down

0 comments on commit 58b1b0e

Please sign in to comment.