Home
last modified time | relevance | path

Searched refs:safeIndex (Results 1 – 2 of 2) sorted by relevance

/external/angle/src/compiler/translator/
DParseContext.cpp4764 int safeIndex = -1; in addIndexExpression() local
4769 safeIndex = 0; in addIndexExpression()
4784 safeIndex = 0; in addIndexExpression()
4789 if (safeIndex < 0) in addIndexExpression()
4793 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()
4799 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()
4806 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()
4812 ASSERT(safeIndex >= 0); in addIndexExpression()
4816 if (safeIndex != index || indexConstantUnion->getBasicType() != EbtInt) in addIndexExpression()
4819 safeConstantUnion->setIConst(safeIndex); in addIndexExpression()
/external/swiftshader/src/OpenGL/compiler/
DParseHelper.cpp2532 int safeIndex = -1; in addIndexExpression() local
2543 safeIndex = baseExpression->getType().getArraySize() - 1; in addIndexExpression()
2554 safeIndex = baseExpression->getType().getNominalSize() - 1; in addIndexExpression()
2559 if(safeIndex != -1) in addIndexExpression()
2562 safeConstantUnion->setIConst(safeIndex); in addIndexExpression()