import type { Dict } from '../../../../../utils/types';
const GLSL_TO_SIZE: Dict<number> = {
float: 1,
vec2: 2,
vec3: 3,
vec4: 4,
int: 1,
ivec2: 2,
ivec3: 3,
ivec4: 4,
uint: 1,
uvec2: 2,
uvec3: 3,
uvec4: 4,
bool: 1,
bvec2: 2,
bvec3: 3,
bvec4: 4,
mat2: 4,
mat3: 9,
mat4: 16,
sampler2D: 1,
};
/**
* @private
* @method mapSize
* @param {string} type
*/
export function mapSize(type: string): number
{
return GLSL_TO_SIZE[type];
}