Git Product home page Git Product logo

hlslvisualstudio's Introduction

HLSL Visual Studio 2010+ Integration

Or, how do I include DirectX HLSL shader code in my project?

What is 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 DirectX SDK.

The tool will be listed as "Effect-Compiler Tool"

What is required

Visual Studio 2010 or higher or any other MSBuild compatible IDE and the June 2010 or later Direct X SDK

How to install it

For Visual Studio 2010 through 2015

Head over to the releases page and download the *.msi installer.

For Visual Studio 2017

Download it directly from the Visual Studio Marketplace

For Visual Studio 2019

Download it directly from the Visual Studio Marketplace

For Visual Studio 2022

Download it directly from the Visual Studio Marketplace

How to use it

After installation, open a project file and select BuildCustomizations as shown:

Build customization menu

When the dialog opens, check "hlsl" and you're done!

Customization List

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 tool

The source code to the tool is in the folder "BuildCustomizations" on Github. Pull requests and bug reports are encouraged.

Build prerequisite

In the extensions, install Microsoft Visual Studio Installer Projects so Visual Studio can load the *.vdproj files


License

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!

hlslvisualstudio's People

Contributors

burgerbecky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cybersys

hlslvisualstudio's Issues

"Effect" Build Action not available on C# projects and VS2019

I've installed the extension. The syntax highlighting works for .fx and .hlsl file. The code completion work as well. There is also a shader icon for .hlsl files. However I can't get the extension to compile the source hlsl file. There is no Build Action available for "Effect".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.