7#ifndef PXR_IMAGING_HGI_GL_GARBAGE_COLLECTOR_H
8#define PXR_IMAGING_HGI_GL_GARBAGE_COLLECTOR_H
13#include "pxr/imaging/hgi/hgi.h"
14#include "pxr/imaging/hgiGL/api.h"
19PXR_NAMESPACE_OPEN_SCOPE
48 HgiTextureHandleVector* GetTextureList();
49 HgiSamplerHandleVector* GetSamplerList();
50 HgiShaderFunctionHandleVector* GetShaderFunctionList();
51 HgiShaderProgramHandleVector* GetShaderProgramList();
52 HgiResourceBindingsHandleVector* GetResourceBindingsList();
53 HgiGraphicsPipelineHandleVector* GetGraphicsPipelineList();
54 HgiComputePipelineHandleVector* GetComputePipelineList();
65 T* _GetThreadLocalStorageList(std::vector<T*>* collector);
71 static std::vector<HgiBufferHandleVector*> _bufferList;
72 static std::vector<HgiTextureHandleVector*> _textureList;
73 static std::vector<HgiSamplerHandleVector*> _samplerList;
74 static std::vector<HgiShaderFunctionHandleVector*> _shaderFunctionList;
75 static std::vector<HgiShaderProgramHandleVector*> _shaderProgramList;
76 static std::vector<HgiResourceBindingsHandleVector*> _resourceBindingsList;
77 static std::vector<HgiGraphicsPipelineHandleVector*> _graphicsPipelineList;
78 static std::vector<HgiComputePipelineHandleVector*> _computePipelineList;
84PXR_NAMESPACE_CLOSE_SCOPE
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...
HGIGL_API void PerformGarbageCollection()
Destroys the objects inside the garbage collector.
HgiBufferHandleVector * GetBufferList()
Returns a garbage collection vector for a type of handle.
OpenGL implementation of the Hydra Graphics Interface.