Move code of getGPUMemoryInformation to Rendering manager

This commit is contained in:
Bruno Herbelin
2022-04-18 14:01:21 +02:00
parent 4dd8ceb245
commit e512eab1e8
5 changed files with 71 additions and 67 deletions

View File

@@ -44,9 +44,6 @@ public:
static float resolution_height[5];
static glm::vec3 getResolutionFromParameters(int ar, int h);
static glm::ivec2 getParametersFromResolution(glm::vec3 res);
// memory management
static glm::ivec2 getGPUMemoryInformation();
static bool shouldHaveEnoughMemory(glm::vec3 resolution, bool useAlpha = false, bool multiSampling = false);
FrameBuffer(glm::vec3 resolution, bool useAlpha = false, bool multiSampling = false);
FrameBuffer(uint width, uint height, bool useAlpha = false, bool multiSampling = false);