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

Function iterDraw

docs/python_api/examples/renderdoc/fetch_counters.py:13–21  ·  view source on GitHub ↗
(d, indent = '')

Source from the content-addressed store, hash-verified

11
12# Define a recursive function for iterating over actions
13def iterDraw(d, indent = ''):
14 global actions
15
16 # save the action by eventId
17 actions[d.eventId] = d
18
19 # Iterate over the draw's children
20 for d in d.children:
21 iterDraw(d, indent + ' ')
22
23def sampleCode(controller):
24 # Iterate over all of the root actions, so we have names for each

Callers 1

sampleCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected