24 #ifndef PXR_IMAGING_HGI_GL_GARBAGE_COLLECTOR_H 25 #define PXR_IMAGING_HGI_GL_GARBAGE_COLLECTOR_H 30 #include "pxr/imaging/hgi/hgi.h" 31 #include "pxr/imaging/hgiGL/api.h" 36 PXR_NAMESPACE_OPEN_SCOPE
65 HgiTextureHandleVector* GetTextureList();
66 HgiSamplerHandleVector* GetSamplerList();
67 HgiShaderFunctionHandleVector* GetShaderFunctionList();
68 HgiShaderProgramHandleVector* GetShaderProgramList();
69 HgiResourceBindingsHandleVector* GetResourceBindingsList();
70 HgiGraphicsPipelineHandleVector* GetGraphicsPipelineList();
71 HgiComputePipelineHandleVector* GetComputePipelineList();
82 T* _GetThreadLocalStorageList(std::vector<T*>* collector);
88 static std::vector<HgiBufferHandleVector*> _bufferList;
89 static std::vector<HgiTextureHandleVector*> _textureList;
90 static std::vector<HgiSamplerHandleVector*> _samplerList;
91 static std::vector<HgiShaderFunctionHandleVector*> _shaderFunctionList;
92 static std::vector<HgiShaderProgramHandleVector*> _shaderProgramList;
93 static std::vector<HgiResourceBindingsHandleVector*> _resourceBindingsList;
94 static std::vector<HgiGraphicsPipelineHandleVector*> _graphicsPipelineList;
95 static std::vector<HgiComputePipelineHandleVector*> _computePipelineList;
101 PXR_NAMESPACE_CLOSE_SCOPE
HgiBufferHandleVector * GetBufferList()
Returns a garbage collection vector for a type of handle.
Low-level utilities for informing users of various internal and external diagnostic conditions.
Handles garbage collection of opengl objects by delaying their destruction until those objects are no...
OpenGL implementation of the Hydra Graphics Interface.
HGIGL_API void PerformGarbageCollection()
Destroys the objects inside the garbage collector.