CHAPTER 5

SHADER SETUP IN DIRECTX

ERIC SEVAREID

Dealing with network executives is like being nibbled to death by ducks.

This section assumes that you have had some experience with using DirectX, at least with getting a Direct3D device loaded. (A device you initialized to interface to the underlying hardware.) You should also understand the discussion in Chapter 2 on exactly what we mean by a vertex. DirectX 8 introduced the concept of a vertex element stream, so now all data is fed to the rendering engine via one or more vertex element streams. The basics of getting ready to use shaders (or the FFP rendering) is as follows:

1. Create a D3D device.

2. Check to make sure all features you need are supported in that device.

3. Create your ...

Get Real-Time Shader Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.