MCPcopy Create free account
hub / github.com/baldurk/renderdoc / printVar

Function printVar

docs/python_api/examples/renderdoc/fetch_shader.py:10–27  ·  view source on GitHub ↗
(v, indent = '')

Source from the content-addressed store, hash-verified

8rd = renderdoc
9
10def printVar(v, indent = ''):
11 print(indent + v.name + ":")
12
13 if len(v.members) == 0:
14 valstr = ""
15 for r in range(0, v.rows):
16 valstr += indent + ' '
17
18 for c in range(0, v.columns):
19 valstr += '%.3f ' % v.value.f32v[r*v.columns + c]
20
21 if r < v.rows-1:
22 valstr += "\n"
23
24 print(valstr)
25
26 for v in v.members:
27 printVar(v, indent + ' ')
28
29def sampleCode(controller):
30 print("Available disassembly formats:")

Callers 1

sampleCodeFunction · 0.85

Calls 2

printFunction · 0.85
rangeFunction · 0.50

Tested by

no test coverage detected