mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 18:25:35 -04:00
25 lines
888 B
C
25 lines
888 B
C
#ifndef PSX_RENDER_PASS_WORKER_H
|
|
#define PSX_RENDER_PASS_WORKER_H
|
|
#include <stdint.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
void render_pass_worker_stop(void);
|
|
/* Stop executing before replacing immutable activation tables. */
|
|
void render_pass_worker_quiesce(void);
|
|
void render_pass_worker_flush(void);
|
|
/* Optional guest replay borrows a declared source-owner pacing wait. Deadlines
|
|
* use host_clock_us(); zero withdraws the window. Source execution never waits. */
|
|
void render_pass_worker_idle_until(uint64_t deadline_us);
|
|
uint32_t render_pass_worker_take_plan(uint32_t *period);
|
|
typedef struct RenderPassWorkerStats {
|
|
uint64_t published, completed, late, aborted, refused, dispatch_misses, native_calls;
|
|
uint32_t last_address;
|
|
const char *last_failure;
|
|
} RenderPassWorkerStats;
|
|
void render_pass_worker_stats(RenderPassWorkerStats *out);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|