Book description
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
Publisher resources
Table of contents
- HLSL and Pixel Shaders for XAML Developers
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Preface
- Foreword
- 1. Shader 101
- 2. Getting Started
- 3. Commonplace Pixel Shaders
- 4. How WPF and Silverlight Use Shaders
- 5. Using Expression Blend and Visual Studio with Shaders
-
6. Using the Shazzam Shader Editor
- UI Tour
-
Create a Custom Shader
- Exploring the HLSL Code Editor
- Compiling and Testing the Shader
- Editor Status Bar
- Exploring the Generated Code
- Changing Options
- Working with HLSL Parameters
- Testing Parameters
- Default Values for Parameters
- Shazzam Tags
- Input Parameter Types
- Influencing the .NET Type
- Multi-Input Shaders
- Shader Loader
- More Shazzam Tools
- Copying the Files into a Visual Studio Project
- Summary
- 7. HLSL in Detail
- 8. The Zen of Shader Programming
- A. Resources
- B. Shazzam Settings
- About the Author
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Copyright
Product information
- Title: HLSL and Pixel Shaders for XAML Developers
- Author(s):
- Release date: July 2012
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449325015
You might also like
book
Computer Graphics from Scratch
Computer graphics are at work everywhere today, adding eye-popping details to video games, hyper-realistic CGI to …
book
FPGA Programming for Beginners
Get started with FPGA programming using SystemVerilog, and develop real-world skills by building projects, including a …
book
Fluent C
Expert advice on C programming is hard to find. While much help is available for object-oriented …
audiobook
Brainhacker
If you feel like your brain is "glitching," or working against you, know that you're not …