sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.68k stars 642 forks source link

Add DXCompiler #1119

Open Perksey opened 5 years ago

Perksey commented 5 years ago

DXCompiler is a (relatively) new library for compiling HLSL into DXIL, to then be used by DirectX. It can also compile HLSL into SPIR-V, which can then be compiled into a variety of other shading languages.

My proposal is that the SharpDX team introduces this package to the SharpDX stack, as there currently is no other C# bindings library for DXCompiler.

Perksey commented 5 years ago

(dxcompiler.dll is included with the Windows SDKs, fyi)

amerkoleci commented 5 years ago

I have dxc compiler in my game framework https://github.com/amerkoleci/vortice/blob/master/src/assets/Vortice.Assets/Graphics/ShaderCompiler.cs

Perksey commented 5 years ago

Oh awesome! Seeing as it's MIT, is it alright if I use it in my project? (having retained the copyright info of course)

amerkoleci commented 5 years ago

Of course, just keep the license head or clarify the usage, for me is fine :)

Perksey commented 5 years ago

Awesome, I'll take a few snippets but I'll probably end up porting all of the native interop to AdvancedDLSupport.