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

HDR demo not working when I have WebGPU flag enabled on chrome #506

Closed
shanebenlolo opened this issue Nov 14, 2023 · 3 comments
Closed

HDR demo not working when I have WebGPU flag enabled on chrome #506

shanebenlolo opened this issue Nov 14, 2023 · 3 comments

Comments

@shanebenlolo
Copy link

Hello,

Thank you for these tutorials. I am trying to checkout the demo for the HDR example found here: https://sotrh.github.io/learn-wgpu/intermediate/tutorial13-hdr/#demo

I am receiving the following error when the demo loads:

panicked at code/intermediate/tutorial13-hdr/src/lib.rs:269:14:
called `Option::unwrap()` on a `None` value

which corresponds to this code block in the example code:

        let adapter = instance
            .request_adapter(&wgpu::RequestAdapterOptions {
                power_preference: wgpu::PowerPreference::default(),
                compatible_surface: Some(&surface),
                force_fallback_adapter: false,
            })
            .await
            .unwrap();

image

As you can see from the image above, I have WebGPU enabled in my settings and have reset chrome.

I am also able to run this WebGPU testing website with no issues: https://toji.github.io/webgpu-test/

@shanebenlolo
Copy link
Author

https://webkit.org/demos/webgpu/

only half of these work on my machine as well. For instance, the Triangle and Compute Shader Blur examples both work, but the Sphere (Babylon.js) does not. So it is probably just a system-specific issue. If anyone else has had this issue please let me know if / how you managed to resolve it.

@cylof22
Copy link

cylof22 commented Nov 27, 2023

I also see the same problem for Chrome 119 version. Is it a wgpu issue?

@shanebenlolo
Copy link
Author

I also see the same problem for Chrome 119 version. Is it a wgpu issue?

I think it's fair to assume this is not a wgpu issue as it is not onfined to only projects written using wgpu, closing now thank you for verifying you are having issues with the demos as well.

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