/third_party/glslang/glslang/MachineIndependent/ |
H A D | Intermediate.cpp | 119 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addBinaryMath() 131 if (left->isReference() && isTypeInt(right->getBasicType())) { in addBinaryMath() 145 if (op == EOpAdd && right->isReference() && isTypeInt(left->getBasicType())) { in addBinaryMath() 288 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addAssign() 358 if (child->getType().getBasicType() == EbtBlock) in addUnaryMath() 367 if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().isArray() || child->getType().isVector()) { in addUnaryMath() 377 if (child->getType().getBasicType() == EbtStruct || child->getType().isArray()) in addUnaryMath() 538 switch (node->getBasicType()) { in isConversionAllowed() [all...] |
H A D | SpirvIntrinsics.cpp | 214 if (constant->getBasicType() == EbtFloat) { in getSpirvDecorateQualifierString() 217 } else if (constant->getBasicType() == EbtInt) { in getSpirvDecorateQualifierString() 220 } else if (constant->getBasicType() == EbtUint) { in getSpirvDecorateQualifierString() 223 } else if (constant->getBasicType() == EbtBool) { in getSpirvDecorateQualifierString() 226 } else if (constant->getBasicType() == EbtString) { in getSpirvDecorateQualifierString() 287 if (constant->getBasicType() != EbtFloat && in makeSpirvTypeParameters() 288 constant->getBasicType() != EbtInt && in makeSpirvTypeParameters() 289 constant->getBasicType() != EbtUint && in makeSpirvTypeParameters() 290 constant->getBasicType() != EbtBool && in makeSpirvTypeParameters() 291 constant->getBasicType() ! in makeSpirvTypeParameters() [all...] |
H A D | reflection.cpp | 98 if (base.getType().getBasicType() == EbtBlock) { in addUniform() 138 if (type.getBasicType() == EbtBlock) { in addPipeIOVariable() 145 if (type.isArray() && type.getBasicType() == EbtBlock) { in addPipeIOVariable() 199 if (type.getBasicType() == EbtBlock) in getArrayStride() 220 bool blockParent = (parentType.getBasicType() == EbtBlock && parentType.getQualifier().storage == EvqBuffer); in countAggregateMembers() 261 bool blockParent = (baseType.getBasicType() == EbtBlock && baseType.getQualifier().storage == EvqBuffer); in blowUpActiveAggregate() 280 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate() 283 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate() 301 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate() 304 else if (strictArraySuffix || baseType.getBasicType() ! in blowUpActiveAggregate() [all...] |
H A D | ParseHelper.cpp | 626 if (base->getBasicType() == EbtBlock) { in handleBracketDereference() 637 else if (base->getBasicType() == EbtSampler && version >= 130) { in handleBracketDereference() 676 if ((! limits.generalSamplerIndexing && base->getBasicType() == EbtSampler) || in handleIndexLimits() 982 (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) { in handleDotDereference() 1072 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotSwizzle() 1086 result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision)); in handleDotSwizzle() 1090 result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision, selectors.size())); in handleDotSwizzle() 1252 if (function.getType().getBasicType() != EbtVoid) in handleFunctionDefinition() 1590 if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions() 1625 else if (function.getType().getBasicType() ! in computeBuiltinPrecisions() [all...] |
H A D | linkValidate.cpp | 585 block->getType().getBasicType() != unitBlock->getType().getBasicType() || in mergeBlockDefinitions() 719 if (symbol->getType().getBasicType() == EbtBlock && unitSymbol->getType().getBasicType() == EbtBlock) { in mergeLinkerObjects() 787 if (unitLinkerObjects[unitLinkObj]->getAsSymbolNode()->getBasicType() == EbtBlock && in mergeLinkerObjects() 810 if (symbol->getBasicType() == EbtBlock && IsAnonymous(symbol->getName())) { in mergeLinkerObjects() 936 if (symbol.getType().getBasicType() == EbtBlock && unitSymbol.getType().getBasicType() == EbtBlock && in mergeErrorCheck() 1152 if (symbol.getType().getBasicType() == EbtBlock && unitSymbol.getType().getBasicType() in mergeErrorCheck() [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | IntermNode.cpp | 190 if (IsPrecisionApplicableToType(node->getBasicType())) in PropagatePrecisionIfApplicable() 671 if (getBasicType() == EbtBool || getBasicType() == EbtVoid || getBasicType() == EbtStruct) in derivePrecision() 863 TBasicType basicType = getBasicType(); in getConstantValue() 1419 ASSERT(resultType.getBasicType() == EbtFloat); in promote() 1694 setType(TType(mOperand->getBasicType(), EbpUndefined, resultQualifier, in promote() 1942 ASSERT(mLeft->getBasicType() == EbtBool && mRight->getBasicType() == EbtBool); in promote() 2328 if (constArray && mType.getBasicType() in fold() [all...] |
H A D | ParseContext.cpp | 41 if (IsSampler(type.getBasicType())) in ContainsSampler() 45 if (type.getBasicType() == EbtStruct) in ContainsSampler() 66 ASSERT(IsImage(imageNode->getBasicType())); in GetImageArgumentToken() 83 if (!SupportsPrecision(type.getBasicType())) in CanSetDefaultPrecisionOnType() 87 if (type.getBasicType() == EbtUInt) in CanSetDefaultPrecisionOnType() 660 if (node->getBasicType() == EbtVoid) in checkCanBeLValue() 664 if (IsOpaqueType(node->getBasicType())) in checkCanBeLValue() 667 message += getBasicString(node->getBasicType()); in checkCanBeLValue() 788 if (type.getBasicType() != EbtStruct && IsOpaqueType(argTyped->getBasicType())) in checkConstructorArguments() [all...] |
H A D | ResourcesHLSL.cpp | 30 if (IsSampler(type.getBasicType())) in UniformRegisterPrefix() 104 switch (type.getBasicType()) in InterfaceBlockScalarVectorFieldPaddingString() 211 if (IsSampler(type.getBasicType()) || in assignUniformRegister() 212 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister() 216 else if (IsImage(type.getBasicType())) in assignUniformRegister() 254 if (IsSampler(type.getBasicType()) || in assignUniformRegister() 255 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister() 259 else if (IsImage(type.getBasicType())) in assignUniformRegister() 279 ASSERT(IsSampler(type.getBasicType())); in assignSamplerInStructUniformRegister() 436 out << "uniform " << SamplerString(type.getBasicType()) << " sampler in outputHLSL4_0_FL9_3Sampler() [all...] |
H A D | OutputVulkanGLSL.cpp | 37 bool needsSetBinding = IsSampler(type.getBasicType()) || in writeLayoutQualifier() 40 IsImage(type.getBasicType()) || IsSubpassInputType(type.getBasicType()); in writeLayoutQualifier() 44 bool needsInputAttachmentIndex = IsSubpassInputType(type.getBasicType()); in writeLayoutQualifier() 160 if (type.getBasicType() == EbtSamplerExternalOES) in writeVariableType()
|
/third_party/glslang/glslang/Include/ |
H A D | Types.h | 126 TBasicType getBasicType() const { return type; } in getBasicType() function 1800 virtual TBasicType getBasicType() const { return basicType; } in getBasicType() function in TType 1872 bool isReference() const { return getBasicType() == EbtReference; } in isReference() 1873 bool isSpirvType() const { return getBasicType() == EbtSpirvType; } in isSpirvType() 2492 if (getBasicType() == EbtStruct || getBasicType() == EbtBlock) { 2705 return right.isCoopMatNV() && (getBasicType() == right.getBasicType()) && typeParameters == nullptr && 2709 return ((getBasicType() == right.getBasicType()) || (getBasicTyp [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
H A D | TranslatorMetalUtils.cpp | 25 switch (t->getBasicType()) in getBasicMetalString() 233 switch (t->getBasicType()) in getBuiltInMetalTypeNameString() 292 ASSERT(t->getBasicType() != EbtStruct); in getBuiltInMetalTypeNameString() 293 ASSERT(t->getBasicType() != EbtInterfaceBlock); in getBuiltInMetalTypeNameString() 299 if (type.getBasicType() == EbtStruct) in GetMetalTypeName()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
H A D | vktShaderExecutor.cpp | 104 if(glu::isDataTypeFloatType(symIter->varType.getBasicType())) in packFloat16Bit() 106 if(glu::isDataTypeVector(symIter->varType.getBasicType())) in packFloat16Bit() 108 for(int i = 0; i < glu::getDataTypeScalarSize(symIter->varType.getBasicType()); i++) in packFloat16Bit() 113 else if (glu::isDataTypeMatrix(symIter->varType.getBasicType())) in packFloat16Bit() 117 switch (symIter->varType.getBasicType()) in packFloat16Bit() 226 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader() 228 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader() 247 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(input->varType.getBasicType())) in generateVertexShader() 249 const std::string tname = glu::getDataTypeName(getDataTypeFloat16Scalars(input->varType.getBasicType())); in generateVertexShader() 259 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(output->varType.getBasicType())) in generateVertexShader() [all...] |
H A D | vktShaderCommonFunctionTests.cpp | 209 sizes.push_back(getComponentByteSize(sym.varType.getBasicType())); in getComponentByteSizes() 217 totalSize += getComponentByteSize(sym.varType.getBasicType()) * sym.varType.getScalarSize(); in computeTotalByteSize() 230 const auto componentBytes = getComponentByteSize(var.varType.getBasicType()); in getInputOutputPointers() 302 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<() 511 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 522 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 579 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 593 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 637 const glu::DataType type = spec.inputs[0].varType.getBasicType(); in infNanRandomFloats() 702 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
H A D | vktShaderExecutor.cpp | 104 if(glu::isDataTypeFloatType(symIter->varType.getBasicType())) in packFloat16Bit() 106 if(glu::isDataTypeVector(symIter->varType.getBasicType())) in packFloat16Bit() 108 for(int i = 0; i < glu::getDataTypeScalarSize(symIter->varType.getBasicType()); i++) in packFloat16Bit() 113 else if (glu::isDataTypeMatrix(symIter->varType.getBasicType())) in packFloat16Bit() 117 switch (symIter->varType.getBasicType()) in packFloat16Bit() 226 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader() 228 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader() 247 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(input->varType.getBasicType())) in generateVertexShader() 249 const std::string tname = glu::getDataTypeName(getDataTypeFloat16Scalars(input->varType.getBasicType())); in generateVertexShader() 259 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(output->varType.getBasicType())) in generateVertexShader() [all...] |
H A D | vktShaderCommonFunctionTests.cpp | 209 sizes.push_back(getComponentByteSize(sym.varType.getBasicType())); in getComponentByteSizes() 217 totalSize += getComponentByteSize(sym.varType.getBasicType()) * sym.varType.getScalarSize(); in computeTotalByteSize() 230 const auto componentBytes = getComponentByteSize(var.varType.getBasicType()); in getInputOutputPointers() 302 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<() 511 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 522 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 579 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 593 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 637 const glu::DataType type = spec.inputs[0].varType.getBasicType(); in infNanRandomFloats() 698 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
H A D | Intermediate.cpp | 67 switch(type.getBasicType()) in TypeToConstructorOperator() 341 if (left->isMatrix() || left->isArray() || left->isVector() || left->getBasicType() == EbtStruct) { in addBinaryMath() 348 if (left->getBasicType() != EbtBool || left->isMatrix() || left->isArray() || left->isVector()) { in addBinaryMath() 355 if (!IsInteger(left->getBasicType()) || left->isMatrix() || left->isArray()) { in addBinaryMath() 363 if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool) { in addBinaryMath() 369 if (left->getBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() == EbtFloat) { in addBinaryMath() 380 if(!IsInteger(left->getBasicType()) || !IsIntege in addBinaryMath() [all...] |
H A D | SymbolTable.h | 239 TBasicType basicType = type->getBasicType(); in IsGenType() 250 TBasicType basicType = type->getBasicType(); in IsVecType() 268 switch(type->getBasicType()) in GenType() 289 switch(type->getBasicType()) in VecType() 355 if(ptype1->getBasicType() == EbtGSampler2D) in insertBuiltIn() 358 bool gvec4 = (rvalue->getBasicType() == EbtGVec4); in insertBuiltIn() 363 else if(ptype1->getBasicType() == EbtGSampler3D) in insertBuiltIn() 366 bool gvec4 = (rvalue->getBasicType() == EbtGVec4); in insertBuiltIn() 371 else if(ptype1->getBasicType() == EbtGSamplerCube) in insertBuiltIn() 374 bool gvec4 = (rvalue->getBasicType() in insertBuiltIn() [all...] |
H A D | ParseHelper.cpp | 374 if(IsSampler(node->getBasicType())) in lValueErrorCheck() 378 else if(node->getBasicType() == EbtVoid) in lValueErrorCheck() 587 if (op != EOpConstructStruct && IsSampler(typed->getBasicType())) { in constructorErrorCheck() 591 if (typed->getBasicType() == EbtVoid) { in constructorErrorCheck() 619 if (type->getBasicType() != EbtBool || type->isArray() || type->isMatrix() || type->isVector()) { in boolErrorCheck() 778 type.getBasicType() != EbtStruct && IsSampler(type.getBasicType())) { in parameterSamplerErrorCheck() 788 if (IsSampler(type.getBasicType())) in containsSampler() 791 if (type.getBasicType() == EbtStruct || type.isInterfaceBlock()) { in containsSampler() 817 if (constant->getBasicType() in arraySizeErrorCheck() [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fProgramInterfaceDefinition.cpp | 71 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype() 130 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexInput() 141 const bool isOpaqueType = !glu::isDataTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isDataTypeMatrix(varType.getBasicType()); in isIllegalVertexOutput() 143 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexOutput() 187 const bool isOpaqueType = !glu::isDataTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isDataTypeMatrix(varType.getBasicType()); in isIllegalFragmentOutput() 189 if (glu::isDataTypeBoolOrBVec(varType.getBasicType()) || isOpaqueTyp in isIllegalFragmentOutput() [all...] |
H A D | es31fShaderCommonFunctionTests.cpp | 356 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<() 484 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 496 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 566 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 589 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 666 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 696 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 778 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 787 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 841 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
H A D | ShaderImage_test.cpp | 40 ASSERT_EQ(imageType, storeArgument1Typed->getBasicType()); in CheckImageStoreCall() 43 ASSERT_EQ(EbtInt, storeArgument2Typed->getBasicType()); in CheckImageStoreCall() 47 ASSERT_EQ(storeValueType, storeArgument3Typed->getBasicType()); in CheckImageStoreCall() 67 ASSERT_EQ(imageType, loadArgument1Typed->getBasicType()); in CheckImageLoadCall() 70 ASSERT_EQ(EbtInt, loadArgument2Typed->getBasicType()); in CheckImageLoadCall() 103 ASSERT_EQ(imageType, myImageNode->getBasicType()); in CheckImageDeclaration()
|
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsShaderExecUtil.cpp | 117 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader() 119 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader() 155 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader() 157 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader() 196 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateGeometryShader() 198 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateGeometryShader() 235 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateGeometryShader() 237 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateGeometryShader() 311 if (useIntOutputs && glu::isDataTypeFloatOrVec(output.varType.getBasicType())) in generateFragShaderOutputDecl() 313 const int vecSize = glu::getDataTypeScalarSize(output.varType.getBasicType()); in generateFragShaderOutputDecl() [all...] |
/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluVarTypeUtil.hpp | 195 struct IsScalarType { bool operator() (const VarType& type) const { return type.isBasicType() && isDataTypeScalar(type.getBasicType()); } }; in operator ()() 196 struct IsVectorOrScalarType { bool operator() (const VarType& type) const { return type.isBasicType() && isDataTypeScalarOrVector(type.getBasicType()); } }; in operator ()() 253 DE_ASSERT(isDataTypeMatrix(parentType.getBasicType())); in removeTraversed() 254 if (curComp.index+1 < getDataTypeMatrixNumColumns(parentType.getBasicType())) in removeTraversed() 259 DE_ASSERT(isDataTypeVector(parentType.getBasicType())); in removeTraversed() 260 if (curComp.index+1 < getDataTypeScalarSize(parentType.getBasicType())) in removeTraversed() 300 DataType basicType = curType.getBasicType(); in findNext() 355 DataType basicType = curType->getBasicType(); in isValidTypePath() 402 DataType basicType = curType->getBasicType(); in getVarType()
|
H A D | gluVarTypeUtil.cpp | 140 else if (curType.isBasicType() && isDataTypeMatrix(curType.getBasicType())) in parseTypePath() 142 TCU_CHECK(de::inBounds(ndx, 0, getDataTypeMatrixNumColumns(curType.getBasicType()))); in parseTypePath() 145 else if (curType.isBasicType() && isDataTypeVector(curType.getBasicType())) in parseTypePath() 147 TCU_CHECK(de::inBounds(ndx, 0, getDataTypeScalarSize(curType.getBasicType()))); in parseTypePath()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fShaderCommonFunctionTests.cpp | 281 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<() 409 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 421 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 491 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 514 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 591 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 621 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 703 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 712 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 766 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() [all...] |