Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DParseContext.cpp4824 int safeIndex = -1; in addIndexExpression() local
4829 safeIndex = 0; in addIndexExpression()
4844 safeIndex = 0; in addIndexExpression()
4849 if (safeIndex < 0) in addIndexExpression()
4853 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()
4859 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()
4866 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()
4872 ASSERT(safeIndex >= 0); in addIndexExpression()
4876 if (safeIndex != index || indexConstantUnion->getBasicType() != EbtInt) in addIndexExpression()
4879 safeConstantUnion->setIConst(safeIndex); in addIndexExpression()
/third_party/skia/third_party/externals/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()