   Getting size of rendered texture
  I've been looking for a while, how can I get the size of a texture when it has been rendered onto the screen?For example, if I have : RECT* sourceRect = new RECT();sourceRect->x = etc...........ID3DXSPRITE::Draw(pTexture, sourceRect, 0, position, color);I've tried to use the sourceRect passed in but have been unable to get a good size.   
  Hi,LPDIRECT3DTEXTURE9 yourRenderTargetTexture;LPDIRECT3DSURFACE9 yourRenderTargetTextureLevel0Surface;//... Assuming you've done setting your texture's level#0 surface as device render target job.//... Here's how we can get the size of RT.D3DSURFACE_DESC desc;yourRenderTargetTextureLevel0Surface->GetDesc (&desc);UINT width = desc.Width;UINT height= desc.Height;//... Or, directly getting from texture (not surface)D3DSURFACE_DESC desc2;yourRenderTargetTexture->GetLevelDesc (0, &desc2);UINT width2 = desc2.Width;UINT height2= desc2.Height;Hope this helps.Regards,Rohat.   