| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
class GLContext; |
| 7 |
|
| 8 |
namespace OGL |
| 9 |
{ |
| 10 |
enum GlslVersion |
| 11 |
{ |
| 12 |
Glsl130, |
| 13 |
Glsl140, |
| 14 |
Glsl150, |
| 15 |
Glsl330, |
| 16 |
Glsl400, |
| 17 |
Glsl430, |
| 18 |
Glsl450, |
| 19 |
GlslEs300, |
| 20 |
GlslEs310, |
| 21 |
GlslEs320, |
| 22 |
}; |
| 23 |
|
| 24 |
enum class EsPointSizeType |
| 25 |
{ |
| 26 |
PointSizeNone, |
| 27 |
PointSizeOes, |
| 28 |
PointSizeExt, |
| 29 |
}; |
| 30 |
|
| 31 |
enum class EsTexbufType |
| 32 |
{ |
| 33 |
TexbufNone, |
| 34 |
TexbufCore, |
| 35 |
TexbufOes, |
| 36 |
TexbufExt |
| 37 |
}; |
| 38 |
|
| 39 |
enum class EsFbFetchType |
| 40 |
{ |
| 41 |
FbFetchNone, |
| 42 |
FbFetchExt, |
| 43 |
FbFetchArm, |
| 44 |
}; |
| 45 |
|
| 46 |
enum class MultisampleTexStorageType |
| 47 |
{ |
| 48 |
TexStorageNone, |
| 49 |
TexStorageCore, |
| 50 |
TexStorageOes, |
| 51 |
}; |
| 52 |
|
| 53 |
|
| 54 |
struct VideoConfig |
| 55 |
{ |
| 56 |
bool bIsES; |
| 57 |
bool bSupportsGLPinnedMemory; |
| 58 |
bool bSupportsGLSync; |
| 59 |
bool bSupportsGLBaseVertex; |
| 60 |
bool bSupportsGLBufferStorage; |
| 61 |
bool bSupportsMSAA; |
| 62 |
GlslVersion eSupportedGLSLVersion; |
| 63 |
bool bSupportViewportFloat; |
| 64 |
bool bSupportsAEP; |
| 65 |
bool bSupportsDebug; |
| 66 |
bool bSupportsCopySubImage; |
| 67 |
EsPointSizeType SupportedESPointSize; |
| 68 |
EsTexbufType SupportedESTextureBuffer; |
| 69 |
bool bSupportsTextureStorage; |
| 70 |
MultisampleTexStorageType SupportedMultisampleTexStorage; |
| 71 |
bool bSupportsConservativeDepth; |
| 72 |
bool bSupportsImageLoadStore; |
| 73 |
bool bSupportsAniso; |
| 74 |
bool bSupportsBitfield; |
| 75 |
bool bSupportsTextureSubImage; |
| 76 |
EsFbFetchType SupportedFramebufferFetch; |
| 77 |
bool bSupportsKHRShaderSubgroup; |
| 78 |
bool bSupportsExplicitLayoutInShader; |
| 79 |
|
| 80 |
const char* gl_vendor; |
| 81 |
const char* gl_renderer; |
| 82 |
const char* gl_version; |
| 83 |
}; |
| 84 |
|
| 85 |
void InitDriverInfo(); |
| 86 |
bool PopulateConfig(GLContext* main_gl_context); |
| 87 |
|
| 88 |
extern VideoConfig g_ogl_config; |
| 89 |
|
| 90 |
} |