Home
last modified time | relevance | path

Searched refs:basicType (Results 1 – 25 of 66) sorted by relevance

123

/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DStaticType.h41 constexpr StaticMangledName BuildStaticMangledName(TBasicType basicType, in BuildStaticMangledName() argument
49 TBasicMangledName typeName(basicType); in BuildStaticMangledName()
65 constexpr StaticArrayMangledName BuildStaticArrayMangledName(TBasicType basicType, in BuildStaticArrayMangledName() argument
74 BuildStaticMangledName(basicType, precision, qualifier, primarySize, secondarySize); in BuildStaticArrayMangledName()
91 template <TBasicType basicType,
97 BuildStaticMangledName(basicType, precision, qualifier, primarySize, secondarySize);
100 template <TBasicType basicType,
108 BuildStaticArrayMangledName(basicType,
127 template <TBasicType basicType,
133 TType(basicType,
[all …]
DIntermNode.cpp53 TBasicType basicType, in UndefinedConstantFoldingError() argument
60 switch (basicType) in UndefinedConstantFoldingError()
863 TBasicType basicType = getBasicType(); in getConstantValue() local
886 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue()
900 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue()
921 basicType, argumentConstantValue[col * argumentRows + row]); in getConstantValue()
948 constArray[resultIndex].cast(basicType, argumentConstantValue[i]); in getConstantValue()
3426 TBasicType basicType = EbtVoid; in FoldAggregateBuiltIn() local
3435 basicType = argConstant->getType().getBasicType(); in FoldAggregateBuiltIn()
3457 ASSERT(basicType == EbtFloat); in FoldAggregateBuiltIn()
[all …]
/third_party/glslang/glslang/MachineIndependent/
Dglslang.y1003 if ($1.basicType == EbtVoid) {
1150 parseContext.precisionQualifierCheck($$.loc, $$.basicType, $$.qualifier);
1167 parseContext.precisionQualifierCheck($2.loc, $2.basicType, $2.qualifier);
1301 if ($$.basicType == EbtVoid)
1302 $$.basicType = $2.basicType;
1664 $$.basicType = EbtVoid;
1668 $$.basicType = EbtFloat;
1672 $$.basicType = EbtInt;
1677 $$.basicType = EbtUint;
1681 $$.basicType = EbtBool;
[all …]
Dglslang.m41003 if ($1.basicType == EbtVoid) {
1150 parseContext.precisionQualifierCheck($$.loc, $$.basicType, $$.qualifier);
1167 parseContext.precisionQualifierCheck($2.loc, $2.basicType, $2.qualifier);
1301 if ($$.basicType == EbtVoid)
1302 $$.basicType = $2.basicType;
1664 $$.basicType = EbtVoid;
1668 $$.basicType = EbtFloat;
1672 $$.basicType = EbtInt;
1677 $$.basicType = EbtUint;
1681 $$.basicType = EbtBool;
[all …]
Dglslang_tab.cpp5310 if ((yyvsp[-1].interm.type).basicType == EbtVoid) { in yyparse()
5520 …parseContext.precisionQualifierCheck((yyval.interm.type).loc, (yyval.interm.type).basicType, (yyva… in yyparse()
5542 …cisionQualifierCheck((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).basicType, (yyvsp[0].inter… in yyparse()
5742 if ((yyval.interm.type).basicType == EbtVoid) in yyparse()
5743 (yyval.interm.type).basicType = (yyvsp[0].interm.type).basicType; in yyparse()
6354 (yyval.interm.type).basicType = EbtVoid; in yyparse()
6363 (yyval.interm.type).basicType = EbtFloat; in yyparse()
6372 (yyval.interm.type).basicType = EbtInt; in yyparse()
6382 (yyval.interm.type).basicType = EbtUint; in yyparse()
6391 (yyval.interm.type).basicType = EbtBool; in yyparse()
[all …]
/third_party/vk-gl-cts/framework/opengl/
DgluVarTypeUtil.hpp294 DataType basicType = curType.getBasicType(); in findNext() local
296 if (isDataTypeMatrix(basicType)) in findNext()
298 else if (isDataTypeVector(basicType)) in findNext()
349 DataType basicType = curType->getBasicType(); in isValidTypePath() local
353 if (!isDataTypeMatrix(basicType)) in isValidTypePath()
356 basicType = getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)); in isValidTypePath()
362 if (!isDataTypeVector(basicType)) in isValidTypePath()
365 basicType = getDataTypeScalarType(basicType); in isValidTypePath()
396 DataType basicType = curType->getBasicType(); in getVarType() local
401 basicType = getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)); in getVarType()
[all …]
/third_party/glslang/glslang/Include/
DTypes.h1352 TBasicType basicType;
1373 basicType = EbtVoid; in initType()
1419 bool isImage() const { return basicType == EbtSampler && sampler.isImage(); } in isImage()
1420 bool isSubpass() const { return basicType == EbtSampler && sampler.isSubpass(); } in isSubpass()
1433basicType(t), vectorSize(vs), matrixCols(mc), matrixRows(mr), vector1(isVector && vs == 1), coopma… in POOL_ALLOCATOR_NEW_DELETE()
1444basicType(t), vectorSize(vs), matrixCols(mc), matrixRows(mr), vector1(isVector && vs == 1), coopma… in basicType() function
1456 basicType(p.basicType), in TType()
1460 if (basicType == EbtSampler) in TType()
1466 if (p.userDef->basicType == EbtReference) { in TType()
1467 basicType = EbtReference; in TType()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fShaderSharedVarTests.cpp74 …SharedBasicVarCase (Context& context, const char* name, DataType basicType, Precision precision, …
92 static std::string getBasicCaseDescription (DataType basicType, Precision precision, const tcu::UVe… in getBasicCaseDescription() argument
97 str << getDataTypeName(basicType) << ", work group size = " << workGroupSize; in getBasicCaseDescription()
101 SharedBasicVarCase::SharedBasicVarCase (Context& context, const char* name, DataType basicType, Pre… in SharedBasicVarCase() argument
102 : TestCase (context, name, getBasicCaseDescription(basicType, precision, workGroupSize).c_str()) in SharedBasicVarCase()
103 , m_basicType (basicType) in SharedBasicVarCase()
368 for (int basicType = TYPE_FLOAT; basicType <= TYPE_BOOL_VEC4; basicType++) in init() local
370 if (glu::getDataTypeScalarType(DataType(basicType)) == glu::TYPE_DOUBLE) in init()
373 if (glu::isDataTypeBoolOrBVec(DataType(basicType))) in init()
376 …d(new SharedBasicVarCase(m_context, getDataTypeName(DataType(basicType)), DataType(basicType), PRE… in init()
[all …]
Des31fSSBOLayoutCase.cpp372 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local
374 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment()
377 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment()
378 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment()
384 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment()
413 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local
415 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment()
418 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment()
419 : glu::getDataTypeMatrixNumRows(basicType); in computeStd430BaseAlignment()
425 return getDataTypeByteAlignment(basicType); in computeStd430BaseAlignment()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutCase.cpp328 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local
330 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment()
333 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment()
334 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment()
340 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment()
369 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local
371 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment()
374 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment()
375 : glu::getDataTypeMatrixNumRows(basicType); in computeStd430BaseAlignment()
380 return getDataTypeByteAlignment(basicType); in computeStd430BaseAlignment()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/util/
DvktTypeComparisonUtil.cpp134 void getCompareDependencies (std::set<glu::DataType> &compareFuncs, glu::DataType basicType) in getCompareDependencies() argument
136 switch (basicType) in getCompareDependencies()
145 compareFuncs.insert(basicType); in getCompareDependencies()
158 compareFuncs.insert(glu::getDataTypeFloatVec(glu::getDataTypeMatrixNumRows(basicType))); in getCompareDependencies()
159 compareFuncs.insert(basicType); in getCompareDependencies()
163 compareFuncs.insert(basicType); in getCompareDependencies()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DIntermediate.cpp1012 TBasicType basicType = left->getBasicType(); in promote() local
1019 setType(TType(basicType, higherPrecision, EvqTemporary, in promote()
1024 setType(TType(basicType, higherPrecision, EvqTemporary, in promote()
1030 setType(TType(basicType, higherPrecision, EvqTemporary, in promote()
1037 setType(TType(basicType, higherPrecision, EvqTemporary, in promote()
1044 setType(TType(basicType, higherPrecision, EvqTemporary, in promote()
1072 setType(TType(basicType, higherPrecision, EvqTemporary, in promote()
1081 setType(TType(basicType, higherPrecision, EvqTemporary, in promote()
1144 setType(TType(basicType, higherPrecision, EvqTemporary, in promote()
1783 TBasicType basicType = type.getBasicType(); in fold() local
[all …]
DSymbolTable.h239 TBasicType basicType = type->getBasicType(); in IsGenType() local
240 …return basicType == EbtGenType || basicType == EbtGenIType || basicType == EbtGenUType || basicTyp… in IsGenType()
250 TBasicType basicType = type->getBasicType(); in IsVecType() local
251 …return basicType == EbtVec || basicType == EbtIVec || basicType == EbtUVec || basicType == EbtBVec; in IsVecType()
DparseConst.cpp168 TBasicType basicType = type.getBasicType(); in visitConstantUnion() local
180 leftUnionArray[index].cast(basicType, rightUnionArray[i]); in visitConstantUnion()
193 leftUnionArray[i].cast(basicType, rightUnionArray[count]); in visitConstantUnion()
207 leftUnionArray[i].cast(basicType, rightUnionArray[0]); in visitConstantUnion()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/
DvktMemoryModelSharedLayoutCase.cpp219 const glu::DataType basicType = curType.getBasicType(); in generateSharedMemoryWrites() local
220 const string typeName = glu::getDataTypeName(basicType); in generateSharedMemoryWrites()
223 const glu::DataType promoteType = vkt::typecomputil::getPromoteType(basicType); in generateSharedMemoryWrites()
225 int numElements = glu::getDataTypeScalarSize(basicType); in generateSharedMemoryWrites()
226 if (glu::isDataTypeMatrix(basicType)) in generateSharedMemoryWrites()
227 …numElements = glu::getDataTypeMatrixNumColumns(basicType) * glu::getDataTypeMatrixNumRows(basicTyp… in generateSharedMemoryWrites()
234 if (basicType != promoteType || numElements > 1) in generateSharedMemoryWrites()
242 if (basicType != promoteType || numElements > 1) in generateSharedMemoryWrites()
243 src << glu::getDataTypeName(basicType) << "("; in generateSharedMemoryWrites()
249 if (basicType != promoteType) in generateSharedMemoryWrites()
[all …]
/third_party/mesa3d/src/mesa/main/
Duniform_query.cpp731 log_uniform(const void *values, enum glsl_base_type basicType, in log_uniform() argument
751 switch (basicType) { in log_uniform()
1144 enum glsl_base_type basicType, unsigned src_components) in validate_uniform() argument
1175 match = (basicType != GLSL_TYPE_DOUBLE); in validate_uniform()
1178 match = (basicType == GLSL_TYPE_INT); in validate_uniform()
1181 match = (basicType == GLSL_TYPE_INT && _mesa_is_desktop_gl(ctx)); in validate_uniform()
1184 match = basicType == GLSL_TYPE_FLOAT; in validate_uniform()
1187 match = (basicType == uni->type->base_type); in validate_uniform()
1196 glsl_type_name(basicType)); in validate_uniform()
1201 log_uniform(values, basicType, components, 1, count, in validate_uniform()
[all …]
Duniforms.h45 enum glsl_base_type basicType, unsigned src_components);
51 GLuint cols, GLuint rows, enum glsl_base_type basicType);
/third_party/vk-gl-cts/modules/glshared/
DglsShaderLibraryCase.cpp158 const DataType basicType = val.type.getBasicType(); in genVertexShader() local
159 const DataType floatType = getDataTypeFloatScalars(basicType); in genVertexShader()
164 if (getDataTypeScalarType(basicType) == TYPE_FLOAT) in genVertexShader()
258 const DataType basicType = val.type.getBasicType(); in genFragmentShader() local
259 const DataType floatType = getDataTypeFloatScalars(basicType); in genFragmentShader()
261 const char* const refTypeStr = getDataTypeName(basicType); in genFragmentShader()
263 if (getDataTypeScalarType(basicType) == TYPE_FLOAT) in genFragmentShader()
304 const DataType basicType = val.type.getBasicType(); in specializeVertexShader() local
305 const DataType floatType = getDataTypeFloatScalars(basicType); in specializeVertexShader()
307 const char* const refTypeStr = getDataTypeName(basicType); in specializeVertexShader()
[all …]
DglsShaderExecUtil.cpp547 const glu::DataType basicType = outputType.getBasicType(); in getRenderbufferFormatForOutput() local
548 const int numComps = glu::getDataTypeNumComponents(basicType); in getRenderbufferFormatForOutput()
551 switch (glu::getDataTypeScalarType(basicType)) in getRenderbufferFormatForOutput()
602 const glu::DataType basicType = symbol.varType.getBasicType(); in execute() local
603 const int vecSize = glu::getDataTypeScalarSize(basicType); in execute()
605 if (glu::isDataTypeFloatOrVec(basicType)) in execute()
607 else if (glu::isDataTypeIntOrIVec(basicType)) in execute()
609 else if (glu::isDataTypeUintOrUVec(basicType)) in execute()
611 else if (glu::isDataTypeMatrix(basicType)) in execute()
613 int numRows = glu::getDataTypeMatrixNumRows(basicType); in execute()
[all …]
DglsUniformBlockCase.cpp129 VarType::VarType (glu::DataType basicType, deUint32 flags) in VarType() argument
133 m_data.basicType = basicType; in VarType()
415 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local
417 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment()
420 int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment()
421 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment()
426 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment()
469 glu::DataType basicType = type.getBasicType(); in computeStd140Layout() local
473 entry.type = basicType; in computeStd140Layout()
479 if (glu::isDataTypeMatrix(basicType)) in computeStd140Layout()
[all …]
DglsUniformBlockCase.hpp76 VarType (glu::DataType basicType, deUint32 flags);
86 glu::DataType getBasicType (void) const { return m_data.basicType; } in getBasicType()
109 glu::DataType basicType; member
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockCase.cpp76 VarType::VarType (glu::DataType basicType, deUint32 flags) in VarType() argument
80 m_data.basicType = basicType; in VarType()
411 glu::DataType basicType = type.getBasicType(); in computeStd140BaseAlignment() local
413 if (glu::isDataTypeMatrix(basicType)) in computeStd140BaseAlignment()
416 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd140BaseAlignment()
417 : glu::getDataTypeMatrixNumRows(basicType); in computeStd140BaseAlignment()
423 return getDataTypeByteAlignment(basicType); in computeStd140BaseAlignment()
452 glu::DataType basicType = type.getBasicType(); in computeStd430BaseAlignment() local
454 if (glu::isDataTypeMatrix(basicType)) in computeStd430BaseAlignment()
457 const int vecSize = isRowMajor ? glu::getDataTypeMatrixNumColumns(basicType) in computeStd430BaseAlignment()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/
DvktShaderLibrary.cpp414 const DataType basicType = val.type.getBasicType(); in specializeFragmentShader() local
415 const char* const refTypeStr = getDataTypeName(basicType); in specializeFragmentShader()
625 const DataType basicType = values[ndx].type.getBasicType(); in computeStd140Layout() local
626 const bool isMatrix = isDataTypeMatrix(basicType); in computeStd140Layout()
627 const int numVecs = isMatrix ? getDataTypeMatrixNumColumns(basicType) : 1; in computeStd140Layout()
628 …pe vecType = isMatrix ? glu::getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)) : basicType; in computeStd140Layout()
648 const DataType basicType = values[ndx].type.getBasicType(); in computeStd430Layout() local
649 const int numVecs = isDataTypeMatrix(basicType) ? getDataTypeMatrixNumColumns(basicType) : 1; in computeStd430Layout()
650 …Type vecType = isDataTypeMatrix(basicType) ? glu::getDataTypeFloatVec(getDataTypeMatrixNumRows(ba… in computeStd430Layout()
664 const DataType basicType = value.type.getBasicType(); in copyToLayout() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp643 const glu::DataType basicType = symbol.varType.getBasicType(); in FragmentOutExecutor() local
644 const VkFormat format = getAttributeFormat(basicType); in FragmentOutExecutor()
681 const glu::DataType basicType = outputType.getBasicType(); in getRenderbufferFormatForOutput() local
682 const int numComps = glu::getDataTypeNumComponents(basicType); in getRenderbufferFormatForOutput()
685 switch (glu::getDataTypeScalarType(basicType)) in getRenderbufferFormatForOutput()
810 const glu::DataType basicType = symbol.varType.getBasicType(); in bindAttributes() local
811 const int vecSize = glu::getDataTypeScalarSize(basicType); in bindAttributes()
812 const VkFormat format = getAttributeFormat(basicType); in bindAttributes()
816 if (glu::isDataTypeDoubleOrDVec(basicType)) in bindAttributes()
818 if (glu::isDataTypeFloatOrVec(basicType)) in bindAttributes()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcUniformBlockCase.hpp71 VarType(glu::DataType basicType, deUint32 flags);
95 return m_data.basicType; in getBasicType()
127 glu::DataType basicType; member

123