(r: rd.ReplayController)
| 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 |
nothing calls this directly
no test coverage detected