DiligentGraphics / DiligentSamples

Sample projects demonstrating the usage of Diligent Engine
http://diligentgraphics.com/diligent-engine/samples/
Apache License 2.0
320 stars 80 forks source link

Set render targets before clearing and drawing #73

Closed FlightBlaze closed 2 years ago

FlightBlaze commented 2 years ago

In tutorial 1 i added SetRenderTargets before clearing targets. Without this line of code i get the error: E/Diligent Engine: Diligent Engine: ERROR: Debug assertion failed in PrepareForDraw(), file DeviceContextVkImpl.cpp, line 699: No render pass is active while executing draw command

TheMostDiligent commented 2 years ago

Can you post the steps to reproduce the problem? The render targets are set by the SampleApp before calling the Render() function, for all tutorials: https://github.com/DiligentGraphics/DiligentSamples/blob/master/SampleBase/src/SampleApp.cpp#L799