| 139 | // Print device info |
| 140 | unsigned int i = 0; |
| 141 | BOOST_FOREACH(const string &prefix, prefixs) { |
| 142 | if (ImGui::TreeNode(("#" + ToString(i) + " => " + props.Get(prefix + ".name").Get<string>()).c_str())) { |
| 143 | LuxCoreApp::ColoredLabelText("Name:", "%s", props.Get(prefix + ".name").Get<string>().c_str()); |
| 144 | LuxCoreApp::ColoredLabelText("Type:", "%s", props.Get(prefix + ".type").Get<string>().c_str()); |
| 145 | LuxCoreApp::ColoredLabelText("Compute units:", "%d", props.Get(prefix + ".units").Get<unsigned int>()); |
| 146 | LuxCoreApp::ColoredLabelText("Preferred float vector width:", "%u", props.Get(prefix + ".nativevectorwidthfloat").Get<unsigned int>()); |
| 147 | LuxCoreApp::ColoredLabelText("Max. allocable memory:", "%luMBytes", (unsigned long)(props.Get(prefix + ".maxmemory").Get<unsigned long long>() / (1024 * 1024))); |
| 148 | LuxCoreApp::ColoredLabelText("Max. allocable memory block size:", "%luMBytes", (unsigned long)(props.Get(prefix + ".maxmemoryallocsize").Get<unsigned long long>() / (1024 * 1024))); |
| 149 | ImGui::TreePop(); |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | ImGui::PopStyleVar(); |
nothing calls this directly
no test coverage detected