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
@@ -275,6 +275,8 @@ def loadCapture(filename):
if 'pyrenderdoc' in globals():
pyrenderdoc.Replay().BlockInvoke(sampleCode)
else:
rd.InitialiseReplay(rd.GlobalEnvironment(), [])
if len(sys.argv) <= 1:
print('Usage: python3 {} filename.rdc'.format(sys.argv[0]))
sys.exit(0)
@@ -286,3 +288,5 @@ else:
controller.Shutdown()
cap.Shutdown()
rd.ShutdownReplay()