   [D3D11] Width/height of resource
  Hello everyone, After using D3DX11CreateShaderResourceViewFromFile  to create a shader resource view, is there any way to find out the dimensions of the created resource? The documentation on MSDN doesn't seem to shed much light on this, and I can't seem to find any solutions in other places.I'm guessing at some level, there's a Texture2D object hiding away, is there any way to access that interface?I will be be very grateful for any responses to this.Thanks,Tom   
Hello everyone, After using D3DX11CreateShaderResourceViewFromFile  to create a shader resource view, is there any way to find out the dimensions of the created resource? The documentation on MSDN doesn't seem to shed much light on this, and I can't seem to find any solutions in other places.I'm guessing at some level, there's a Texture2D object hiding away, is there any way to access that interface?I will be be very grateful for any responses to this.Thanks,TomA call to ID3D11ShaderResourceView::GetResource, query that resource for ID3D11Texture2D and then ID3D11Texture2D::GetDesc should get you what you're looking for.   ;  Thanks for the quick reply LegendInStone, that worked perfectly. I completely forgot about the QueryInterface method. Thanks again.   