MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / addGraph

Method addGraph

Source/Falcor/Utils/UI/Gui.cpp:1174–1188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172}
1173
1174void GuiImpl::addGraph(
1175 const char label[],
1176 Gui::GraphCallback func,
1177 void* pUserData,
1178 uint32_t sampleCount,
1179 int32_t sampleOffset,
1180 float yMin,
1181 float yMax,
1182 uint32_t width,
1183 uint32_t height
1184)
1185{
1186 ImVec2 imSize{(float)width, (float)height};
1187 ImGui::PlotLines(label, func, pUserData, (int32_t)sampleCount, sampleOffset, nullptr, yMin, yMax, imSize);
1188}
1189
1190Gui::Gui(ref<Device> pDevice, uint32_t width, uint32_t height, float scaleFactor)
1191{

Callers 1

graphMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected