Magic number removal

This commit is contained in:
Brad Davis 2016-10-15 17:59:27 -07:00
parent 0be1f82bbc
commit 612a1b17ff

View file

@ -15,6 +15,10 @@
#include <GLMHelpers.h>
// GPU resources are typically buffered for one copy being used by the renderer,
// one copy in flight, and one copy being used by the receiver
#define GPU_RESOURCE_BUFFER_SIZE 3
class TextureRecycler {
public:
TextureRecycler(bool useMipmaps) : _useMipmaps(useMipmaps) {}
@ -44,7 +48,7 @@ private:
Queue _readyTextures;
uvec2 _size{ 1920, 1080 };
bool _useMipmaps;
uint8_t _textureCount { 3 };
uint8_t _textureCount { GPU_RESOURCE_BUFFER_SIZE };
};
#endif