rhodonite
    Preparing search index...

    Class CGAPIResourceRepositoryAbstract

    Abstract base class for Computer Graphics API Resource Repository. Provides a unified interface for managing graphics resources across different APIs (WebGL, WebGPU). This class serves as a factory and utility provider for accessing the appropriate resource repository based on the current graphics API approach.

    Hierarchy (View Summary)

    Index
    InvalidCGAPIResourceUid: -1

    Invalid resource handle constant used to indicate failed resource creation or invalid resources

    • Gets the appropriate Computer Graphics API Resource Repository instance based on the current process approach. Automatically selects between WebGL and WebGPU implementations.

      Parameters

      Returns ICGAPIResourceRepository

      The active ICGAPIResourceRepository implementation

      Error if the required module is not available

    • Gets the WebGL-specific resource repository instance. Use this method when you specifically need WebGL functionality.

      Returns WebGLResourceRepository

      The WebGLResourceRepository singleton instance

      Error if the WebGL module is not available

    • Gets the WebGPU-specific resource repository instance. Use this method when you specifically need WebGPU functionality.

      Returns WebGpuResourceRepository

      The WebGpuResourceRepository singleton instance

      Error if the WebGPU module is not available