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

Use c++ "init structs" for chained struct types #15

Open
beaufortfrancois opened this issue Sep 4, 2024 · 0 comments
Open

Use c++ "init structs" for chained struct types #15

beaufortfrancois opened this issue Sep 4, 2024 · 0 comments

Comments

@beaufortfrancois
Copy link
Owner

When Emscripten gets this change from https://dawn-review.googlesource.com/c/dawn/+/185967 we should be able to write the following:

wgpu::SurfaceDescriptorFromCanvasHTMLSelector canvasDesc{{.selector = "#canvas"}};

I assume we'll have to use the new names when the breaking-change freeze is over:

wgpu::SurfaceSourceCanvasHTMLSelector_Emscripten canvasDesc{{.selector = "#canvas"}};
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

1 participant