O'Reilly logo

Visual Studio 2013 Cookbook by Richard Banks, Jeff Martin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 therefore 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 8.1 and start Visual Studio 2013, either one of the premium versions or Express version for Windows.

How to do it…

Create a shader by performing the following steps:

  1. Create a new DirectX App project by navigating to Visual C++ | Windows Store and give it ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required