Home
last modified time | relevance | path

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

1234

/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 …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DStaticType.h41 constexpr StaticMangledName BuildStaticMangledName(TBasicType basicType, in BuildStaticMangledName() argument
49 TBasicMangledName typeName(basicType); in BuildStaticMangledName()
61 template <TBasicType basicType,
67 BuildStaticMangledName(basicType, precision, qualifier, primarySize, secondarySize);
80 template <TBasicType basicType,
86 TType(basicType,
91 kMangledNameInstance<basicType, precision, qualifier, primarySize, secondarySize>.name);
99 template <TBasicType basicType,
108 return &Helpers::instance<basicType, precision, qualifier, primarySize, secondarySize>; in Get()
115 template <TBasicType basicType, unsigned char primarySize = 1, unsigned char secondarySize = 1>
[all …]
DIntermNode.cpp52 TBasicType basicType, in UndefinedConstantFoldingError() argument
59 switch (basicType) in UndefinedConstantFoldingError()
736 TBasicType basicType = getBasicType(); in getConstantValue() local
759 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue()
773 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue()
794 basicType, argumentConstantValue[col * argumentRows + row]); in getConstantValue()
821 constArray[resultIndex].cast(basicType, argumentConstantValue[i]); in getConstantValue()
1604 TBasicType basicType = mLeft->getBasicType(); in promote() local
1613 setType(TType(basicType, higherPrecision, resultQualifier, in promote()
1619 setType(TType(basicType, higherPrecision, resultQualifier, in promote()
[all …]
/third_party/glslang/glslang/MachineIndependent/
Dglslang.y1071 if ($1.basicType == EbtVoid) {
1218 parseContext.precisionQualifierCheck($$.loc, $$.basicType, $$.qualifier);
1235 parseContext.precisionQualifierCheck($2.loc, $2.basicType, $2.qualifier);
1387 if ($$.basicType == EbtVoid)
1388 $$.basicType = $2.basicType;
1776 $$.basicType = EbtVoid;
1780 $$.basicType = EbtFloat;
1784 $$.basicType = EbtInt;
1789 $$.basicType = EbtUint;
1793 $$.basicType = EbtBool;
[all …]
Dglslang.m41071 if ($1.basicType == EbtVoid) {
1218 parseContext.precisionQualifierCheck($$.loc, $$.basicType, $$.qualifier);
1235 parseContext.precisionQualifierCheck($2.loc, $2.basicType, $2.qualifier);
1387 if ($$.basicType == EbtVoid)
1388 $$.basicType = $2.basicType;
1776 $$.basicType = EbtVoid;
1780 $$.basicType = EbtFloat;
1784 $$.basicType = EbtInt;
1789 $$.basicType = EbtUint;
1793 $$.basicType = EbtBool;
[all …]
Dglslang_tab.cpp6336 if ((yyvsp[-1].interm.type).basicType == EbtVoid) { in yyparse()
6546 …parseContext.precisionQualifierCheck((yyval.interm.type).loc, (yyval.interm.type).basicType, (yyva… in yyparse()
6568 …cisionQualifierCheck((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).basicType, (yyvsp[0].inter… in yyparse()
6796 if ((yyval.interm.type).basicType == EbtVoid) in yyparse()
6797 (yyval.interm.type).basicType = (yyvsp[0].interm.type).basicType; in yyparse()
7459 (yyval.interm.type).basicType = EbtVoid; in yyparse()
7468 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7477 (yyval.interm.type).basicType = EbtInt; in yyparse()
7487 (yyval.interm.type).basicType = EbtUint; in yyparse()
7496 (yyval.interm.type).basicType = EbtBool; in yyparse()
[all …]
/third_party/vk-gl-cts/framework/opengl/
DgluVarTypeUtil.hpp300 DataType basicType = curType.getBasicType(); in findNext() local
302 if (isDataTypeMatrix(basicType)) in findNext()
304 else if (isDataTypeVector(basicType)) in findNext()
355 DataType basicType = curType->getBasicType(); in isValidTypePath() local
359 if (!isDataTypeMatrix(basicType)) in isValidTypePath()
362 basicType = getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)); in isValidTypePath()
368 if (!isDataTypeVector(basicType)) in isValidTypePath()
371 basicType = getDataTypeScalarType(basicType); in isValidTypePath()
402 DataType basicType = curType->getBasicType(); in getVarType() local
407 basicType = getDataTypeFloatVec(getDataTypeMatrixNumRows(basicType)); in getVarType()
[all …]
/third_party/glslang/glslang/Include/
DTypes.h1497 TBasicType basicType;
1522 basicType = EbtVoid; in initType()
1576 bool isImage() const { return basicType == EbtSampler && sampler.isImage(); } in isImage()
1577 bool isSubpass() const { return basicType == EbtSampler && sampler.isSubpass(); } in isSubpass()
1590basicType(t), vectorSize(vs), matrixCols(mc), matrixRows(mr), vector1(isVector && vs == 1), coopma… in POOL_ALLOCATOR_NEW_DELETE()
1604basicType(t), vectorSize(vs), matrixCols(mc), matrixRows(mr), vector1(isVector && vs == 1), coopma… in basicType() function
1619 basicType(p.basicType), in TType()
1626 if (basicType == EbtSampler) in TType()
1632 if (p.userDef->basicType == EbtReference) { in TType()
1633 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_no_buildgn/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/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()
/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/vk-gl-cts/external/vulkancts/modules_no_buildgn/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/vk-gl-cts/external/vulkancts/modules_no_buildgn/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/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 …]
/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 …]
/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_no_buildgn/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_no_buildgn/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/
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 …]

1234