d3d9.dllSetPerTexelAlbedo
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPRTEngine::SetPerTexelAlbedo Method


Sets an albedo value for each texel, overwriting previous albedo values.

Syntax

HRESULT SetPerTexelAlbedo(      

    LPDIRECT3DTEXTURE9 pAlbedoTexture,     UINT NumChannels,     LPD3DXTEXTUREGUTTERHELPER pGH );

Parameters

pAlbedoTexture
[in] Pointer to an IDirect3DTexture9 texture object in which to store albedo values.
NumChannels
[in] Number of color channels to set. Set to 1 to specify gray materials (R = G = B), or 3 to enable color bleeding effects.
pGH
[in] Optional pointer to an ID3DXTextureGutterHelper object. If not provided, a texture gutter helper object is created and destroyed internally.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be one of the following:

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DERR_NOTAVAILABLEThis device does not support the queried technique.
D3DERR_OUTOFVIDEOMEMORYDirect3D does not have enough display memory to perform the operation.
D3DERR_WASSTILLDRAWINGThe previous blit operation that is transferring information to or from this surface is incomplete.
E_OUTOFMEMORYDirect3D could not allocate sufficient memory to complete the call.




© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.