IDirect3DRMTexture::SetShades

HRESULT SetShades(DWORD ulShades);

Sets the maximum number of shades to use for each color for the texture when rendering. This method is required only in the ramp color model.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

ulShades

New number of shades. This value must be a power of 2. The default value is 16.