Home
last modified time | relevance | path

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

123456

/external/angle/third_party/glslang/src/glslang/MachineIndependent/
DIntermediate.cpp119 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addBinaryMath()
131 if (left->isReference() && isTypeInt(right->getBasicType())) { in addBinaryMath()
144 if (op == EOpAdd && right->isReference() && isTypeInt(left->getBasicType())) { in addBinaryMath()
287 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addAssign()
357 if (child->getType().getBasicType() == EbtBlock) in addUnaryMath()
366 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
376 if (child->getType().getBasicType() == EbtStruct || child->getType().isArray()) in addUnaryMath()
536 switch (node->getBasicType()) { in isConversionAllowed()
547 if (getSource() == EShSourceHlsl && node->getBasicType() == EbtSampler) in isConversionAllowed()
552 if (node->getBasicType() == EbtSampler && op == EOpAssign && in isConversionAllowed()
[all …]
Dreflection.cpp123 if (type.getBasicType() == EbtBlock) { in addPipeIOVariable()
130 if (type.isArray() && type.getBasicType() == EbtBlock) { in addPipeIOVariable()
184 if (type.getBasicType() == EbtBlock) in getArrayStride()
205 …bool blockParent = (parentType.getBasicType() == EbtBlock && parentType.getQualifier().storage == … in countAggregateMembers()
246 …bool blockParent = (baseType.getBasicType() == EbtBlock && baseType.getQualifier().storage == EvqB… in blowUpActiveAggregate()
267 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate()
287 } else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) { in blowUpActiveAggregate()
367 …if (terminalType->getBasicType() == EbtBlock && terminalType->getQualifier().storage == EvqBuffer … in blowUpActiveAggregate()
529 bool block = base->getBasicType() == EbtBlock; in addDereferencedUniform()
561 …bool blockParent = (base->getType().getBasicType() == EbtBlock && base->getQualifier().storage == … in addDereferencedUniform()
[all …]
DParseHelper.cpp474 if (base->getBasicType() == EbtBlock) { in handleBracketDereference()
485 else if (base->getBasicType() == EbtSampler && version >= 130) { in handleBracketDereference()
528 if ((! limits.generalSamplerIndexing && base->getBasicType() == EbtSampler) || in handleIndexLimits()
824 (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) { in handleDotDereference()
845 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotDereference()
859 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotDereference()
863 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotDereference()
1046 if (function.getType().getBasicType() != EbtVoid) in handleFunctionDefinition()
1338 if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
1373 else if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
[all …]
/external/deqp-deps/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()
144 if (op == EOpAdd && right->isReference() && isTypeInt(left->getBasicType())) { in addBinaryMath()
287 if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock) in addAssign()
357 if (child->getType().getBasicType() == EbtBlock) in addUnaryMath()
366 …if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().… in addUnaryMath()
376 if (child->getType().getBasicType() == EbtStruct || child->getType().isArray()) in addUnaryMath()
536 switch (node->getBasicType()) { in isConversionAllowed()
547 if (getSource() == EShSourceHlsl && node->getBasicType() == EbtSampler) in isConversionAllowed()
552 if (node->getBasicType() == EbtSampler && op == EOpAssign && in isConversionAllowed()
[all …]
DParseHelper.cpp484 if (base->getBasicType() == EbtBlock) { in handleBracketDereference()
495 else if (base->getBasicType() == EbtSampler && version >= 130) { in handleBracketDereference()
538 if ((! limits.generalSamplerIndexing && base->getBasicType() == EbtSampler) || in handleIndexLimits()
834 (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) { in handleDotDereference()
902 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotSwizzle()
916 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
920 …result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision… in handleDotSwizzle()
1067 if (function.getType().getBasicType() != EbtVoid) in handleFunctionDefinition()
1359 if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
1394 else if (function.getType().getBasicType() != EbtBool) in computeBuiltinPrecisions()
[all …]
Dreflection.cpp123 if (type.getBasicType() == EbtBlock) { in addPipeIOVariable()
130 if (type.isArray() && type.getBasicType() == EbtBlock) { in addPipeIOVariable()
184 if (type.getBasicType() == EbtBlock) in getArrayStride()
205 …bool blockParent = (parentType.getBasicType() == EbtBlock && parentType.getQualifier().storage == … in countAggregateMembers()
246 …bool blockParent = (baseType.getBasicType() == EbtBlock && baseType.getQualifier().storage == EvqB… in blowUpActiveAggregate()
267 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate()
287 } else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) { in blowUpActiveAggregate()
367 …if (terminalType->getBasicType() == EbtBlock && terminalType->getQualifier().storage == EvqBuffer … in blowUpActiveAggregate()
529 bool block = base->getBasicType() == EbtBlock; in addDereferencedUniform()
561 …bool blockParent = (base->getType().getBasicType() == EbtBlock && base->getQualifier().storage == … in addDereferencedUniform()
[all …]
/external/angle/src/compiler/translator/
DIntermNode.cpp193 ASSERT(mType.getBasicType() != EbtBool || precision == EbpUndefined); in setTypePreservePrecision()
582 if (getBasicType() != EbtStruct) in setPrecisionAndQualifier()
614 if (getBasicType() == EbtBool) in setPrecisionFromChildren()
667 ASSERT(getBasicType() != EbtBool); in setBuiltInFunctionPrecision()
675 if (typed && IsSampler(typed->getBasicType())) in setBuiltInFunctionPrecision()
750 TBasicType basicType = getBasicType(); in getConstantValue()
1284 setType(TType(mOperand->getBasicType(), EbpHigh, resultQualifier, operandPrimarySize)); in promote()
1462 setType(TType(mOperand->getBasicType(), mOperand->getPrecision(), resultQualifier, in promote()
1569 setType(TType(mLeft->getBasicType(), mLeft->getPrecision(), resultQualifier, in promote()
1574 setType(TType(mLeft->getBasicType(), mLeft->getPrecision(), resultQualifier)); in promote()
[all …]
DResourcesHLSL.cpp35 if (IsSampler(type.getBasicType())) in UniformRegisterPrefix()
156 if (IsSampler(type.getBasicType()) || in assignUniformRegister()
157 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister()
161 else if (IsImage(type.getBasicType())) in assignUniformRegister()
199 if (IsSampler(type.getBasicType()) || in assignUniformRegister()
200 (IsImage(type.getBasicType()) && type.getMemoryQualifier().readonly)) in assignUniformRegister()
204 else if (IsImage(type.getBasicType())) in assignUniformRegister()
224 ASSERT(IsSampler(type.getBasicType())); in assignSamplerInStructUniformRegister()
381 out << "uniform " << SamplerString(type.getBasicType()) << " sampler_" in outputHLSL4_0_FL9_3Sampler()
384 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()
605 if (node->getBasicType() == EbtVoid) in checkCanBeLValue()
609 if (IsOpaqueType(node->getBasicType())) in checkCanBeLValue()
612 message += getBasicString(node->getBasicType()); in checkCanBeLValue()
733 if (type.getBasicType() != EbtStruct && IsOpaqueType(argTyped->getBasicType())) in checkConstructorArguments()
736 reason += getBasicString(argTyped->getBasicType()); in checkConstructorArguments()
[all …]
Dutil.cpp202 if (type.getBasicType() == EbtFloat) in GLVariableType()
285 else if (type.getBasicType() == EbtInt) in GLVariableType()
310 else if (type.getBasicType() == EbtUInt) in GLVariableType()
335 else if (type.getBasicType() == EbtBool) in GLVariableType()
361 switch (type.getBasicType()) in GLVariableType()
448 if (type.getBasicType() == EbtFloat) in GLVariablePrecision()
465 else if (type.getBasicType() == EbtInt || type.getBasicType() == EbtUInt) in GLVariablePrecision()
510 if (type.getBasicType() == EbtStruct) in GetTypeName()
DTypes.cpp137 : type(p.getBasicType()), in TType()
285 switch (getBasicType()) in getBuiltInTypeNameString()
344 ASSERT(getBasicType() != EbtStruct); in getBuiltInTypeNameString()
345 ASSERT(getBasicType() != EbtInterfaceBlock); in getBuiltInTypeNameString()
457 if (getBasicType() == EbtStruct) in getObjectSize()
480 if (getBasicType() == EbtStruct) in getLocationCount()
759 if (fieldType->getBasicType() == type || fieldType->isStructureContainingType(type)) in containsType()
770 if (IsSampler(fieldType->getBasicType()) || fieldType->isStructureContainingSamplers()) in containsSamplers()
DOutputVulkanGLSL.cpp54 IsSampler(type.getBasicType()) || type.isInterfaceBlock() || IsImage(type.getBasicType()); in writeLayoutQualifier()
158 if (type.getBasicType() == EbtSamplerExternalOES) in writeVariableType()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp103 if(glu::isDataTypeFloatType(symIter->varType.getBasicType())) in packFloat16Bit()
105 if(glu::isDataTypeVector(symIter->varType.getBasicType())) in packFloat16Bit()
107 for(int i = 0; i < glu::getDataTypeScalarSize(symIter->varType.getBasicType()); i++) in packFloat16Bit()
112 else if (glu::isDataTypeMatrix(symIter->varType.getBasicType())) in packFloat16Bit()
116 switch (symIter->varType.getBasicType()) in packFloat16Bit()
225 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
227 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
246 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(input->varType.getBasicType())) in generateVertexShader()
248 …std::string tname = glu::getDataTypeName(getDataTypeFloat16Scalars(input->varType.getBasicType())); in generateVertexShader()
258 if (shaderSpec.packFloat16Bit && isDataTypeFloatOrVec(output->varType.getBasicType())) in generateVertexShader()
[all …]
DvktShaderIntegerFunctionTests.cpp83 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
434 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
488 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
544 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
596 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
652 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
702 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
756 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
807 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
861 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
/external/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 …]
/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceDefinition.cpp67 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype()
126 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexInput()
137 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalVertexOutput()
139 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexOutput()
183 …aTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(varType.getBasicType()) && !glu::isD… in isIllegalFragmentOutput()
185 …if (glu::isDataTypeBoolOrBVec(varType.getBasicType()) || isOpaqueType || glu::isDataTypeMatrix(var… in isIllegalFragmentOutput()
207 …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 …]
Des31fShaderCommonFunctionTests.cpp355 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
483 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
495 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
565 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
588 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
665 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
695 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
777 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
786 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
840 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
/external/deqp/framework/opengl/
DgluVarTypeUtil.hpp189 …nst VarType& type) const { return type.isBasicType() && isDataTypeScalar(type.getBasicType()); } }; in operator ()()
190 …ype& type) const { return type.isBasicType() && isDataTypeScalarOrVector(type.getBasicType()); } }; in operator ()()
247 DE_ASSERT(isDataTypeMatrix(parentType.getBasicType())); in removeTraversed()
248 if (curComp.index+1 < getDataTypeMatrixNumColumns(parentType.getBasicType())) in removeTraversed()
253 DE_ASSERT(isDataTypeVector(parentType.getBasicType())); in removeTraversed()
254 if (curComp.index+1 < getDataTypeScalarSize(parentType.getBasicType())) in removeTraversed()
294 DataType basicType = curType.getBasicType(); in findNext()
349 DataType basicType = curType->getBasicType(); in isValidTypePath()
396 DataType basicType = curType->getBasicType(); in getVarType()
DgluVarTypeUtil.cpp140 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()
/external/angle/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()
/external/deqp/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 …]
/external/deqp/modules/gles3/functional/
Des3fShaderCommonFunctionTests.cpp281 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 …]

123456