mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -124,6 +124,33 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
|
||||
{
|
||||
cmdExec("app restart");
|
||||
}
|
||||
|
||||
num = caps->numGPUs;
|
||||
if (0 != num)
|
||||
{
|
||||
current = 0;
|
||||
for (uint8_t ii = 0; ii < num; ++ii)
|
||||
{
|
||||
const bgfx::Caps::GPU& gpu = caps->gpu[ii];
|
||||
|
||||
items[ii] = gpu.vendorId == BGFX_PCI_ID_AMD ? "AMD"
|
||||
: gpu.vendorId == BGFX_PCI_ID_INTEL ? "Intel"
|
||||
: gpu.vendorId == BGFX_PCI_ID_NVIDIA ? "nVidia"
|
||||
: "Unknown?"
|
||||
;
|
||||
|
||||
if (caps->vendorId == gpu.vendorId
|
||||
&& caps->deviceId == gpu.deviceId)
|
||||
{
|
||||
current = ii;
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::Combo("GPU", ¤t, items, num) )
|
||||
{
|
||||
cmdExec("app restart");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user