getUniformsBufferSize

wv.Sc.getUniformsBufferSize()
getUniformsBufferSize(uniforms: Record): number

Calculate the total buffer size in bytes needed to serialize multiple uniforms. Format: [count:u32] then for each uniform: [nameLen:u32][name:utf8][typeLen:u32][type:utf8][arrayLength:u32][data…]

Parameters

uniforms: Record

Returns: number