Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Visual Studio 2015 Cookbook
  • Table Of Contents Toc
Visual Studio 2015 Cookbook

Visual Studio 2015 Cookbook - Second Edition

By : Martin
close
close
Visual Studio 2015 Cookbook

Visual Studio 2015 Cookbook

By: Martin

Overview of this book

Visual Studio 2015 is the premier tool for developers targeting the Microsoft platform. Learning how to effectively use this technology can enhance your productivity while simplifying your most common tasks, allowing you more time to focus on your project. Visual Studio 2015 is packed with improvements that increase productivity, and this book walks you through each one in succession to help you smooth your workflow and get more accomplished. From customization and the interface to code snippets and debugging, the Visual Studio upgrade expands your options — and this book is your fast-track guide to getting on board quickly. Visual Studio 2015 Cookbook will introduce you to all the new areas of Visual Studio and how they can quickly be put to use to improve your everyday development tasks. With this book, you will learn not only what VS2015 offers, but what it takes to put it to work for your projects.
Table of Contents (12 chapters)
close
close
11
Index

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.

  2. Right-click on the project, select Add | New Item, and then choose Graphics | Visual Shader Graph (.dgsl). Leave the name as the default one, Shader.dgsl, and click on Add.

  3. The shader will be added to the project, and the design surface will be displayed...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Visual Studio 2015 Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon