MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Maximum

Method Maximum

Source/Engine/Core/Collections/SamplesBuffer.h:164–174  ·  view source on GitHub ↗

Gets the maximum value in the buffer.

Source from the content-addressed store, hash-verified

162 /// Gets the maximum value in the buffer.
163 /// </summary>
164 T Maximum() const
165 {
166 ASSERT(HasItems());
167 T result = _data[0];
168 for (int32 i = 1; i < _count; i++)
169 {
170 if (_data[i] > result)
171 result = _data[i];
172 }
173 return result;
174 }
175
176 /// <summary>
177 /// Gets the average value in the buffer.

Callers 2

RenderMethod · 0.80
UpdateResourceFunction · 0.80

Calls 1

HasItemsFunction · 0.85

Tested by

no test coverage detected