-
Notifications
You must be signed in to change notification settings - Fork 722
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
Interest on DXIL<->SPIRV translation.. #68
Comments
@oscarbg, we have no objection to people writing translator tools. Part of our motivation for opening this up is to allow developers to organize and develop around the solutions they care about the most, including porting this around or porting the output around (https://blogs.msdn.microsoft.com/directx/2017/01/23/new-directx-shader-compiler-based-on-clangllvm-now-available-as-open-source/). That said, right now we're focused on making DXIL & the associated toolset the best we can. But if there are contributions to help people get started on this we can certainly talk about getting those merged. Does this help understand where we are on this at the moment? |
Yes.. thanks for info.. |
@marcelolr I haven't asked Microsoft guys if they are interested in adding DXIL->LLVM IR support.. |
@oscarbg DXIL is already valid LLVM IR. We represent DirectX-specific things using a combination of external function calls and LLVM metadata. We did not make any changes to the actual representation of LLVM IR so any stock LLVM should be able to load and process DXIL as normal LLVM IR. Of course to understand the semantics of DXIL you need to teach the compiler the meaning of the external function calls and how to interpret the metadata. So a translator from DXIL -> SPIRV would need to understand the semantics of DXIL, but the translation to LLVM IR should be a nop for DXIL. |
Thanks @dmpots for details.. |
I know DXIL is still in it's infancy but would be nice if we could get DXIL from existing SPIRV shaders and viceversa SPIRV from DXIL shaders..
any interest by Microsoft on writing should a bidirectional shader translator or better to ask Khronos guys?..
thanks..
The text was updated successfully, but these errors were encountered: