| 3042 | } |
| 3043 | |
| 3044 | bool sameLongVectorBaseType(const TType &right) const { |
| 3045 | bool rv = false; |
| 3046 | |
| 3047 | if (isLongVector() && right.isLongVector()) { |
| 3048 | if (isFloatingDomain()) |
| 3049 | rv = right.isFloatingDomain() || right.getBasicType() == EbtLongVector; |
| 3050 | else if (isTypeUnsignedInt(getBasicType())) |
| 3051 | rv = isTypeUnsignedInt(right.getBasicType()) || right.getBasicType() == EbtLongVector; |
| 3052 | else if (isTypeSignedInt(getBasicType())) |
| 3053 | rv = isTypeSignedInt(right.getBasicType()) || right.getBasicType() == EbtLongVector; |
| 3054 | else if (getBasicType() == EbtBool) |
| 3055 | rv = right.getBasicType() == EbtBool || right.getBasicType() == EbtLongVector; |
| 3056 | else if (getBasicType() == EbtLongVector) |
| 3057 | rv = right.isLongVector(); |
| 3058 | else |
| 3059 | rv = false; |
| 3060 | } |
| 3061 | return rv; |
| 3062 | } |
| 3063 | |
| 3064 | bool sameCoopMatUse(const TType &right) const { |
| 3065 | return coopmatKHRuse == right.coopmatKHRuse; |
no test coverage detected