Book Image

Visual Studio 2015 Cookbook - Second Edition

By : Jeff Martin
Book Image

Visual Studio 2015 Cookbook - Second Edition

By: Jeff 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 (17 chapters)
Visual Studio 2015 Cookbook Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Using the Visual Studio Graphics Diagnostics


One of the hard things to do in DirectX applications is to determine the cause of a visual glitch or bug on the screen. Despite the best efforts of developers to avoid bugs, there are many websites featuring screenshots taken by gamers of weird things happening in a game.

Visual Studio addresses some of the debugging issues for DirectX applications by including a new Graphics Diagnostics toolset that lets you look at pixel history to determine just how a specific pixel came to be rendered on the screen. Let's see how it works.

Getting ready

Simply start VS2015 Community or one of the premium editions on Windows 10, and you're ready to go.

Tip

Unlike VS2013, a paid version is no longer required to use the Graphics Diagnostics toolset.

How to do it...

For this recipe, perform the following steps:

  1. Create a new DirectX 12 App (Universal Windows) project by navigating to Visual C++ | Windows, and leave the default name as it is.

  2. The project template includes...