Skip to content

Commit

Permalink
Use synchronous GPUAdapter.info when available
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored and greggman committed May 31, 2024
1 parent dc7dd15 commit 2813ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ async function adapterToElements(adapter) {
return;
}
// UGH!
const adapterInfo = await (adapter.requestAdapterInfo ? adapter.requestAdapterInfo() : undefined);
const adapterInfo = adapter.info || await (adapter.requestAdapterInfo ? adapter.requestAdapterInfo() : undefined);

const limitsSectionElem = el('tr', {className: 'section'}, [
el('td', {colSpan: 2}, [createHeading('div', '-', 'limits:')]),
Expand Down

0 comments on commit 2813ec1

Please sign in to comment.