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

Function biggestDraw

docs/python_api/examples/renderdoc/decode_mesh.py:19–30  ·  view source on GitHub ↗
(prevBiggest, d)

Source from the content-addressed store, hash-verified

17
18# Recursively search for the drawcall with the most vertices
19def biggestDraw(prevBiggest, d):
20 ret = prevBiggest
21 if ret == None or d.numIndices > ret.numIndices:
22 ret = d
23
24 for c in d.children:
25 biggest = biggestDraw(ret, c)
26
27 if biggest.numIndices > ret.numIndices:
28 ret = biggest
29
30 return ret
31
32# Unpack a tuple of the given format, from the data
33def unpackData(fmt, data):

Callers 1

sampleCodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected