Closed LU-JOHN closed 3 months ago
Round up number of elements in a Vector to a power of 2 when calculating memory size. Memory size will be calculated as BaseType * bit_ceil(ComponentCount). The previous calculation already rounded 3 elements to 4 elements.
Adding a "MemorySize" field toTypeVector was considered but rejected. See https://github.com/KhronosGroup/SPIRV-Registry/pull/250
Round up number of elements in a Vector to a power of 2 when calculating memory size. Memory size will be calculated as BaseType * bit_ceil(ComponentCount). The previous calculation already rounded 3 elements to 4 elements.