diff --git a/docs/python_api/examples/renderdoc/decode_mesh.py b/docs/python_api/examples/renderdoc/decode_mesh.py index 1cccbc036..d09ce2c6b 100644 --- a/docs/python_api/examples/renderdoc/decode_mesh.py +++ b/docs/python_api/examples/renderdoc/decode_mesh.py @@ -64,7 +64,7 @@ def unpackData(fmt, data): value = tuple((float(value[i]) if (value[i] == maxNeg) else (float(value[i]) / divisor)) for i in value) # If the format is BGRA, swap the two components - if fmt.bgraOrder: + if fmt.BGRAOrder(): value = tuple(value[i] for i in [2, 1, 0, 3]) return value @@ -241,7 +241,7 @@ def sampleCode(controller): print("Decoding mesh outputs\n\n") # Fetch the postvs data - postvs = controller.GetPostVSData(0, rd.MeshDataStage.VSOut) + postvs = controller.GetPostVSData(0, 0, rd.MeshDataStage.VSOut) # Calcualte the mesh configuration from that meshOutputs = getMeshOutputs(controller, postvs) diff --git a/docs/python_api/examples/renderdoc/decode_mesh.rst b/docs/python_api/examples/renderdoc/decode_mesh.rst index 45803aca7..4f13dd6af 100644 --- a/docs/python_api/examples/renderdoc/decode_mesh.rst +++ b/docs/python_api/examples/renderdoc/decode_mesh.rst @@ -123,7 +123,7 @@ For normalised formats - :py:attr:`~renderdoc.CompType.UNorm` and :py:attr:`~ren value = tuple((float(value[i]) if (value[i] == maxNeg) else (float(value[i]) / divisor)) for i in value) # If the format is BGRA, swap the two components - if fmt.bgraOrder: + if fmt.BGRAOrder(): value = tuple(value[i] for i in [2, 1, 0, 3]) return value