From 6ded6187dc66954f8386f4111edad1233a6de578 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 28 Apr 2025 11:34:18 +0100 Subject: [PATCH] Update python example code using old API member --- docs/python_api/examples/renderdoc/fetch_shader.py | 2 +- docs/python_api/examples/renderdoc/fetch_shader.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/python_api/examples/renderdoc/fetch_shader.py b/docs/python_api/examples/renderdoc/fetch_shader.py index c005b7431..d24553be9 100644 --- a/docs/python_api/examples/renderdoc/fetch_shader.py +++ b/docs/python_api/examples/renderdoc/fetch_shader.py @@ -16,7 +16,7 @@ def printVar(v, indent = ''): valstr += indent + ' ' for c in range(0, v.columns): - valstr += '%.3f ' % v.value.fv[r*v.columns + c] + valstr += '%.3f ' % v.value.f32v[r*v.columns + c] if r < v.rows-1: valstr += "\n" diff --git a/docs/python_api/examples/renderdoc/fetch_shader.rst b/docs/python_api/examples/renderdoc/fetch_shader.rst index babd19a2c..3d4a3f127 100644 --- a/docs/python_api/examples/renderdoc/fetch_shader.rst +++ b/docs/python_api/examples/renderdoc/fetch_shader.rst @@ -59,7 +59,7 @@ Since constants can contain structs of other constants, we want to define a recu valstr += indent + ' ' for c in range(0, v.columns): - valstr += '%.3f ' % v.value.fv[r*v.columns + c] + valstr += '%.3f ' % v.value.f32v[r*v.columns + c] if r < v.rows-1: valstr += "\n"