public override void SetTextureCoordSet( int stage, int index )
{
// if vertex shader is being used, stage and index must match
if (vertexProgramBound)
index = stage;
// Record settings
_texStageDesc[ stage ].coordIndex = index;
SetTextureStageState( stage, TextureStage.TexCoordIndex,
( D3DHelper.ConvertEnum( _texStageDesc[ stage ].autoTexCoordType,
_deviceManager.ActiveDevice.D3D9DeviceCaps ) | index ) );
}