constants/context-type.js

/**
 * @module CONTEXT_TYPE
 */

/**
 * The '2d' rendering context.
 * @type {'2d'}
 * @constant
 *
 * @memberof module:CONTEXT_TYPE
 */
const CANVAS_2D = '2d';

/**
 * The 'webgl' rendering context.
 * @type {'webgl'}
 * @constant
 *
 * @memberof module:CONTEXT_TYPE
 */
const WEBGL1 = 'webgl';

/**
 * The 'webgl2' rendering context.
 * @type {'webgl2'}
 * @constant
 *
 * @memberof module:CONTEXT_TYPE
 */
const WEBGL2 = 'webgl2';

/**
 * The 'webgpu' rendering context.
 * @type {'webgpu'}
 * @constant
 *
 * @memberof module:CONTEXT_TYPE
 */
const WEBGPU = 'webgpu';

export {

    CANVAS_2D,
    WEBGL1,
    WEBGL2,
    WEBGPU
};