Or, how do I include DirectX HLSL shader code in my project?
This 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"
Visual Studio 2010 or higher or any other MSBuild compatible IDE and the June 2010 or later Direct X SDK
Head over to the releases page and download the *.msi installer.
Download it directly from the Visual Studio Marketplace
Download it directly from the Visual Studio Marketplace
Download it directly from the Visual Studio Marketplace
After 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".
The source code to the tool is in the folder "BuildCustomizations" on Github. Pull requests and bug reports are encouraged.
In the extensions, install Microsoft Visual Studio Installer Projects so Visual Studio can load the *.vdproj files
Copyright 2015-2022 by Rebecca Ann Heineman [email protected]
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!