@luma.gl/core
Version:
The luma.gl core Device API
11 lines (8 loc) • 351 B
text/typescript
// luma.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import {isNumberArray} from '../utils/is-array';
import {UniformValue} from '../adapter/types/uniforms';
export function isUniformValue(value: unknown): value is UniformValue {
return isNumberArray(value) || typeof value === 'number' || typeof value === 'boolean';
}