Home
last modified time | relevance | path

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

1234

/external/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()
/external/angle/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()
DIntermNode.cpp70 case EbtBool: in UndefinedConstantFoldingError()
665 if (getBasicType() == EbtBool) in setPrecisionFromChildren()
717 ASSERT(getBasicType() != EbtBool); in setBuiltInFunctionPrecision()
1344 setType(TType(EbtBool, EbpUndefined, resultQualifier)); in promote()
1357 setType(TType(EbtBool, EbpUndefined, resultQualifier, operandPrimarySize)); in promote()
1708 setType(TType(EbtBool, EbpUndefined, resultQualifier)); in promote()
1717 ASSERT(mLeft->getBasicType() == EbtBool && mRight->getBasicType() == EbtBool); in promote()
1718 setType(TType(EbtBool, EbpUndefined, resultQualifier)); in promote()
1807 setType(TType(EbtBool, EbpUndefined, resultQualifier)); in promote()
2453 ASSERT(leftType.getBasicType() == EbtBool); in FoldBinary()
[all …]
DStaticType.h231 basicType == EbtBool, in GetForVecMatHelper()
257 basicType == EbtBool,
DBuildSPIRV.cpp298 isOrHasBoolInInterfaceBlock = type.isInterfaceBlockContainingType(EbtBool) || in inferDefaults()
299 type.isStructureContainingType(EbtBool) || in inferDefaults()
300 type.getBasicType() == EbtBool; in inferDefaults()
344 if (fieldType.getBasicType() != EbtBool) in onBlockFieldSelection()
359 isOrHasBoolInInterfaceBlock = fieldType.isStructureContainingType(EbtBool); in onBlockFieldSelection()
458 ASSERT(type.type == EbtBool); in getSpirvTypeData()
697 case EbtBool: in declareType()
1112 boolType.type = EbtBool; in getBoolConstant()
1343 if (type == EbtBool) in declareSpecConst()
DTranslatorMetal.cpp304 TType *boolType = new TType(EbtBool); in insertSampleMaskWritingLogic()
354 TType *boolType = new TType(EbtBool); in insertRasterizerDiscardLogic()
DConstantUnion.h48 type = EbtBool; in setBConst()
DTypes.cpp35 case EbtBool: in getBasicString()
265 case EbtBool: in canBeConstructed()
353 case EbtBool: in getBuiltInTypeNameString()
/external/angle/third_party/vulkan-deps/glslang/src/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 …]
DSpirvIntrinsics.cpp217 else if (constant->getBasicType() == EbtBool) { in getSpirvDecorateQualifierString()
282 constant->getBasicType() != EbtBool && in makeSpirvTypeParameters()
/external/deqp-deps/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 …]
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DTranslatorMetalUtils.cpp35 case EbtBool: in getBasicMetalString()
261 case EbtBool: in getBuiltInMetalTypeNameString()
DToposortStructs.cpp136 new TType(TBasicType::EbtBool), true); in CreateStructEqualityFunction()
156 new TType(TBasicType::EbtBool), true); in CreateStructEqualityFunction()
/external/deqp-deps/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 …]
/external/angle/third_party/vulkan-deps/glslang/src/glslang/HLSL/
DhlslGrammar.cpp843 basicType = EbtBool; in acceptTemplateVecMatBasicType()
1655 new(&type) TType(EbtBool); in acceptType()
1658 new(&type) TType(EbtBool); in acceptType()
1662 new(&type) TType(EbtBool, EvqTemporary, 2); in acceptType()
1665 new(&type) TType(EbtBool, EvqTemporary, 3); in acceptType()
1668 new(&type) TType(EbtBool, EvqTemporary, 4); in acceptType()
1872 new(&type) TType(EbtBool, EvqTemporary, 0, 1, 1); in acceptType()
1875 new(&type) TType(EbtBool, EvqTemporary, 0, 1, 2); in acceptType()
1878 new(&type) TType(EbtBool, EvqTemporary, 0, 1, 3); in acceptType()
1881 new(&type) TType(EbtBool, EvqTemporary, 0, 1, 4); in acceptType()
[all …]
/external/angle/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()
/external/angle/src/compiler/translator/tree_ops/gl/
DRecordConstantPrecision.cpp101 if (parentAsAggregate->isConstructor() && parentAsAggregate->getBasicType() == EbtBool) in operandAffectsParentOperationPrecision()
/external/angle/src/compiler/translator/tree_ops/gl/mac/
DRewriteDoWhile.cpp75 const TType *boolType = StaticType::Get<EbtBool, EbpUndefined, EvqTemporary, 1, 1>(); in visitBlock()
/external/angle/src/tests/test_utils/
DShaderCompileTreeTest.cpp89 case EbtBool: in visitConstantUnion()
/external/angle/src/compiler/translator/tree_util/
DIntermNode_util.cpp70 case EbtBool: in CreateZeroNode()
148 TType type(EbtBool, EbpUndefined, EvqConst, 1); in CreateBoolNode()

1234