gfx-rs / wgpu-native

Native WebGPU implementation based on wgpu-core
Apache License 2.0
843 stars 96 forks source link

Update headers #392

Closed PJB3005 closed 1 month ago

PJB3005 commented 2 months ago

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

almarklein commented 2 months ago

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

PJB3005 commented 2 months ago

Seems like properties needs to be removed, actually: https://github.com/webgpu-native/webgpu-headers/issues/304#issuecomment-2161374820 https://github.com/webgpu-native/webgpu-headers/pull/305

rajveermalviya commented 2 months ago

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 commented 1 month ago

Thanks!