2023-01-27 00:21:09 +00:00
|
|
|
// Copyright 2023 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
class GLContext;
|
|
|
|
|
|
|
|
namespace OGL
|
|
|
|
{
|
|
|
|
enum GlslVersion
|
|
|
|
{
|
|
|
|
Glsl130,
|
|
|
|
Glsl140,
|
|
|
|
Glsl150,
|
|
|
|
Glsl330,
|
2023-01-31 17:10:48 +00:00
|
|
|
Glsl400, // and above
|
|
|
|
Glsl430, // 430 - 440
|
|
|
|
Glsl450, // 450 - xxx
|
2023-01-27 00:21:09 +00:00
|
|
|
GlslEs300, // GLES 3.0
|
|
|
|
GlslEs310, // GLES 3.1
|
|
|
|
GlslEs320, // GLES 3.2
|
|
|
|
};
|
|
|
|
enum class EsTexbufType
|
|
|
|
{
|
|
|
|
TexbufNone,
|
|
|
|
TexbufCore,
|
|
|
|
TexbufOes,
|
|
|
|
TexbufExt
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class EsFbFetchType
|
|
|
|
{
|
|
|
|
FbFetchNone,
|
|
|
|
FbFetchExt,
|
|
|
|
FbFetchArm,
|
|
|
|
};
|
|
|
|
|
|
|
|
// ogl-only config, so not in VideoConfig.h
|
|
|
|
struct VideoConfig
|
|
|
|
{
|
|
|
|
bool bIsES;
|
|
|
|
bool bSupportsGLPinnedMemory;
|
|
|
|
bool bSupportsGLSync;
|
|
|
|
bool bSupportsGLBaseVertex;
|
|
|
|
bool bSupportsGLBufferStorage;
|
|
|
|
bool bSupportsMSAA;
|
|
|
|
GlslVersion eSupportedGLSLVersion;
|
|
|
|
bool bSupportViewportFloat;
|
|
|
|
bool bSupportsAEP;
|
|
|
|
bool bSupportsDebug;
|
|
|
|
bool bSupportsCopySubImage;
|
|
|
|
u8 SupportedESPointSize;
|
|
|
|
EsTexbufType SupportedESTextureBuffer;
|
|
|
|
bool bSupportsTextureStorage;
|
|
|
|
bool bSupports2DTextureStorageMultisample;
|
|
|
|
bool bSupports3DTextureStorageMultisample;
|
|
|
|
bool bSupportsConservativeDepth;
|
|
|
|
bool bSupportsImageLoadStore;
|
|
|
|
bool bSupportsAniso;
|
|
|
|
bool bSupportsBitfield;
|
|
|
|
bool bSupportsTextureSubImage;
|
|
|
|
EsFbFetchType SupportedFramebufferFetch;
|
2023-01-31 17:10:48 +00:00
|
|
|
bool bSupportsKHRShaderSubgroup; // basic + arithmetic + ballot
|
2023-01-27 00:21:09 +00:00
|
|
|
|
|
|
|
const char* gl_vendor;
|
|
|
|
const char* gl_renderer;
|
|
|
|
const char* gl_version;
|
|
|
|
|
|
|
|
s32 max_samples;
|
|
|
|
};
|
|
|
|
|
|
|
|
void InitDriverInfo();
|
|
|
|
bool PopulateConfig(GLContext* main_gl_context);
|
|
|
|
|
|
|
|
extern VideoConfig g_ogl_config;
|
|
|
|
|
2023-01-31 06:21:15 +00:00
|
|
|
} // namespace OGL
|