diff --git a/.vscode/launch.json b/.vscode/launch.json index 946eefe..99d00a1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -101,27 +101,27 @@ "preLaunchTask": "examples" }, { - "name": "tests (Debug)", + "name": "raytraced_triangle (Debug)", "type": "cppvsdbg", "request": "launch", - "program": "${workspaceFolder}/target/debug/deps/tests-661041b177eb9ae4.exe", - "args": ["--test-threads=1", "--nocapture"], + "program": "${workspaceFolder}/target/debug/examples/raytraced_triangle.exe", + "args": [], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], "console": "externalTerminal", + "preLaunchTask": "examples" }, { - "name": "raytraced_triangle (Debug)", + "name": "tests (Debug)", "type": "cppvsdbg", "request": "launch", - "program": "${workspaceFolder}/target/debug/examples/raytraced_triangle.exe", - "args": [], + "program": "${workspaceFolder}/target/debug/deps/tests-661041b177eb9ae4.exe", + "args": ["--test-threads=1", "--nocapture"], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], "console": "externalTerminal", - "preLaunchTask": "examples" }, ] } \ No newline at end of file diff --git a/src/client.rs b/src/client.rs index 757694a..a3e6c0d 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1053,6 +1053,13 @@ impl Client where D: gfx::Device, A: os::App, D::RenderPipeline: gfx } } + // cleanup heaps + self.pmfx.shader_heap.cleanup_dropped_resources(&self.swap_chain); + self.device.cleanup_dropped_resources(&self.swap_chain); + + // + self.device.report_live_objects()?; + Ok(()) } } \ No newline at end of file