INNER CODE UNIT · JavaScript
getSize
electronicarts/pbmpm · src/buffer_factory.js:261
function getSize(type)
{
switch(type)
{
case f32:
case u32:
return 1;
case vec2f:
case vec2u:
return 2;
case vec3f:
return 3;
default:
throw `Unsupported type [${type}]`;
}
}
// What should the alignment of each type be in multiples of