Skip to content

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.

1 participant