2023-08-07 22:10:38 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-08-13 13:33:38 +02:00
|
|
|
#include "Common/GPU/thin3d.h"
|
2023-08-07 22:10:38 +02:00
|
|
|
|
2023-08-15 15:20:01 +02:00
|
|
|
// See big comment in the CPP file.
|
|
|
|
|
|
2023-08-13 13:33:38 +02:00
|
|
|
namespace Draw {
|
|
|
|
|
class DrawContext;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct FrameTiming {
|
|
|
|
|
// Some backends won't allow changing this willy nilly.
|
|
|
|
|
Draw::PresentMode presentMode;
|
|
|
|
|
int presentInterval;
|
|
|
|
|
|
|
|
|
|
void Reset(Draw::DrawContext *draw);
|
2023-08-07 22:10:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern FrameTiming g_frameTiming;
|
2023-08-13 13:33:38 +02:00
|
|
|
|
|
|
|
|
Draw::PresentMode ComputePresentMode(Draw::DrawContext *draw, int *interval);
|