Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class DeviceCaps

    Centralized class for hardware and browser feature detection. Provides information about supported renderers, API features, and hardware limits.

    Index

    Constructors

    Methods

    • Initializes the feature detection. This is called automatically by the Engine, but can be called manually.

      Returns void

    • Updates hardware limits. Used by renderers to provide more precise values.

      Parameters

      • limits: {
            maxAnisotropy?: number;
            maxFragmentUniformVectors?: number;
            maxMsaaSamples?: number;
            maxTextureImageUnits?: number;
            maxTextureSize?: number;
            maxUniformBufferSize?: number;
            maxVertexUniformVectors?: number;
        }

      Returns void