With Visual Studio 2012, Microsoft has added a new mechanism for building shaders, using a language called DGSL (Directed Graph Shader Language). This language can be used to create very complex shaders that are still easily understandable at a high level and are thus more maintainable than shaders written in pure HLSL.
In this recipe, we’ll create a shader that applies a texture to an object and colors it.
Ensure you are running Windows 8 and start Visual Studio 2012.
Create a shader by following these steps: