mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 16:28:33 -05:00
Gpu: Implement Hardware Interrupt Manager and manage GPU interrupts
This commit is contained in:
committed by
FernandoS27
parent
e0027eba85
commit
8942047d41
24
src/core/hardware_interrupt_manager.h
Normal file
24
src/core/hardware_interrupt_manager.h
Normal file
@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "core/core_timing.h"
|
||||
|
||||
namespace Core {
|
||||
class System;
|
||||
}
|
||||
|
||||
namespace Core::Hardware {
|
||||
|
||||
class InterruptManager {
|
||||
public:
|
||||
InterruptManager(Core::System& system);
|
||||
~InterruptManager() = default;
|
||||
|
||||
void InterruptGPU(const u32 event_index);
|
||||
|
||||
private:
|
||||
Core::System& system;
|
||||
Core::Timing::EventType* gpu_interrupt_event{};
|
||||
};
|
||||
|
||||
} // namespace Core::Hardware
|
Reference in New Issue
Block a user