6#include "dawn/dev/descswitch.hxx"
14std::atomic_bool g_switchRequested(
false);
15std::atomic_uint8_t g_switchSlot(0);
16std::atomic_uint8_t g_activeSlot(0);
22 g_switchRequested =
true;
27 g_switchRequested =
false;
32 return g_switchRequested.load();
37 return g_switchSlot.load();
42 return g_activeSlot.load();
static uint8_t getActiveSlot()
Get currently active descriptor slot.
static void setActiveSlot(uint8_t slot)
Set currently active descriptor slot.
static void clear()
Clear pending switch request.
static uint8_t getSwitchSlot()
Get pending switch target slot.
static bool isSwitchRequested()
Check if descriptor switch is pending.
static void requestSwitch(uint8_t slot)
Request descriptor switch to a slot.
Out-of-tree user-extension hooks for Dawn.