creatable depth textures and render to texture

and some fixes to shutdown logic for dx11