Workspace 6.21.5
|
Exception class for when a WSGLBufferObjectCache's size is exceeded during memory allocation. More...
#include <Rendering/OpenGL/wsglbufferobjectcache.h>
Public Member Functions | |
WSGLCacheCapacityExceededException (size_t bytesRequested, size_t bytesAvailable) | |
QString | getMessage () const noexcept |
This exception can only occur if there aren't enough 'expired' cache items in the cache, usually a sign of trying to draw too much data at the same time. There are two approaches to avoiding the problem:
If this exception occurs during a call to /ref WSGLBufferObjectCacheItem::allocate no memory will have been allocated for the buffer object.
WSGLCacheCapacityExceededException | ( | size_t | bytesRequested, |
size_t | bytesAvailable | ||
) |
Constructs a new cache capacity exception.
bytesRequested | The number of bytes that were requested for allocation. |
bytesAvailable | The number of bytes that were actually available in the cache. |
|
noexcept |
Return the details about the exception in string form.