3rdparty/bgfx/3rdparty/glslang/glslang/MachineIndependent/linkValidate.cpp
// Return the size and alignment of a component of the given type.
// The size is returned in the 'size' parameter
// Return value is the alignment..
Return the size and alignment of a component of the given type.
The size is returned in the 'size' parameter
Return value is the alignment
Return the size and alignment of a component of the given type . The size is returned in the ' size ' parameter Return value is the alignment
int TIntermediate::getBaseAlignmentScalar(const TType& type, int& size)
{
    switch (type.getBasicType()) {
    case EbtInt64:
    case EbtUint64:
    case EbtDouble:  size = 8; return 8;
#ifdef AMD_EXTENSIONS
    case EbtInt16:
    case EbtUint16:
    case EbtFloat16: size = 2; return 2;
#endif
    default:         size = 4; return 4;
    }
}
int TIntermediate :: getBaseAlignmentScalar ( const TType & type , int & size ) { switch ( type . getBasicType ( ) ) { case EbtInt64 : case EbtUint64 : case EbtDouble : size = 8 ; return 8 ; #ifdef AMD_EXTENSIONS case EbtInt16 : case EbtUint16 : case EbtFloat16 : size = 2 ; return 2 ; #endif default : size = 4 ; return 4 ; } }
Return the size and alignment of a component of the given type.
Return the size and alignment of a component of the given type .