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

Function get_minmax

docs/python_api/ui_extension_tutorial/__init__.py:119–124  ·  view source on GitHub ↗
(r: rd.ReplayController)

Source from the content-addressed store, hash-verified

117 texname = ctx.GetResourceName(texid)
118
119 def get_minmax(r: rd.ReplayController):
120 minvals, maxvals = r.GetMinMax(texid, rd.Subresource(), rd.CompType.Typeless)
121
122 msg = '{} has min {:.4} and max {:.4} in red'.format(texname, minvals.floatValue[0], maxvals.floatValue[0])
123
124 mqt.InvokeOntoUIThread(lambda: ctx.Extensions().MessageDialog(msg, "Extension message"))
125
126 ctx.Replay().AsyncInvoke('', get_minmax)
127

Callers

nothing calls this directly

Calls 5

SubresourceMethod · 0.80
GetMinMaxMethod · 0.45
formatMethod · 0.45
InvokeOntoUIThreadMethod · 0.45
MessageDialogMethod · 0.45

Tested by

no test coverage detected