runtime caps for opengl

This commit is contained in:
aap
2020-11-17 15:05:47 +01:00
parent 7e80d45cdb
commit cea326a4ce
5 changed files with 33 additions and 1 deletions
+8
View File
@@ -246,6 +246,14 @@ struct Gl3Raster
Raster *fboMate; // color or zbuffer raster mate of this one
};
struct Gl3Caps
{
// TODO: put more stuff into this
bool dxtSupported;
bool astcSupported; // not used yet
};
extern Gl3Caps gl3Caps;
void allocateDXT(Raster *raster, int32 dxt, int32 numLevels, bool32 hasAlpha);
Texture *readNativeTexture(Stream *stream);