MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / sameLongVectorBaseType

Method sameLongVectorBaseType

glslang/Include/Types.h:3044–3062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 2

findFunction400Method · 0.80

Calls 5

isTypeUnsignedIntFunction · 0.85
isTypeSignedIntFunction · 0.85
isLongVectorMethod · 0.45
isFloatingDomainMethod · 0.45
getBasicTypeMethod · 0.45

Tested by

no test coverage detected