![]() |
Handles garbage collection of opengl objects by delaying their destruction until those objects are no longer used. More...
Public Member Functions | |
| HGIGL_API | HgiGLGarbageCollector (HgiGL *hgi) |
| HGIGL_API void | PerformGarbageCollection () |
| Destroys the objects inside the garbage collector. More... | |
| HgiBufferHandleVector * | GetBufferList () |
| Returns a garbage collection vector for a type of handle. More... | |
| HgiTextureHandleVector * | GetTextureList () |
| HgiSamplerHandleVector * | GetSamplerList () |
| HgiShaderFunctionHandleVector * | GetShaderFunctionList () |
| HgiShaderProgramHandleVector * | GetShaderProgramList () |
| HgiResourceBindingsHandleVector * | GetResourceBindingsList () |
| HgiGraphicsPipelineHandleVector * | GetGraphicsPipelineList () |
| HgiComputePipelineHandleVector * | GetComputePipelineList () |
Handles garbage collection of opengl objects by delaying their destruction until those objects are no longer used.
Definition at line 45 of file garbageCollector.h.
| HgiBufferHandleVector* GetBufferList | ( | ) |
Returns a garbage collection vector for a type of handle.
Thread safety: The returned vector is a thread_local vector so this call is thread safe as long as the vector is only used by the calling thread.
| HGIGL_API void PerformGarbageCollection | ( | ) |
Destroys the objects inside the garbage collector.
Thread safety: This call is not thread safe and must be called from the thread that has the opengl context bound while no other threads are destroying objects (e.g. during EndFrame).