So far we have implemented some simple color manipulation techniques. Now we will create an image blur effect using a filter kernel. This technique will make more effective use of the compute shader thread groups by utilizing group shared memory and thread synchronization. Convolution filters can be used to apply a wide range of image processing effects, and among these effects, a number of them are separable, meaning that a 2D filter can be split into two 1D filters: the first representing the horizontal aspect of the filter, and the second representing the filter to be applied to the image vertically. These two 1D filters can then be processed in any order to produce the same result as the original 2D filter; however, the total number of texture reads required is significantly reduced.
Direct3D Rendering Cookbook
Direct3D Rendering Cookbook
Overview of this book
Table of Contents (19 chapters)
Direct3D Rendering Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Started with Direct3D
Rendering with Direct3D
Rendering Meshes
Animating Meshes with Vertex Skinning
Applying Hardware Tessellation
Adding Surface Detail with Normal and Displacement Mapping
Performing Image Processing Techniques
Incorporating Physics and Simulations
Rendering on Multiple Threads and Deferred Contexts
Implementing Deferred Rendering
Integrating Direct3D with XAML and Windows 8.1
Further Reading
Index
Customer Reviews