Workspace 6.21.5
Public Member Functions | List of all members
WSGLCacheCapacityExceededException Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WSGLCacheCapacityExceededException()

WSGLCacheCapacityExceededException ( size_t  bytesRequested,
size_t  bytesAvailable 
)

Constructs a new cache capacity exception.

Parameters
bytesRequestedThe number of bytes that were requested for allocation.
bytesAvailableThe number of bytes that were actually available in the cache.

Member Function Documentation

◆ getMessage()

QString getMessage ( ) const
noexcept

Return the details about the exception in string form.