From 39ecdedcc101d13e9244ed5bdb056a33718e8ea8 Mon Sep 17 00:00:00 2001 From: Kirill Kozlov Date: Tue, 30 Jun 2026 16:35:36 +0500 Subject: [PATCH] Fix code snippet in the fetch_shader.rst Make it the same as in the fetch_shader.py --- docs/python_api/examples/renderdoc/fetch_shader.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/python_api/examples/renderdoc/fetch_shader.rst b/docs/python_api/examples/renderdoc/fetch_shader.rst index 3d4a3f127..cad13da6c 100644 --- a/docs/python_api/examples/renderdoc/fetch_shader.rst +++ b/docs/python_api/examples/renderdoc/fetch_shader.rst @@ -36,7 +36,7 @@ For the purposes of this example we use the API abstraction :py:class:`~renderdo cb = state.GetConstantBlock(rd.ShaderStage.Pixel, 0, 0) print("Pixel shader:") - print(controller.DisassembleShader(pipe, ps.reflection, target)) + print(controller.DisassembleShader(pipe, ps, target)) Now we want to display the constants bound to this shader. Shader bindings is an area that diverges quite a lot between the APIs, and RenderDoc's abstraction over this is detailed in :ref:`more detail `. For now, we'll simply select the first constant buffer in this shader and fetch the constants for it with :py:meth:`~renderdoc.ReplayController.GetCBufferVariableContents`.