Ok, I am using SharpDX with DirectX 11.1.
I need to draw some text onto some textures for use on some 3D objects, not every frame, just upon initialization. I currently have debugging text (FPS counter etc.) working in my app that obtains a dxgi surface from my swap chain like so:
surface = swapChain.GetBackBuffer<dxgi.Surface>(0);
Now, to get a surface from a blank texture for text drawing, as far as I can tell I would do this:
surface = texture.QueryInterface<dxgi.Surface>();
However, since Texture2Ds can have mip levels and even texture arrays this seems rather ambiguous. Does QueryInterface merely assume the top level mip and top index of the array? I don't even know if I'm on the right track here.