microsoft / DirectXShaderCompiler

This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.
Other
3.09k stars 689 forks source link

Handle -Fc in Compile API #2604

Open tex3d opened 4 years ago

tex3d commented 4 years ago

Handle -Fc in Compile API in order to support separate simultaneous disassembly output.

ghost commented 4 years ago

Is this still not resolved in latest version of dxc (it looks like it isn't)? Could anyone update documentation which option works or not when using compile api ? I lost alot of time trying to figure out why -Fc works in stand alone dxc, but not from compile api (E_INVALIDARG was returned). Documentation states that all options are recognized by library calls: https://github.com/microsoft/DirectXShaderCompiler/blob/master/docs/SPIR-V.rst

damyanp commented 4 months ago

Moved to Dormant - we'd happily review a PR that adds support for this, but we're not planning on adding it to DXC.