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

Implemented exprimental support for dxc compiler (WIP) #3133

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jay3d
Copy link
Contributor

@jay3d jay3d commented Jul 19, 2023

I have implemented using dxc compiler experimentally, those are currently implemented:

  • Loading the dxcompiler.dll and querying its functions
  • Compiling preprocessed HLSL shaders using provided arguments
  • Extracting shader reflection info
  • Stripping compiled blobs
  • Disassembly
  • Patching DXIL (currently when DXIL is detected, patching is ignored)

Should use the same versions of dxc.exe, dxcompiler.dll and dxil.dll to prevent failures.

Although not all preprocessed HLSL shaders will work out of the box, this needs modification of predefined macros to adapt to new language changes in shader models that dxc (SM6+) supports.

This could be a start for anyone to collaborate and enhance so this PR could reach maturity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant