mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
36 lines
1.3 KiB
C++
36 lines
1.3 KiB
C++
#ifndef EMULATOR_INCLUDE_EMULATOR_GRAPHICS_GRAPHICSRUN_H_
|
|
#define EMULATOR_INCLUDE_EMULATOR_GRAPHICS_GRAPHICSRUN_H_
|
|
|
|
#include "common/abi.h"
|
|
#include "common/common.h"
|
|
|
|
namespace Libs::Graphics {
|
|
|
|
class CommandProcessor;
|
|
|
|
class GraphicsRunSubmissionLock final {
|
|
public:
|
|
GraphicsRunSubmissionLock();
|
|
~GraphicsRunSubmissionLock();
|
|
KYTY_CLASS_NO_COPY(GraphicsRunSubmissionLock);
|
|
};
|
|
|
|
void GraphicsRunInit();
|
|
|
|
void GraphicsRunSubmit(uint32_t* cmd_draw_buffer, uint32_t num_draw_dw, uint32_t* cmd_const_buffer,
|
|
uint32_t num_const_dw, bool trigger_agc_interrupt_on_done = false);
|
|
void GraphicsRunSubmitCompute(uint32_t queue, uint32_t* cmd_buffer, uint32_t num_dw,
|
|
bool trigger_agc_interrupt_on_done = false);
|
|
void GraphicsRunSubmitFlipPreparation();
|
|
void GraphicsRunWait();
|
|
void GraphicsRunDone();
|
|
int GraphicsRunGetFrameNum();
|
|
[[nodiscard]] bool GraphicsRunIsCommandProcessorThread() noexcept;
|
|
[[nodiscard]] CommandProcessor* GraphicsRunCurrentCommandProcessor() noexcept;
|
|
void GraphicsRunFinishCommandProcessors();
|
|
[[nodiscard]] bool GraphicsRunSubmissionLockHeld() noexcept;
|
|
[[nodiscard]] bool GraphicsRunGpuLockHeld() noexcept;
|
|
} // namespace Libs::Graphics
|
|
|
|
#endif /* EMULATOR_INCLUDE_EMULATOR_GRAPHICS_GRAPHICSRUN_H_ */
|