HLSL Visual Studio 2010+ IntegrationOr, how do I include DirectX HLSL shader code in my project? What is HLSL Visual Studio 2010+ IntegrationThis is a plug in for Visual Studio 2010 or higher that will allow files with the HLSL extension to automatically be compiled with the fxc tool found in the DirectX SDK. The tool will be listed as "Effect-Compiler Tool" What is requiredVisual Studio 2010 or higher or any other MSBuild compatible IDE and the June 2010 or later Direct X SDK How to install itFor Visual Studio 2010 through 2015Head over to the releases page and download the *.msi installer. For Visual Studio 2017Download it directly from the Visual Studio Marketplace For Visual Studio 2019 and laterDownload it directly from the Visual Studio Marketplace How to use itAfter installation, open a project file and select BuildCustomizations as shown: When the dialog opens, check "hlsl" and you're done! All files that end with the suffix of *.hlsl will automatically map to this tool, however you can select the compiler by right clicking any source file in the project and select "Effect-Compiler Tool". This is great/sucks! But, how can I change/rewrite/steal the toolThe source code to the tool is in the folder "BuildCustomizations" on Github. Pull requests and bug reports are encouraged. LicenseCopyright 2015-2019 by Rebecca Ann Heineman becky@burgerbecky.com It is released under an MIT Open Source license. Please see LICENSE.txt for license details. Yes, you can use it in a commercial title without paying anything, just give me a credit. Please? It's not like I'm asking you for money! |