Home
last modified time | relevance | path

Searched refs:EbtBool (Results 1 – 25 of 70) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DConstantUnion.h42 case EbtBool: setFConst(static_cast<float>(constant.getBConst())); break; in cast()
52 case EbtBool: setIConst(static_cast<int>(constant.getBConst())); break; in cast()
62 case EbtBool: setUConst(static_cast<unsigned int>(constant.getBConst())); break; in cast()
67 case EbtBool: in cast()
72 case EbtBool: setBConst(constant.getBConst()); break; in cast()
82 case EbtBool: setBConst(constant.getBConst()); break; in cast()
97 void setBConst(bool b) {bConst = b; type = EbtBool; } in setBConst()
113 case EbtBool: return (bConst == true) ? reinterpret_cast<const float&>(FFFFFFFFh) : 0; in getAsFloat()
150 case EbtBool:
370 case EbtBool: returnValue.setBConst(bConst && constant.bConst); break;
[all …]
DIntermediate.cpp167 case EbtBool: in TypeToConstructorOperator()
348 if (left->getBasicType() != EbtBool || left->isMatrix() || left->isArray() || left->isVector()) { in addBinaryMath()
363 if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool) { in addBinaryMath()
369 …if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() =… in addBinaryMath()
488 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
889 if (operand->getBasicType() != EbtBool) in promote()
901 if (operand->getBasicType() == EbtBool) in promote()
987 setType(TType(EbtBool, EbpUndefined)); in promote()
997 if (left->getBasicType() != EbtBool || right->getBasicType() != EbtBool) in promote()
999 setType(TType(EbtBool, EbpUndefined)); in promote()
[all …]
DBaseTypes.h52 EbtBool, enumerator
114 case EbtBool: return "bool"; in getBasicString()
DParseHelper.cpp619 if (type->getBasicType() != EbtBool || type->isArray() || type->isMatrix() || type->isVector()) { in boolErrorCheck()
633 if (pType.type != EbtBool || pType.array || (pType.primarySize > 1) || (pType.secondarySize > 1)) { in boolErrorCheck()
1342 if(qualifier == EvqAttribute && (typeSpecifier.type == EbtBool || typeSpecifier.type == EbtInt)) in addFullySpecifiedType()
1349 (typeSpecifier.type == EbtBool || typeSpecifier.type == EbtInt)) in addFullySpecifiedType()
1376 if(type.type == EbtBool) in checkInputOutputTypeIsValidES3()
1431 if(type.isStructureContainingType(EbtBool)) in checkInputOutputTypeIsValidES3()
3074 if(child->getBasicType() != EbtBool || in createUnaryMath()
3096 child->getBasicType() == EbtBool || in createUnaryMath()
3416 if(left->getBasicType() != EbtBool || in addBinaryMathInternal()
3427 if(left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool) in addBinaryMathInternal()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DConstantUnion.cpp78 TConstantUnion::TConstantUnion(bool b) : bConst(b), type(EbtBool) {} in TConstantUnion()
108 ASSERT(type == EbtBool); in getBConst()
122 case EbtBool: in isZero()
148 case EbtBool: in cast()
167 case EbtBool: in cast()
186 case EbtBool: in cast()
205 case EbtBool: in cast()
214 case EbtBool: in cast()
233 case EbtBool: in cast()
308 case EbtBool: in operator ==()
[all …]
Dutil.cpp275 case EbtBool: in GLVariableType()
624 return TType(EbtBool); in GetShaderVariableBasicType()
626 return TType(EbtBool, 2); in GetShaderVariableBasicType()
628 return TType(EbtBool, 3); in GetShaderVariableBasicType()
630 return TType(EbtBool, 4); in GetShaderVariableBasicType()
DShaderStorageBlockFunctionHLSL.cpp37 case EbtBool: in OutputSSBOLoadFunctionBody()
123 if (ssboFunction.type.getBasicType() == EbtBool) in OutputSSBOStoreFunctionBody()
135 if (ssboFunction.type.getBasicType() == EbtBool) in OutputSSBOStoreFunctionBody()
DTranslatorMetal.cpp242 TType *boolType = new TType(EbtBool); in insertSampleMaskWritingLogic()
292 TType *boolType = new TType(EbtBool); in insertRasterizerDiscardLogic()
DStaticType.h238 basicType == EbtBool, in GetForVecMatHelper()
262 basicType == EbtBool,
DIntermNode.cpp71 case EbtBool: in UndefinedConstantFoldingError()
671 if (getBasicType() == EbtBool || getBasicType() == EbtVoid || getBasicType() == EbtStruct) in derivePrecision()
1409 resultType.setBasicType(EbtBool); in promote()
1425 resultType.setBasicType(EbtBool); in promote()
1933 setType(TType(EbtBool, EbpUndefined, resultQualifier)); in promote()
1942 ASSERT(mLeft->getBasicType() == EbtBool && mRight->getBasicType() == EbtBool); in promote()
2666 ASSERT(leftType.getBasicType() == EbtBool); in FoldBinary()
2773 ASSERT(getType().getBasicType() == EbtBool); in foldUnaryNonComponentWise()
2787 ASSERT(getType().getBasicType() == EbtBool); in foldUnaryNonComponentWise()
3023 case EbtBool: in foldUnaryComponentWise()
[all …]
DBuildSPIRV.cpp390 isOrHasBoolInInterfaceBlock = type.isInterfaceBlockContainingType(EbtBool) || in inferDefaults()
391 type.isStructureContainingType(EbtBool) || in inferDefaults()
392 type.getBasicType() == EbtBool; in inferDefaults()
445 if (fieldType.getBasicType() != EbtBool) in onBlockFieldSelection()
460 isOrHasBoolInInterfaceBlock = fieldType.isStructureContainingType(EbtBool); in onBlockFieldSelection()
599 ASSERT(type.type == EbtBool); in getSpirvTypeData()
870 case EbtBool: in declareType()
1294 boolType.type = EbtBool; in getBoolConstant()
1525 if (type == EbtBool) in declareSpecConst()
DTypes.cpp35 case EbtBool: in getBasicString()
265 case EbtBool: in canBeConstructed()
353 case EbtBool: in getBuiltInTypeNameString()
DConstantUnion.h48 type = EbtBool; in setBConst()
/third_party/glslang/glslang/MachineIndependent/
DIntermediate.cpp367 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
387 case EOpConstructBool: newType = EbtBool; break; in addUnaryMath()
572 case EbtBool: newOp = EOpConvBoolToDouble; break; in buildConvertOp()
591 case EbtBool: newOp = EOpConvBoolToFloat; break; in buildConvertOp()
615 case EbtBool: newOp = EOpConvBoolToFloat16; break; in buildConvertOp()
625 case EbtBool: in buildConvertOp()
654 case EbtBool: newOp = EOpConvBoolToInt8; break; in buildConvertOp()
671 case EbtBool: newOp = EOpConvBoolToUint8; break; in buildConvertOp()
689 case EbtBool: newOp = EOpConvBoolToInt16; break; in buildConvertOp()
706 case EbtBool: newOp = EOpConvBoolToUint16; break; in buildConvertOp()
[all …]
/third_party/glslang/glslang/HLSL/
DhlslGrammar.cpp841 basicType = EbtBool; in acceptTemplateVecMatBasicType()
1653 new(&type) TType(EbtBool); in acceptType()
1656 new(&type) TType(EbtBool); in acceptType()
1660 new(&type) TType(EbtBool, EvqTemporary, 2); in acceptType()
1663 new(&type) TType(EbtBool, EvqTemporary, 3); in acceptType()
1666 new(&type) TType(EbtBool, EvqTemporary, 4); in acceptType()
1870 new(&type) TType(EbtBool, EvqTemporary, 0, 1, 1); in acceptType()
1873 new(&type) TType(EbtBool, EvqTemporary, 0, 1, 2); in acceptType()
1876 new(&type) TType(EbtBool, EvqTemporary, 0, 1, 3); in acceptType()
1879 new(&type) TType(EbtBool, EvqTemporary, 0, 1, 4); in acceptType()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DTranslatorMetalUtils.cpp35 case EbtBool: in getBasicMetalString()
261 case EbtBool: in getBuiltInMetalTypeNameString()
DAstHelpers.cpp309 case TBasicType::EbtBool: in HasScalarBasicType()
419 if (toBasicType == TBasicType::EbtBool && fromNode.isVector() && needsExplicitBoolCast) in CoerceSimple()
472 if (toBasicType == TBasicType::EbtBool && fromNode.isVector() && needsExplicitBoolCast) in CoerceSimple()
DToposortStructs.cpp136 new TType(TBasicType::EbtBool), true); in CreateStructEqualityFunction()
156 new TType(TBasicType::EbtBool), true); in CreateStructEqualityFunction()
DModifyStruct.cpp415 padType = new TType(TBasicType::EbtBool, 2); in addPadding()
421 padType = new TType(TBasicType::EbtBool); in addPadding()
424 if (padType->getBasicType() != EbtBool) in addPadding()
813 if (field.type()->getBasicType() != TBasicType::EbtBool) in TestBoolToUint()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DUnfoldShortCircuitToIf.cpp78 const TType *boolType = StaticType::Get<EbtBool, EbpUndefined, EvqTemporary, 1, 1>(); in visitBinary()
105 const TType *boolType = StaticType::Get<EbtBool, EbpUndefined, EvqTemporary, 1, 1>(); in visitBinary()
DRewriteElseBlocks.cpp78 TType boolType(EbtBool, EbpUndefined, EvqTemporary); in rewriteIfElse()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRecordConstantPrecision.cpp51 if (operand->getBasicType() == EbtBool || operand->getBasicType() == EbtStruct) in operandAffectsParentOperationPrecision()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
DRewriteDoWhile.cpp75 const TType *boolType = StaticType::Get<EbtBool, EbpUndefined, EvqTemporary, 1, 1>(); in visitBlock()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DIntermNode_util.cpp70 case EbtBool: in CreateZeroNode()
148 TType type(EbtBool, EbpUndefined, EvqConst, 1); in CreateBoolNode()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
DShaderCompileTreeTest.cpp89 case EbtBool: in visitConstantUnion()

123