Creating a shader using DGSL

Starting with Visual Studio 2012, Microsoft has added a new mechanism for building shaders using a language called Directed Graph Shader Language (DGSL). 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.

Getting ready

Ensure that you are running Windows 10, and start either VS2015 Community or one of the premium versions.

How to do it…

Create a shader by performing the following steps:

  1. Create a new DirectX 12 App (Universal Windows) project by navigating to Visual C++ | Windows, and give it a name of your choice. ...

Get Visual Studio 2015 Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.