80 likes | 216 Views
Programmable Graphics Hardware Languages. A Survey of Cg, GLSL and HLSL Oliver Wang. Why programmable hardware?. Demand for realism RenderMan and Pixar The Matrix Playstation 2. Why programmable hardware ?. Online vs. Offline Moore’s law and graphics Speed and Realism
E N D
Programmable Graphics Hardware Languages A Survey of Cg, GLSL and HLSL Oliver Wang
Why programmable hardware? • Demand for realism • RenderMan and Pixar • The Matrix • Playstation 2
Why programmable hardware? • Online vs. Offline • Moore’s law and graphics • Speed and Realism • Vertex and Fragment Shaders
What are shaders? • Small stream programs • Fixed-pipeline vs. Programmable shaders • Provide creative flexibility
Shading language design goals • Ease of programming • Portability • Support hardware functionality • Expandable • Performance • General purpose?
Main C differences • Sequential vs. Stream • Program communication • Indirect addressing • Instruction set • Small programs