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

Upgrade from WGPUSurfaceDescriptorFromCanvasHTMLSelector? #512

Open
lukaschod opened this issue Feb 11, 2025 · 1 comment
Open

Upgrade from WGPUSurfaceDescriptorFromCanvasHTMLSelector? #512

lukaschod opened this issue Feb 11, 2025 · 1 comment

Comments

@lukaschod
Copy link

I noticed that from 2024 August API changed of getting surface from HTML canvas. There used to be function called WGPUSurfaceDescriptorFromCanvasHTMLSelector and most of the tutorials followed it https://developer.chrome.com/docs/web-platform/webgpu/build-app.
I am curious what is the new way to get surface from HTML for WebGPU? Also I am using SDL2 for window managing.

@beaufortfrancois
Copy link
Contributor

Here's my take on this at beaufortfrancois/webgpu-cross-platform-app#17

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