Loading...
Searching...
No Matches
HgiGLGarbageCollector Class Referencefinal

Handles garbage collection of opengl objects by delaying their destruction until those objects are no longer used. More...

#include <garbageCollector.h>

Public Member Functions

HGIGL_API void PerformGarbageCollection ()
 Destroys the objects inside the garbage collector.
 
HgiBufferHandleVector * GetBufferList ()
 Returns a garbage collection vector for a type of handle.
 
HgiTextureHandleVector * GetTextureList ()
 
HgiSamplerHandleVector * GetSamplerList ()
 
HgiShaderFunctionHandleVector * GetShaderFunctionList ()
 
HgiShaderProgramHandleVector * GetShaderProgramList ()
 
HgiResourceBindingsHandleVector * GetResourceBindingsList ()
 
HgiGraphicsPipelineHandleVector * GetGraphicsPipelineList ()
 
HgiComputePipelineHandleVector * GetComputePipelineList ()
 

Detailed Description

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.

Member Function Documentation

◆ GetBufferList()

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.

◆ PerformGarbageCollection()

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).


The documentation for this class was generated from the following file: