From 88d005d94540e236e55153d1caca3c21d3a98183 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 27 Jul 2021 15:33:23 +0100 Subject: [PATCH] Update python examples to work with latest code --- docs/python_api/examples/renderdoc/decode_mesh.py | 2 +- docs/python_api/examples/renderdoc/save_texture.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/python_api/examples/renderdoc/decode_mesh.py b/docs/python_api/examples/renderdoc/decode_mesh.py index 3fb413136..59184af91 100644 --- a/docs/python_api/examples/renderdoc/decode_mesh.py +++ b/docs/python_api/examples/renderdoc/decode_mesh.py @@ -229,7 +229,7 @@ def sampleCode(controller): # Move to that draw controller.SetFrameEvent(draw.eventId, True) - print("Decoding mesh inputs at %d: %s\n\n" % (draw.eventId, draw.name)) + print("Decoding mesh inputs at %d: %s\n\n" % (draw.eventId, draw.GetName(controller.GetStructuredFile()))) # Calculate the mesh input configuration meshInputs = getMeshInputs(controller, draw) diff --git a/docs/python_api/examples/renderdoc/save_texture.py b/docs/python_api/examples/renderdoc/save_texture.py index 8843685dd..9b5d97822 100644 --- a/docs/python_api/examples/renderdoc/save_texture.py +++ b/docs/python_api/examples/renderdoc/save_texture.py @@ -40,7 +40,7 @@ def sampleCode(controller): filename = str(int(texsave.resourceId)) - print("Saving images of %s at %d: %s" % (filename, draw.eventId, draw.name)) + print("Saving images of %s at %d: %s" % (filename, draw.eventId, draw.GetName(controller.GetStructuredFile()))) # Save different types of texture