Home
last modified time | relevance | path

Searched refs:getUConst (Results 1 – 25 of 40) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DConstantUnion.h41 case EbtUInt: setFConst(static_cast<float>(constant.getUConst())); break; in cast()
51 case EbtUInt: setIConst(static_cast<int>(constant.getUConst())); break; in cast()
61 case EbtUInt: setUConst(static_cast<unsigned int>(constant.getUConst())); break; in cast()
71 case EbtUInt: setBConst(constant.getUConst() != 0); break; in cast()
81 case EbtUInt: setUConst(constant.getUConst()); break; in cast()
100 unsigned int getUConst() const { return uConst; } in getUConst() function
DIntermediate.cpp1581 tempConstArray[i].setUConst(unionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold()
1584 tempConstArray[i].setUConst(unionArray[i].getUConst() % rightUnionArray[i].getUConst()); in fold()
1806 case EbtUInt: tempConstArray[i].setUConst(~unionArray[i].getUConst()); break; in fold()
2009 tempConstArray[i].setFConst(sw::bit_cast<float>(unionArray[i].getUConst())); in fold()
2041 leftUnionArray[i].setFConst(static_cast<float>(node->getUConst(i))); in promoteConstantUnion()
2060 leftUnionArray[i].setIConst(static_cast<int>(node->getUConst(i))); in promoteConstantUnion()
2079 leftUnionArray[i].setUConst(static_cast<unsigned int>(node->getUConst(i))); in promoteConstantUnion()
2098 leftUnionArray[i].setBConst(node->getUConst(i) != 0); in promoteConstantUnion()
DValidateSwitch.cpp144 unsigned int uConst = condition->getUConst(0); in visitCase()
Dintermediate.h440 …int getUConst(int index) const { return unionArrayPointer ? unionArrayPointer[index].getUConst() :… in getUConst() function
DintermOut.cpp397 out << node->getUnionArrayPointer()[i].getUConst(); in visitConstantUnion()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DConstantUnion.cpp65 (rhs.getType() == EbtUInt && rhs.getUConst() <= 31u); in IsValidShiftOffset()
82 unsigned int TConstantUnion::getUConst() const in getUConst() function in sh::TConstantUnion
115 return getUConst() == 0; in isZero()
142 setFConst(static_cast<float>(constant.getUConst())); in cast()
161 setIConst(static_cast<int>(constant.getUConst())); in cast()
180 setUConst(static_cast<unsigned int>(constant.getUConst())); in cast()
208 setBConst(constant.getUConst() != 0); in cast()
227 setUConst(constant.getUConst()); in cast()
DIntermNode.cpp2224 resultArray[i].setUConst(leftArray[i].getUConst() / in FoldBinary()
2225 rightArray[i].getUConst()); in FoldBinary()
2230 resultArray[i].setUConst(leftArray[i].getUConst() % in FoldBinary()
2231 rightArray[i].getUConst()); in FoldBinary()
2499 gl::unpackSnorm2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2518 gl::unpackUnorm2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2537 gl::unpackHalf2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2566 gl::UnpackUnorm4x8(operandArray[0].getUConst(), f); in foldUnaryNonComponentWise()
2578 gl::UnpackSnorm4x8(operandArray[0].getUConst(), f); in foldUnaryNonComponentWise()
2640 -static_cast<int>(operandArray[i].getUConst()))); in foldUnaryComponentWise()
[all …]
DConstantUnion.h56 unsigned int getUConst() const;
DValidateSwitch.cpp231 unsigned int uConst = condition->getUConst(0); in visitCase()
DIntermNode.h324 unsigned int getUConst(size_t index) const in getUConst() function
326 return mUnionArrayPointer ? mUnionArrayPointer[index].getUConst() : 0; in getUConst()
DOutputTree.cpp591 mOut << node->getConstantValue()[i].getUConst(); in visitConstantUnion()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.cpp2575 resultArray[i].setUConst(leftArray[i].getUConst() / in FoldBinary()
2576 rightArray[i].getUConst()); in FoldBinary()
2581 resultArray[i].setUConst(leftArray[i].getUConst() % in FoldBinary()
2582 rightArray[i].getUConst()); in FoldBinary()
2850 gl::unpackSnorm2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2869 gl::unpackUnorm2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2888 gl::unpackHalf2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise()
2917 gl::UnpackUnorm4x8(operandArray[0].getUConst(), f); in foldUnaryNonComponentWise()
2929 gl::UnpackSnorm4x8(operandArray[0].getUConst(), f); in foldUnaryNonComponentWise()
2992 -static_cast<int>(operandArray[i].getUConst()))); in foldUnaryComponentWise()
[all …]
DConstantUnion.cpp65 (rhs.getType() == EbtUInt && rhs.getUConst() <= 31u); in IsValidShiftOffset()
86 unsigned int TConstantUnion::getUConst() const in getUConst() function in sh::TConstantUnion
119 return getUConst() == 0; in isZero()
146 setFConst(static_cast<float>(constant.getUConst())); in cast()
165 setIConst(static_cast<int>(constant.getUConst())); in cast()
184 setUConst(static_cast<unsigned int>(constant.getUConst())); in cast()
212 setBConst(constant.getUConst() != 0); in cast()
231 setUConst(constant.getUConst()); in cast()
DConstantUnion.h58 unsigned int getUConst() const;
DValidateClipCullDistance.cpp117 idx = constIdx->getUConst(); in visitBinary()
DValidateSwitch.cpp231 unsigned int uConst = condition->getUConst(0); in visitCase()
DIntermNode.h359 unsigned int getUConst(size_t index) const in getUConst() function
361 return mUnionArrayPointer ? mUnionArrayPointer[index].getUConst() : 0; in getUConst()
DOutputTree.cpp615 mOut << node->getConstantValue()[i].getUConst(); in visitConstantUnion()
/third_party/glslang/glslang/MachineIndependent/
DConstant.cpp206 … newConstArray[i].setUConst(leftUnionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold()
533 …rray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))); break; in fold()
679 newConstArray[i].setBConst(unionArray[i].getUConst() != 0); break; in fold()
687 newConstArray[i].setIConst(unionArray[i].getUConst()); break; in fold()
703 newConstArray[i].setDConst(unionArray[i].getUConst()); break; in fold()
845 newConstArray[i].setI8Const((signed char)unionArray[i].getUConst()); break; in fold()
847 newConstArray[i].setI16Const((signed short)unionArray[i].getUConst()); break; in fold()
849 newConstArray[i].setI64Const(unionArray[i].getUConst()); break; in fold()
851 newConstArray[i].setU8Const((unsigned char)unionArray[i].getUConst()); break; in fold()
853 newConstArray[i].setU16Const((unsigned short)unionArray[i].getUConst()); break; in fold()
[all …]
DpropagateNoContraction.cpp137 unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst(); in getStructIndexFromConstantUnion()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
DConstantFoldingTest.h116 abs(static_cast<int>(node.getUConst() - value)) && in isEqual()
117 static_cast<int>(node.getUConst() - value) != std::numeric_limits<int>::min(); in isEqual()
DShaderCompileTreeTest.cpp87 isZero = (node->getUConst(i) == 0u); in visitConstantUnion()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_utils/
DConstantFoldingTest.h116 abs(static_cast<int>(node.getUConst() - value)) && in isEqual()
117 static_cast<int>(node.getUConst() - value) != std::numeric_limits<int>::min(); in isEqual()
DShaderCompileTreeTest.cpp87 isZero = (node->getUConst(i) == 0u); in visitConstantUnion()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DReplaceClipCullDistanceVariable.cpp135 idx = constIdx->getUConst(); in visitBinary()

12