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

Update headers #392

Merged
merged 8 commits into from
Jul 18, 2024
Merged

Update headers #392

merged 8 commits into from
Jul 18, 2024

Conversation

PJB3005
Copy link
Contributor

@PJB3005 PJB3005 commented Jun 11, 2024

Add wgpuAdapterGetInfo to replace wgpuAdapterRequestAdapterInfo. Actually implemented this time unlike wgpuAdapterRequestAdapterInfo. And wgpuAdapterInfoFreeMembers.

wgpuDeviceSetUncapturedErrorCallback replaced in favor of field on instance descriptor

wgpuSurfaceGetPreferredFormat deleted

Add usage to WGPUSurfaceCapabilities

Add wgpuAdapterGetInfo to replace wgpuAdapterRequestAdapterInfo. Actually implemented this time unlike wgpuAdapterRequestAdapterInfo. And wgpuAdapterInfoFreeMembers.

wgpuDeviceSetUncapturedErrorCallback replaced in favor of field on instance descriptor

wgpuSurfaceGetPreferredFormat deleted

Add usage to WGPUSurfaceCapabilities
Just wanted something to test and figured I'd commit it. Happy to revert this commit if unwanted.
I realized while reading the WebGPU spec that returning anything other than a "normalized identifier string" there is actually illegal, which the previous value definititely was.

If we want to fill these up nicely, we'll need to keep a database similar to what Dawn is doing. Hell, maybe it's best to literally use the same database for compatibility?
@almarklein
Copy link
Collaborator

LGTM. Anyone know what the deal is with WGPUAdapterProperties vs WGPUAdapterInfo?

@PJB3005
Copy link
Contributor Author

PJB3005 commented Jun 12, 2024

Seems like properties needs to be removed, actually: webgpu-native/webgpu-headers#304 (comment) webgpu-native/webgpu-headers#305

@rajveermalviya
Copy link
Collaborator

CI is failing because enumerate_adapters example also needs to be updated:
https://github.com/gfx-rs/wgpu-native/actions/runs/9490406866/job/26153820533?pr=392

@rajveermalviya
Copy link
Collaborator

Thanks!

@rajveermalviya rajveermalviya enabled auto-merge (squash) July 18, 2024 16:19
@rajveermalviya rajveermalviya merged commit 4f85e22 into gfx-rs:trunk Jul 18, 2024
16 checks passed
@PJB3005 PJB3005 deleted the 24-06-11-header-update branch July 20, 2024 23:34
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

Successfully merging this pull request may close these issues.

3 participants