diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-09-04 18:04:50 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-09-04 18:04:50 +0200 |
| commit | 07b4fdffef183b102180422790ec7aaf39c66090 (patch) | |
| tree | 49660cd90704fce570f753a5174e40f079c11fc9 | |
| parent | 0da8eea63c8823f3ed4751ec748fffc39afdcc91 (diff) | |
sokol_app.h: fix wgpu backend for latest dawn webgpu.h
| -rw-r--r-- | sokol_app.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h index c611d591..9f887091 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -3890,7 +3890,11 @@ _SOKOL_PRIVATE void _sapp_wgpu_init(void) { WGPUInstanceDescriptor desc; _sapp_clear(&desc, sizeof(desc)); #if defined(_SAPP_WGPU_HAS_WAIT) - desc.capabilities.timedWaitAnyEnable = true; + WGPUInstanceFeatureName inst_features[1] = { + WGPUInstanceFeatureName_TimedWaitAny, + }; + desc.requiredFeatureCount = 1; + desc.requiredFeatures = inst_features; #endif _sapp.wgpu.instance = wgpuCreateInstance(&desc); if (0 == _sapp.wgpu.instance) { |