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

Function biggestDraw

docs/python_api/examples/renderdoc/save_texture.py:11–22  ·  view source on GitHub ↗
(prevBiggest, d)

Source from the content-addressed store, hash-verified

9
10# Recursively search for the drawcall with the most vertices
11def biggestDraw(prevBiggest, d):
12 ret = prevBiggest
13 if ret == None or d.numIndices > ret.numIndices:
14 ret = d
15
16 for c in d.children:
17 biggest = biggestDraw(ret, c)
18
19 if biggest.numIndices > ret.numIndices:
20 ret = biggest
21
22 return ret
23
24def sampleCode(controller):
25 # Find the biggest drawcall in the whole capture

Callers 1

sampleCodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected