Add replay API initialisation/shutdown to python examples

This commit is contained in:
baldurk committed 2020-03-05 19:35:45 +00:00
1 parent bc56fd091d
commit 4e4ef40612
12 files changed
+65 -2

No files matched your search

@@ -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()