Rendering to texture - ClearRenderTargetView() works, but none objects are rendered to texture (rendering to screen works fine)
问题 I try to render the scene to texture which should be then displayed in corner of the screen. I though that I can do that this way: Render the scene (my Engine::render() method that will set shaders and make draw calls) - works ok . Change render target to the texture. Render the scene again - does not work. The context->ClearRenderTargetView(texture->getRenderTargetView(), { 1.0f, 0.0f, 0.0f, 1.0f } ) does set my texture to red color (for scene in step 1. I use different color), but none