Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

13. HLSL Basics > Summary

Summary

  • HLSL allows developers to make full use of the wide range of capabilities of the latest graphics cards.

  • In HLSL, there are two kinds of shaders: vertex shaders (which are executed once for each visible vertex in the scene) and pixel shaders (which are executed once for each pixel drawn in the scene).

  • The minimum requirement of a vertex shader is to set the position of each vertex. The minimum requirement of a pixel shader is to set the color of each pixel.

  • In HLSL, data is run first through the vertex shader, then through a rasterization process, and then through a pixel shader before finally being sent to the screen.

  • HLSL files are added to the project in the Content folder and are picked up by the content pipeline. The content pipeline compiles them, and any syntax errors will be caught at compile time.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint