HLSL and Pixel Shaders for XAML Developers

Overview

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 ...

See more details below
Other sellers (Paperback)
  • All (10) from $7.94   
  • New (7) from $9.97   
  • Used (3) from $7.94   
HLSL and Pixel Shaders for XAML Developers

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$8.49
BN.com price
(Save 15%)$9.99 List Price

Overview

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
Read More Show Less

Product Details

  • ISBN-13: 9781449319847
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 7/18/2012
  • Pages: 204
  • Product dimensions: 9.10 (w) x 6.90 (h) x 0.60 (d)

Meet the Author

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).

Read More Show Less

Table of Contents

Preface;
Who This Book Is For;
What You Need to Use This Book;
Contents of This Book;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Acknowledgments;
Foreword;
Chapter 1: Shader 101;
1.1 Why Should XAML Developers Learn HLSL?;
1.2 The Tale of the Shader;
1.3 HLSL and DirectX;
1.4 Understanding the Graphics Pipeline;
1.5 XAML and Shaders;
1.6 Summary;
Chapter 2: Getting Started;
2.1 Setting Up Your Development Computer;
2.2 Choosing a Shader Compiler;
2.3 Other Tools to Consider;
2.4 A First Shader Project;
2.5 Custom Shader;
2.6 Summary;
Chapter 3: Commonplace Pixel Shaders;
3.1 A Word About Pseudocode;
3.2 Color Modification;
3.3 Distortion and Displacement;
3.4 Blurs;
3.5 Generative Effects;
3.6 Multiple Inputs;
3.7 Sampler Transition;
3.8 Texture Map;
3.9 Color Combination;
3.10 Practical Uses for Shader Effects;
3.11 Summary;
Chapter 4: How WPF and Silverlight Use Shaders;
4.1 Framework Effects;
4.2 Nested Effects;
4.3 Expression Blend Effects;
4.4 Custom Effects;
4.5 Summary;
Chapter 5: Using Expression Blend and Visual Studio with Shaders;
5.1 Creating a Project;
5.2 Visual Studio Editor;
5.3 Using Custom Effects in Blend;
5.4 Transition Effects in Blend;
5.5 Summary;
Chapter 6: Using the Shazzam Shader Editor;
6.1 UI Tour;
6.2 Create a Custom Shader;
6.3 Summary;
Chapter 7: HLSL in Detail;
7.1 Parallel Processing in Shaders;
7.2 The Relationship Between DirectX and the GPU;
7.3 Understanding Registers;
7.4 Basic Structure of an HLSL Program;
7.5 Type Casting;
7.6 Shader Inputs;
7.7 Other Code Constructs;
7.8 Built-in Functions;
7.9 Summary;
Chapter 8: The Zen of Shader Programming;
8.1 Zen of Pixel Programming;
8.2 Colors;
8.3 Summary;
Resources;
Books;
Programming;
Premultiplied Alpha Blending;
Convolution;
Noise;
Tools;
Shazzam Settings;
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)