rpcsx/rpcs3/rpcs3qt/gl_gs_frame.h
kd-11 e7f30640ef rsx: Async shader compilation
- Defer compilation process to worker threads
- vulkan: Fixup for graphics_pipeline_state.
  Never use struct assignment operator on vk** structs due to padding after sType member (4 bytes)
2018-07-14 15:19:56 +03:00

26 lines
580 B
C++

#pragma once
#include "stdafx.h"
#include "gs_frame.h"
struct GLContext
{
QSurface *surface = nullptr;
QOpenGLContext *handle = nullptr;
bool owner = false;
};
class gl_gs_frame : public gs_frame
{
private:
QSurfaceFormat m_format;
GLContext *m_primary_context = nullptr;
public:
gl_gs_frame(const QRect& geometry, QIcon appIcon, bool disableMouse);
draw_context_t make_context() override;
void set_current(draw_context_t context) override;
void delete_context(draw_context_t context) override;
void flip(draw_context_t context, bool skip_frame=false) override;
};