Fix code snippet in the fetch_shader.rst

Make it the same as in the fetch_shader.py
This commit is contained in:
Kirill Kozlov
2026-06-30 16:35:36 +05:00
committed by Baldur Karlsson
parent ae08f97f6f
commit 39ecdedcc1
@@ -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 <descriptor-abstraction>`. 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`.