/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
D | ConstantUnion.h | 42 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 …]
|
D | Intermediate.cpp | 167 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 …]
|
D | BaseTypes.h | 52 EbtBool, enumerator 114 case EbtBool: return "bool"; in getBasicString()
|
D | ParseHelper.cpp | 619 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/ |
D | ConstantUnion.cpp | 78 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 …]
|
D | util.cpp | 275 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()
|
D | ShaderStorageBlockFunctionHLSL.cpp | 37 case EbtBool: in OutputSSBOLoadFunctionBody() 123 if (ssboFunction.type.getBasicType() == EbtBool) in OutputSSBOStoreFunctionBody() 135 if (ssboFunction.type.getBasicType() == EbtBool) in OutputSSBOStoreFunctionBody()
|
D | TranslatorMetal.cpp | 242 TType *boolType = new TType(EbtBool); in insertSampleMaskWritingLogic() 292 TType *boolType = new TType(EbtBool); in insertRasterizerDiscardLogic()
|
D | StaticType.h | 238 basicType == EbtBool, in GetForVecMatHelper() 262 basicType == EbtBool,
|
D | IntermNode.cpp | 71 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 …]
|
D | BuildSPIRV.cpp | 390 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()
|
D | Types.cpp | 35 case EbtBool: in getBasicString() 265 case EbtBool: in canBeConstructed() 353 case EbtBool: in getBuiltInTypeNameString()
|
D | ConstantUnion.h | 48 type = EbtBool; in setBConst()
|
/third_party/glslang/glslang/MachineIndependent/ |
D | Intermediate.cpp | 367 …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/ |
D | hlslGrammar.cpp | 841 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/ |
D | TranslatorMetalUtils.cpp | 35 case EbtBool: in getBasicMetalString() 261 case EbtBool: in getBuiltInMetalTypeNameString()
|
D | AstHelpers.cpp | 309 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()
|
D | ToposortStructs.cpp | 136 new TType(TBasicType::EbtBool), true); in CreateStructEqualityFunction() 156 new TType(TBasicType::EbtBool), true); in CreateStructEqualityFunction()
|
D | ModifyStruct.cpp | 415 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/ |
D | UnfoldShortCircuitToIf.cpp | 78 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()
|
D | RewriteElseBlocks.cpp | 78 TType boolType(EbtBool, EbpUndefined, EvqTemporary); in rewriteIfElse()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
D | RecordConstantPrecision.cpp | 51 if (operand->getBasicType() == EbtBool || operand->getBasicType() == EbtStruct) in operandAffectsParentOperationPrecision()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/ |
D | RewriteDoWhile.cpp | 75 const TType *boolType = StaticType::Get<EbtBool, EbpUndefined, EvqTemporary, 1, 1>(); in visitBlock()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/ |
D | IntermNode_util.cpp | 70 case EbtBool: in CreateZeroNode() 148 TType type(EbtBool, EbpUndefined, EvqConst, 1); in CreateBoolNode()
|
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | ShaderCompileTreeTest.cpp | 89 case EbtBool: in visitConstantUnion()
|