HLSL and Pixel Shaders for XAML Developers

Front Cover
"O'Reilly Media, Inc.", 2012 - Computers - 75 pages

Pixel shaders are some of the more powerful graphic tools available for XAML programmers, but shader development bears little resemblance to traditional .NET programming. With this hands-on book, you'll not only discover how to use existing shaders in your Windows Presentation Foundation (WPF) and Silverlight applications, you'll also learn how create your own effects with XAML and Microsoft's HLSL shading language.

In the process, you'll write, compile, and test custom XAML shaders with the Shazzam Shader Editor, a free utility developed by author Walt Ritscher. The book includes XAML and C# sample code, and Shazzam contains all of the sample shaders discussed.

  • Learn how shaders help you extend the GPU's rendering capabilities
  • Explore prevailing shader types, such as color modification, blurring, and spatial transformation
  • Get a quick tour of the shader features, and use pre-built effects on image elements in your application
  • Examine the XAML ShaderEffect class to understand how WPF and Silverlight use shaders
  • Learn about the shader-specific tools available in Visual Studio and Expression Blend
  • Get up to speed on HLSL basics and learn how to create a variety of graphics effects
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Chapter 1 Shader 101
1
Chapter 2 Getting Started
11
Chapter 3 Commonplace Pixel Shaders
29
Chapter 4 How WPF and Silverlight Use Shaders
57
Chapter 5 Using Expression Blend and Visual Studio with Shaders
85
Chapter 6 Using the Shazzam Shader Editor
103
Chapter 7 HLSL in Detail
125
Chapter 8 The Zen of Shader Programming
149
Appendix A Resources
181
Appendix B Shazzam Settings
183
Copyright

Other editions - View all

Common terms and phrases

About the author (2012)

Walt's enthusiasm for crafting software interfaces blossomed early. Just a few days after discovering how to make pixels move around the screen of a borrowed computer he was devouring books on the topic of computer graphics and UI design. Now he travels the world speaking at software conferences and teaching a diverse portfolio of programming topics for corporate clients. On the consulting side he continues to work with customers like Microsoft, HP, Intel, and Intuit and enjoys being part of the Wintellect consultant group. Recently he has entered the video training market producing .NET titles for Lynda.com He writes for several publications including Code Magazine and TechTarget.com. His current UI obsession revolves around the Windows 8 Metro, Silverlight, Surface and WPF APIs. You can find his blog at blog.wpfwonderland.com. Walt is also a Microsoft MVP and author of the free Shazzam WPF Shader utility (shazzam-tool.com).

Bibliographic information