Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library is broken. requestAdapterInfo is deprecated #508

Open
anaelshomrai opened this issue Nov 28, 2024 · 0 comments
Open

Library is broken. requestAdapterInfo is deprecated #508

anaelshomrai opened this issue Nov 28, 2024 · 0 comments
Assignees

Comments

@anaelshomrai
Copy link

anaelshomrai commented Nov 28, 2024

Issue Description
WebGPU requestAdapterInfo seems to be deprecated and replaced with GPUAdapterInfo

Steps to Reproduce
Launch the official Human demo, checkout the warning in console
hook.js:608 TypeError: e.requestAdapterInfo is not a function at Object.factory (human.esm.js:26020:51) at async check (human.esm.js:33809:9) at async Human.init (human.esm.js:46588:5) at async main (index.js:982:5)

Expected Behavior
Update code to use GPUAdapterInfo

Additional
It seems like an easy replacement from
const adapter = await navigator.gpu.requestAdapter(); this.webgpu.adapter = await adapter?.requestAdapterInfo();

To:
this.webgpu.adapter = await adapter.info;

Resources:

  1. https://issues.chromium.org/issues/346321149
  2. https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestAdapterInfo
  3. https://gpuweb.github.io/gpuweb/#dom-gpuadapter-info
  4. https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo

Thank you !

@anaelshomrai anaelshomrai changed the title requestAdapterInfo is depreacted Library is broken. requestAdapterInfo is deprecated Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants