Home
last modified time | relevance | path

Searched refs:getBasicType (Results 1 – 25 of 190) sorted by relevance

12345678

/third_party/glslang/glslang/MachineIndependent/
DIntermediate.cpp119 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().… in addUnaryMath()
377 if (child->getType().getBasicType() == EbtStruct || child->getType().isArray()) in addUnaryMath()
540 switch (node->getBasicType()) { in isConversionAllowed()
551 if (getSource() == EShSourceHlsl && node->getBasicType() == EbtSampler) in isConversionAllowed()
556 if (node->getBasicType() == EbtSampler && op == EOpAssign && in isConversionAllowed()
[all …]
DSpirvIntrinsics.cpp207 if (constant->getBasicType() == EbtFloat) { in getSpirvDecorateQualifierString()
211 else if (constant->getBasicType() == EbtInt) { in getSpirvDecorateQualifierString()
215 else if (constant->getBasicType() == EbtUint) { in getSpirvDecorateQualifierString()
219 else if (constant->getBasicType() == EbtBool) { in getSpirvDecorateQualifierString()
223 else if (constant->getBasicType() == EbtString) { in getSpirvDecorateQualifierString()
281 if (constant->getBasicType() != EbtFloat && in makeSpirvTypeParameters()
282 constant->getBasicType() != EbtInt && in makeSpirvTypeParameters()
283 constant->getBasicType() != EbtUint && in makeSpirvTypeParameters()
284 constant->getBasicType() != EbtBool && in makeSpirvTypeParameters()
285 constant->getBasicType() != EbtString) in makeSpirvTypeParameters()
Dreflection.cpp100 if (base.getType().getBasicType() == EbtBlock) { in addUniform()
140 if (type.getBasicType() == EbtBlock) { in addPipeIOVariable()
147 if (type.isArray() && type.getBasicType() == EbtBlock) { in addPipeIOVariable()
201 if (type.getBasicType() == EbtBlock) in getArrayStride()
222 …bool blockParent = (parentType.getBasicType() == EbtBlock && parentType.getQualifier().storage == … in countAggregateMembers()
263 …bool blockParent = (baseType.getBasicType() == EbtBlock && baseType.getQualifier().storage == EvqB… in blowUpActiveAggregate()
282 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate()
285 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate()
303 if (terminalType->getBasicType() == EbtBlock) {} in blowUpActiveAggregate()
306 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) { in blowUpActiveAggregate()
[all …]
DParseHelper.cpp639 if (base->getBasicType() == EbtBlock) { in handleBracketDereference()
650 else if (base->getBasicType() == EbtSampler && version >= 130) { in handleBracketDereference()
693 if ((! limits.generalSamplerIndexing && base->getBasicType() == EbtSampler) || in handleIndexLimits()
1001 (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) { in handleDotDereference()
1075 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotSwizzle()
1089 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
1093 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
1259 if (function.getType().getBasicType() != EbtVoid) in handleFunctionDefinition()
1602 if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
1637 else if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.cpp192 ASSERT(mType.getBasicType() != EbtBool || precision == EbpUndefined); in setTypePreservePrecision()
568 if (getBasicType() != EbtStruct) in setPrecisionAndQualifier()
600 if (getBasicType() == EbtBool) in setPrecisionFromChildren()
653 ASSERT(getBasicType() != EbtBool); in setBuiltInFunctionPrecision()
661 if (typed && IsSampler(typed->getBasicType())) in setBuiltInFunctionPrecision()
736 TBasicType basicType = getBasicType(); in getConstantValue()
1268 setType(TType(mOperand->getBasicType(), EbpHigh, resultQualifier, operandPrimarySize)); in promote()
1420 setType(TType(mOperand->getBasicType(), mOperand->getPrecision(), resultQualifier, in promote()
1527 setType(TType(mLeft->getBasicType(), mLeft->getPrecision(), resultQualifier, in promote()
1532 setType(TType(mLeft->getBasicType(), mLeft->getPrecision(), resultQualifier)); in promote()
[all …]
DResourcesHLSL.cpp30 if (IsSampler(type.getBasicType())) in UniformRegisterPrefix()
144 if (IsSampler(type.getBasicType()) || in assignUniformRegister()
145 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister()
149 else if (IsImage(type.getBasicType())) in assignUniformRegister()
169 if (IsSampler(type.getBasicType()) || in assignUniformRegister()
170 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister()
174 else if (IsImage(type.getBasicType())) in assignUniformRegister()
194 ASSERT(IsSampler(type.getBasicType())); in assignSamplerInStructUniformRegister()
351 out << "uniform " << SamplerString(type.getBasicType()) << " sampler_" in outputHLSL4_0_FL9_3Sampler()
354 out << "uniform " << TextureString(type.getBasicType()) << " texture_" in outputHLSL4_0_FL9_3Sampler()
[all …]
DParseContext.cpp41 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()
598 if (node->getBasicType() == EbtVoid) in checkCanBeLValue()
602 if (IsOpaqueType(node->getBasicType())) in checkCanBeLValue()
605 message += getBasicString(node->getBasicType()); in checkCanBeLValue()
726 if (type.getBasicType() != EbtStruct && IsOpaqueType(argTyped->getBasicType())) in checkConstructorArguments()
729 reason += getBasicString(argTyped->getBasicType()); in checkConstructorArguments()
[all …]
Dutil.cpp201 if (type.getBasicType() == EbtFloat) in GLVariableType()
284 else if (type.getBasicType() == EbtInt) in GLVariableType()
309 else if (type.getBasicType() == EbtUInt) in GLVariableType()
334 else if (type.getBasicType() == EbtBool) in GLVariableType()
360 switch (type.getBasicType()) in GLVariableType()
445 if (type.getBasicType() == EbtFloat) in GLVariablePrecision()
462 else if (type.getBasicType() == EbtInt || type.getBasicType() == EbtUInt) in GLVariablePrecision()
507 if (type.getBasicType() == EbtStruct) in GetTypeName()
DOutputGLSLBase.cpp191 if (IsImage(type.getBasicType())) in getCommonLayoutQualifiers()
201 if (IsAtomicCounter(type.getBasicType())) in getCommonLayoutQualifiers()
217 ASSERT(IsImage(type.getBasicType()) || IsStorageBuffer(type.getQualifier())); in getMemoryQualifiers()
223 ASSERT(IsImage(type.getBasicType()) || IsStorageBuffer(type.getQualifier())); in getMemoryQualifiers()
229 ASSERT(IsImage(type.getBasicType()) || IsStorageBuffer(type.getQualifier())); in getMemoryQualifiers()
235 ASSERT(IsImage(type.getBasicType()) || IsStorageBuffer(type.getQualifier())); in getMemoryQualifiers()
241 ASSERT(IsImage(type.getBasicType()) || IsStorageBuffer(type.getQualifier())); in getMemoryQualifiers()
257 if (type.getBasicType() == EbtInterfaceBlock) in writeLayoutQualifier()
279 if (IsOpaqueType(type.getBasicType())) in writeLayoutQualifier()
357 if (type.getBasicType() == EbtStruct && !structDeclared(type.getStruct())) in writeVariableType()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.cpp190 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() == EbtUInt) in fold()
2335 if (typedArg->getBasicType() == EbtFloat) in fold()
2426 ASSERT(leftType.getBasicType() == EbtFloat && rightType.getBasicType() == EbtFloat); in FoldBinary()
2459 if (IsFloatDivision(leftType.getBasicType(), rightType.getBasicType())) in FoldBinary()
[all …]
DResourcesHLSL.cpp30 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 …]
DParseContext.cpp41 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()
791 reason += getBasicString(argTyped->getBasicType()); in checkConstructorArguments()
[all …]
DOutputVulkanGLSL.cpp37 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/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
DvktShaderExecutor.cpp104 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 …std::string tname = glu::getDataTypeName(getDataTypeFloat16Scalars(input->varType.getBasicType())); in generateVertexShader()
259 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(output->varType.getBasicType())) in generateVertexShader()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp104 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 …std::string tname = glu::getDataTypeName(getDataTypeFloat16Scalars(input->varType.getBasicType())); in generateVertexShader()
259 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(output->varType.getBasicType())) in generateVertexShader()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DTranslatorMetalUtils.cpp25 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/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DIntermediate.cpp67 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() =… in addBinaryMath()
380 if(!IsInteger(left->getBasicType()) || !IsInteger(right->getBasicType())) in addBinaryMath()
388 if(!isBitShift && left->getBasicType() != right->getBasicType()) in addBinaryMath()
482 …if (!IsInteger(child->getType().getBasicType()) || child->getType().isMatrix() || child->getType()… in addUnaryMath()
488 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
[all …]
DSymbolTable.h239 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)
358 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
363 else if(ptype1->getBasicType() == EbtGSampler3D)
366 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
371 else if(ptype1->getBasicType() == EbtGSamplerCube)
374 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
[all …]
DParseHelper.cpp374 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() == EbtUInt) in arraySizeErrorCheck()
1037 if(voidErrorCheck(line, identifier, type.getBasicType())) in declareVariable()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fProgramInterfaceDefinition.cpp71 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype()
130 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexInput()
141 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalVertexOutput()
143 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexOutput()
187 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalFragmentOutput()
189 …if (glu::isDataTypeBoolOrBVec(varType.getBasicType()) || isOpaqueType || glu::isDataTypeMatrix(var… in isIllegalFragmentOutput()
211 …return glu::isDataTypeIntOrIVec(varType.getBasicType()) || glu::isDataTypeUintOrUVec(varType.getBa… in isTypeIntegerOrContainsIntegers()
Des31fShaderIntegerFunctionTests.cpp81 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
343 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
397 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
439 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
491 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
533 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
583 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
623 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
674 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
714 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/
DShaderImage_test.cpp40 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/skia/third_party/externals/angle2/src/tests/compiler_tests/
DShaderImage_test.cpp40 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/framework/opengl/
DgluVarTypeUtil.hpp195 …nst VarType& type) const { return type.isBasicType() && isDataTypeScalar(type.getBasicType()); } }; in operator ()()
196 …ype& 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()
/third_party/vk-gl-cts/modules/glshared/
DglsShaderExecUtil.cpp117 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 …]

12345678