Add replay API initialisation/shutdown to python examples

This commit is contained in:
baldurk
2020-03-05 13:32:06 +00:00
parent bc56fd091d
commit 4e4ef40612
12 changed files with 65 additions and 2 deletions
@@ -1,5 +1,7 @@
import renderdoc as rd
rd.InitialiseReplay(rd.GlobalEnvironment(), [])
# Open a capture file handle
cap = rd.OpenCaptureFile()
@@ -26,3 +28,5 @@ print("%d top-level drawcalls" % len(controller.GetDrawcalls()))
controller.Shutdown()
cap.Shutdown()
rd.ShutdownReplay()