diff --git a/src/graphics/wgpu_renderer.c b/src/graphics/wgpu_renderer.c index 130e488d..7e38cf70 100644 --- a/src/graphics/wgpu_renderer.c +++ b/src/graphics/wgpu_renderer.c @@ -629,7 +629,16 @@ oc_canvas_renderer oc_canvas_renderer_create(void) renderer->limits = supported.limits; + int enabledToggleCount = 1; + const char* enabledToggles[] = { "use_dxc" }; + WGPUDeviceDescriptor desc = { + .nextInChain = &((WGPUDawnTogglesDescriptor){ + .chain.sType = WGPUSType_DawnTogglesDescriptor, + .enabledToggleCount = enabledToggleCount, + .enabledToggles = enabledToggles, + }) + .chain, .requiredLimits = &(WGPURequiredLimits){ .limits = supported.limits }, };