Or, how do I include Xbox 360 shader code in my project?
Copyright 2015-2022 by Rebecca Ann Heineman [email protected]
It is released under an MIT Open Source license. Please see LICENSE 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!
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 Xbox 360 SDK.
The tool will be listed as "Xbox 360 Effect Compiler Tool"
Visual Studio 2010 and the Xbox 360 XDK. Only licensed Xbox 360 developers can download the XDK. Don't ask me for it. Ask Microsoft.
Copy the contents of the "plugin" folder to the folder C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations
Find this line in your .vcxproj file <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props"/>
Insert this after it
<ImportGroup Label="ExtensionSettings"/>
<Import Project="$(VCTargetsPath)\BuildCustomizations\x360sl.props" />
</ImportGroup>
Find this line near the end of your .vcxproj file <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Insert this after it.
<ImportGroup Label="ExtensionTargets">
<Import Project="$(VCTargetsPath)\BuildCustomizations\x360sl.targets" />
</ImportGroup>
The source code to the tool is in the folder "source". It will require Burgerlib for some subroutines. https://github.com/Olde-Skuul/KitchenSink has the binaries of the library and https://github.com/Olde-Skuul/burgerlib has the source to the library.