Skip to content

Commit

Permalink
[WEBGPU] Update runtime to remove deprecated API (#17371)
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 Sep 14, 2024
1 parent eb011c7 commit cea4c85
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 cea4c85

Please sign in to comment.