Microsoft DirectX 8.1 (Visual Basic)

PixelShader Sample

Description

This sample shows some effects that can be achieved using pixel shaders. Each of the eight thumbnails is the result of using a different pixel shader to render a rectangle. Pixel shaders use a set of instructions, executed by the 3-D device on a per-pixel basis, that can affect the color of the pixel based on a variant of inputs. Pixel shaders can be used in place of the texture stage pipeline.

Not all cards support all features for pixel shaders. For more information on pixel shaders, see Pixel Shaders.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\Direct3D\PixelShader

Executable: (SDK root)\Samples\Multimedia\VBSamples\Direct3D\Bin

Programming Notes

This sample uses common Microsoft® DirectX® code that consists of programming elements such as helper functions. This code is shared with other samples on the DirectX SDK. You can find the common source code in (SDK root)\Samples\Multimedia\VBSamples.