/x360slvisualstudio

Visual Studio Plug in to link precompiled Xbox 360 HLSL source code via a generated C header

Primary LanguagePythonOtherNOASSERTION

Xbox 360 HLSL Visual Studio 2010+ Integration

Or, how do I include Xbox 360 shader code in my project?

Copyright 2015-2022 by Rebecca Ann Heineman becky@burgerbecky.com

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!

What is Xbox 360 HLSL Visual Studio 2010+ Integration?

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"

What does it require?

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.

How do I use it?

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>

This is great/sucks! But, how can I change/rewrite/steal the tool?

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.