MCPcopy Create free account
hub / github.com/RenderKit/embree / TryGetMapData

Method TryGetMapData

tutorials/common/imgui/imgui_internal.h:675–675  ·  view source on GitHub ↗

It is the map we need iterate to find valid items, since we don't have "alive" storage anywhere

Source from the content-addressed store, hash-verified

673 int GetBufSize() const { return Buf.Size; }
674 int GetMapSize() const { return Map.Data.Size; } // It is the map we need iterate to find valid items, since we don't have "alive" storage anywhere
675 T* TryGetMapData(ImPoolIdx n) { int idx = Map.Data[n].val_i; if (idx == -1) return NULL; return GetByIndex(idx); }
676#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
677 int GetSize() { return GetMapSize(); } // For ImPlot: should use GetMapSize() from (IMGUI_VERSION_NUM >= 18304)
678#endif

Callers 3

ShowMetricsWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected