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

DXC Integration in DX12 Backend #2722

Closed
Tracked by #2719
cwfitzgerald opened this issue Jun 2, 2022 · 0 comments · Fixed by #3356
Closed
Tracked by #2719

DXC Integration in DX12 Backend #2722

cwfitzgerald opened this issue Jun 2, 2022 · 0 comments · Fixed by #3356
Labels
api: dx12 Issues with DX12 or DXGI area: correctness We're behaving incorrectly help required We need community help to make this happen. type: enhancement New feature or request

Comments

@cwfitzgerald
Copy link
Member

Is your feature request related to a problem? Please describe.

We currently use fxc (aka d3dcompiler) to compile our HLSL to DXBC. It has a couple issues:

  • Completely unmaintained, with many issues
  • Extremely slow
  • DXBC is limited to SM5.1 which limits the features we can offer.
    • Subgroup Ops
    • Native float16

While our end goal is to have naga have a DXIL backend, that is a lot of work and a long way away, so an intermediate step is to integrate with DXC.

Because DXC is a runtime dependency, we still need to be able to fall back to FXC if DXC isn't available, and to get these features users will need to ship dxcompiler.dll with their application.

Describe the solution you'd like

Integration with DXC, possibly through the hassle-rs crate.

Describe alternatives you've considered

Waiting for a DXIL backend for naga. No C code but will take a long while.

Additional context

See this naga issue for some of the problems we've needed to work around to get FXC to work gfx-rs/naga#1918.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: dx12 Issues with DX12 or DXGI area: correctness We're behaving incorrectly help required We need community help to make this happen. type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant