void PrintSelf(ostream &os, vtkIndent indent) override
PrintSelf outputs the cache contents in the following format: RenderTextureCache: index: pointer inde...
bool RemoveRenderTexture(int index)
Remove a render Texture from the cache.
friend class vtkWebGPUTexture
~vtkWebGPURenderTextureCache() override
int AddRenderTexture(vtkSmartPointer< vtkWebGPURenderTextureDeviceResource > renderTexture)
Add a render Texture to the cache and returns its associated index.
static vtkWebGPURenderTextureCache * New()
vtkSmartPointer< vtkWebGPURenderTextureDeviceResource > GetRenderTexture(int index)
Get a render Texture associated with the given index.
void ReleaseGraphicsResources(vtkWindow *window)
Reset the Texture cache.
vtkWebGPURenderTextureCache()