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
Unity 2018 Shaders and Effects Cookbook
Bring realism to your games by mastering post-processing effects and advanced shading techniques in Unity 2018 …
book
Real-Time Shader Programming
Now that PC users have entered the realm of programmable hardware, graphics programmers can create 3D …
book
Objective-C Quick Syntax Reference
The is a condensed code and syntax reference to the popular Objective-C programming language, which is …
book
Physically Based Shader Development for Unity 2017: Develop Custom Lighting Systems
Benefit from the latest rendering tech developments, currently covered only in papers and talks from Siggraph, …