17 #include <unordered_set>
18 #include <unordered_map>
121 virtual void bufferSizeChanged(
DtGlBuffer* buffer)
override;
124 virtual void bufferResidencyChanging(
DtGlBuffer* buffer,
bool resident)
override;
127 virtual void bufferDeleted(
DtGlBuffer* buffer)
override;
130 const std::map<DtBufferType, DtBufferTypeProperties>& properties(
void)
const;
133 const std::map<DtBufferType, DtBufferTypeProperties>& propertiesBindless(
void)
const;
137 virtual void printMap(std::map<DtBufferType, DtBufferTypeProperties>& aMap);
140 std::string bufferName(
unsigned int id)
const;
std::unordered_map< unsigned int, int > myTrackedBuffersBindless
Definition: DtGlBufferMemoryTracker.h:151
uint64_t myMaxBuffersSize
all time max size of buffers (in bytes) of this type This is the maximum value myBuffersSize has ever...
Definition: DtGlBufferMemoryTracker.h:53
std::map< DtBufferType, DtBufferTypeProperties > myMapBuffersToProperties
memory for specific buffer types, whether they are bindless or not
Definition: DtGlBufferMemoryTracker.h:144
These properties are used in conjunction with DtGlBufferMemoryTracker for each buffer type...
Definition: DtGlBufferMemoryTracker.h:30
std::map< DtBufferType, DtBufferTypeProperties > myMapBuffersToPropertiesBindless
memory for specific buffer types, bindless
Definition: DtGlBufferMemoryTracker.h:147
std::unordered_map< unsigned int, int > myTrackedBuffers
Definition: DtGlBufferMemoryTracker.h:149
int myMaxNumBuffers
All time number of buffers of this type. This is the maximum value myNumBuffers has ever attained dur...
Definition: DtGlBufferMemoryTracker.h:49
DtGlBufferMemoryTracker class is used to track memory for buffers to which it is added as a listener...
Definition: DtGlBufferMemoryTracker.h:105
uint64_t myBuffersSize
size of buffers (in bytes) of this type at a given point
Definition: DtGlBufferMemoryTracker.h:45
An abstract class to track a DtGlBuffer and its properties (size, residency, etc) Each DtGlBuffer can...
Definition: DtGlBufferListener.h:31
A generic OpenGL buffer. This can be: -> a vertex buffer -> an index buffer -> a shader storage buffe...
Definition: DtGlBuffer.h:29
int myNumBuffers
number of buffers of this type at a given point
Definition: DtGlBufferMemoryTracker.h:43
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
Contains makVrv::DtGlBufferListener class.