implement display capture for compute renderer

it's actually just all stolen from the regular OpenGL renderer
This commit is contained in:
RSDuck
2023-04-13 23:14:20 +02:00
parent 91bea108ea
commit 5984c78588
6 changed files with 42 additions and 3 deletions

View File

@ -49,6 +49,7 @@ public:
u32* GetLine(int line) override;
void SetupAccelFrame() override;
void PrepareCaptureFrame() override;
private:
GLuint ShaderInterpXSpans[2];
GLuint ShaderBinCombined;
@ -240,6 +241,9 @@ private:
u32 TextureDecodingBuffer[1024*1024];
GLuint Framebuffer;
GLuint PixelBuffer;
u32 FramebufferCPU[256*192];
TexCacheEntry& GetTexture(u32 textureParam, u32 paletteParam);