From c8fcdbae05d0948741e4f9f78e6e79f2bbc0d794 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 14 Sep 2020 15:58:20 +0100 Subject: [PATCH] Update fetch_shader python example to latest API --- docs/python_api/examples/renderdoc/fetch_shader.py | 2 +- docs/python_api/examples/renderdoc/fetch_shader.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/python_api/examples/renderdoc/fetch_shader.py b/docs/python_api/examples/renderdoc/fetch_shader.py index f5b44ce87..f5f5c01d9 100644 --- a/docs/python_api/examples/renderdoc/fetch_shader.py +++ b/docs/python_api/examples/renderdoc/fetch_shader.py @@ -29,7 +29,7 @@ def printVar(v, indent = ''): def sampleCode(controller): print("Available disassembly formats:") - targets = controller.GetDisassemblyTargets() + targets = controller.GetDisassemblyTargets(True) for disasm in targets: print(" - " + disasm) diff --git a/docs/python_api/examples/renderdoc/fetch_shader.rst b/docs/python_api/examples/renderdoc/fetch_shader.rst index 045574249..d97987226 100644 --- a/docs/python_api/examples/renderdoc/fetch_shader.rst +++ b/docs/python_api/examples/renderdoc/fetch_shader.rst @@ -3,14 +3,14 @@ Fetch Shader details In this example we will fetch the disassembly for a shader and a set of constant values. -When disassembling a shader there may be more than one possible representation available, so we first enumerate the formats that are available using :py:meth:`~renderdoc.ReplayController.GetDisassemblyTargets` before selecting a target to disassemble to. The first target is always a reasonable default, and there will be at least one: +When disassembling a shader there may be more than one possible representation available, so we first enumerate the formats that are available using :py:meth:`~renderdoc.ReplayController.GetDisassemblyTargets` before selecting a target to disassemble to. The first target is always a reasonable default, and there will be at least one. :py:meth:`~renderdoc.ReplayController.GetDisassemblyTargets` takes a parameter indicating whether the pipeline state object will be available - some disassembly targets require the full pipeline and are not available when disassembling only a shader in isolation: .. highlight:: python .. code:: python print("Available disassembly formats:") - targets = controller.GetDisassemblyTargets() + targets = controller.GetDisassemblyTargets(True) for disasm in targets: print(" - " + disasm)