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 WGPU_*_DESCRIPTOR_INIT provided bu webgpu.h #24

Closed
eliemichel opened this issue Oct 25, 2024 · 1 comment
Closed

Use WGPU_*_DESCRIPTOR_INIT provided bu webgpu.h #24

eliemichel opened this issue Oct 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@eliemichel
Copy link
Owner

The webgpu.h file now provides a macro WGPU_FOO_DESCRIPTOR_INIT for each descriptor WGPUFooDescriptor. This is the preferred way to get default values and initialize.

This repo still uses a hacky scraping-based mechanism to list default values, and should switch to this new clean approach.

@eliemichel eliemichel self-assigned this Oct 25, 2024
@eliemichel eliemichel added the enhancement New feature or request label Oct 25, 2024
@eliemichel
Copy link
Owner Author

NB: This requires webgpu-native/webgpu-headers#422 to land and wgpu-native to sync with it (Dawn already has such macros)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant