Learn Vertex and Pixel Shader Programming with DirectX 9

Front Cover
Wordware Publishing, Inc., 2004 - Business & Economics - 285 pages
Because graphics systems for video games and game console hardware have become more complex, graphics applications must also advance. This is where programmable vertex and pixel shaders come in. This book shows how to write assembly language for programming the vertex shader and pixel shader hardware using DirectX 9 and covers the fundamentals of programming vectors using SIMD methodology in conjunction with the Direct3D 9 application interfaces. Features: Find out about the valid vertex shader and pixel shader instruction sets; Learn how branching and branchless code can be used for flow control; Understand the vertex shader instructions that support matrices; Discover how to use quaternions to accurately represent rotating objects; Use texturing with both vertex and pixel shaders, including bump mapping.
 

Contents

Introduction
1
Part I Vertex Shaders
33
Part II Pixel Shaders
181
Epilogue
249
Appendix A ShadersOpcode Ordered
251
Appendix B ShadersMnemonic Ordered
255
Appendix C Instruction Dissection
259
Appendix D FloatingPoint 101
267
Glossary
273
References
277
Index
281
Copyright

Common terms and phrases