mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
11
gpu/vk/gpu_choice.h
Normal file
11
gpu/vk/gpu_choice.h
Normal file
@@ -0,0 +1,11 @@
|
||||
/* Which GPU the Insert menu's GPU device row asks for (vk_main.cpp's pick_device). RX_VK_DEVICE, when set, wins over it
|
||||
there. */
|
||||
#pragma once
|
||||
|
||||
namespace mkwvk::gpu_choice {
|
||||
|
||||
/// The row's choice as a position in the Vulkan 1.3 devices (0-based), or -1 for Auto. menu: opts.gpu_device (0 Auto,
|
||||
/// n the n-th usable device); usable: how many there are now. A choice past them (a GPU taken out since) is Auto.
|
||||
inline int menu_device(int menu, int usable) { return menu > 0 && menu <= usable ? menu - 1 : -1; }
|
||||
|
||||
} // namespace mkwvk::gpu_choice
|
||||
Reference in New Issue
Block a user