Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.SetPixelShader

Sets the current pixel shader to a previously created pixel shader.

object.SetPixelShader( _ 
    PixelShaderHandle As Long)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
PixelShaderHandle
Handle to the pixel shader, specifying the pixel shader to set. The value for this parameter can be the handle returned by Direct3DDevice8.CreatePixelShader.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.GetPixelShader