mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-15 14:30:35 +00:00
Add replay API initialisation/shutdown to python examples
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user