third_party/glslang/glslang/MachineIndependent/linkValidate.cpp
// To aid the basic HLSL rule about crossing vec4 boundaries.
To aid the basic HLSL rule about crossing vec4 boundaries.
To aid the basic HLSL rule about crossing vec4 boundaries .
bool TIntermediate::improperStraddle(const TType& type, int size, int offset)
{
    if (! type.isVector() || type.isArray())
        return false;
    return size <= 16 ? offset / 16 != (offset + size - 1) / 16
                      : offset % 16 != 0;
}
bool TIntermediate :: improperStraddle ( const TType & type , int size , int offset ) { if ( ! type . isVector ( ) || type . isArray ( ) ) return false ; return size <= 16 ? offset / 16 != ( offset + size - 1 ) / 16 : offset % 16 != 0 ; }
To aid the basic HLSL rule about crossing vec4 boundaries.
To aid the basic HLSL rule about crossing vec4 boundaries .