Table of Contents

Interface IRendererResource

Namespace
LibGFX.Core
Assembly
LibGFX.dll

Defines a resource that can be released or cleaned up by a renderer device.

public interface IRendererResource

Remarks

Implement this interface for objects that hold resources tied to a specific rendering device, such as GPU buffers or textures. The resource should be disposed of using the provided renderer to ensure proper cleanup within the rendering context. The owner of an IRenderResource is always the IRenderDevice that created it.

Methods

Dispose(IRenderDevice)

void Dispose(IRenderDevice renderer)

Parameters

renderer IRenderDevice