This method retrieves a state value for an assigned texture.
HRESULT GetTextureStageState( DWORD Stage, D3DMTEXTURESTAGESTATETYPE Type, DWORD* pValue );
[in] Stage identifier of the texture to retrieve. Stage identifiers are zero-based. The maximum number of texture stage states is defined in D3DM_TEXSTAGECOUNT and the number of texture stages supported by the device is in D3DMCAPS as MaxTextureBlendStages.
[in] Texture state to retrieve. This parameter can be any member of the D3DMTEXTURESTAGESTATETYPE enumerated type.
[out] Pointer a variable to fill with the retrieved state value. The meaning of the retrieved value is determined by the Type parameter.