Skip to content

Commit

Permalink
[win32, canvas] Use DXC compiler in dawn D3D12 backend
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfouilleul committed Jun 20, 2024
1 parent 2f57dfd commit 5e2e786
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/graphics/wgpu_renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
};

Expand Down

0 comments on commit 5e2e786

Please sign in to comment.