/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fProgramInterfaceDefinition.cpp | 69 static bool containsMatchingSubtype (const glu::VarType& varType, bool (*predicate)(glu::DataType)) in containsMatchingSubtype() argument 71 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype() 74 if (varType.isArrayType()) in containsMatchingSubtype() 75 return containsMatchingSubtype(varType.getElementType(), predicate); in containsMatchingSubtype() 77 if (varType.isStructType()) in containsMatchingSubtype() 78 for (int memberNdx = 0; memberNdx < varType.getStructPtr()->getNumMembers(); ++memberNdx) in containsMatchingSubtype() 79 if (containsMatchingSubtype(varType.getStructPtr()->getMember(memberNdx).getType(), predicate)) in containsMatchingSubtype() 88 if (containsMatchingSubtype(decls[varNdx].varType, predicate)) in containsMatchingSubtype() 125 static bool isIllegalVertexInput (const glu::VarType& varType) in isIllegalVertexInput() argument 128 if (!varType.isBasicType()) in isIllegalVertexInput() [all …]
|
D | es31fProgramInterfaceDefinitionUtil.cpp | 353 collectNamedStructureDefinitions(namedStructs, defaultBlock.variables[ndx].varType); in writeStructureDefinitions() 357 …dStructureDefinitions(namedStructs, defaultBlock.interfaceBlocks[blockNdx].variables[ndx].varType); in writeStructureDefinitions() 422 const glu::VarType& varType) in writeVariableReadAccumulateExpression() argument 424 if (varType.isBasicType()) in writeVariableReadAccumulateExpression() 428 if (glu::isDataTypeScalar(varType.getBasicType())) in writeVariableReadAccumulateExpression() 430 else if (glu::isDataTypeVector(varType.getBasicType())) in writeVariableReadAccumulateExpression() 432 else if (glu::isDataTypeMatrix(varType.getBasicType())) in writeVariableReadAccumulateExpression() 434 else if (glu::isDataTypeSamplerMultisample(varType.getBasicType())) in writeVariableReadAccumulateExpression() 436 else if (glu::isDataTypeSampler(varType.getBasicType())) in writeVariableReadAccumulateExpression() 438 else if (glu::isDataTypeImage(varType.getBasicType())) in writeVariableReadAccumulateExpression() [all …]
|
D | es31fShaderIntegerFunctionTests.cpp | 224 sizes[ndx] = symbols[ndx].varType.getScalarSize(); in getScalarSizes() 232 totalSize += sym->varType.getScalarSize(); in computeTotalScalarSize() 244 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() 298 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 304 << VarValue(m_spec.outputs[outNdx].varType, curOutputPtr[outNdx]) in iterate() 343 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 344 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 397 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 398 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() 439 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() [all …]
|
D | es31fShaderCommonFunctionTests.cpp | 288 sizes[ndx] = symbols[ndx].varType.getScalarSize(); in getScalarSizes() 296 totalSize += sym->varType.getScalarSize(); in computeTotalScalarSize() 308 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() 428 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 434 << VarValue(m_spec.outputs[outNdx].varType, curOutputPtr[outNdx]) in iterate() 484 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 485 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 496 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 497 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() 566 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() [all …]
|
D | es31fComputeShaderBuiltinVarTests.cpp | 78 … ComputeBuiltinVarCase (Context& context, const char* name, const char* varName, DataType varType); 112 …::ComputeBuiltinVarCase (Context& context, const char* name, const char* varName, DataType varType) in ComputeBuiltinVarCase() argument 115 , m_varType (varType) in ComputeBuiltinVarCase() 136 static string genBuiltinVarSource (const string& varName, DataType varType, const UVec3& localSize) in genBuiltinVarSource() argument 145 << " " << glu::getDataTypeName(varType) << " result[];\n" in genBuiltinVarSource()
|
D | es31fProgramUniformTests.cpp | 916 const glu::VarType& varType, 990 …ctor<BasicUniformReportRef>& basicUniformReportsDst, const glu::VarType& varType, const char* cons… in generateBasicUniforms() argument 992 if (varType.isBasicType()) in generateBasicUniforms() 995 const glu::DataType type = varType.getBasicType(); in generateBasicUniforms() 997 : generateRandomVarValue(varType.getBasicType(), rnd); in generateBasicUniforms() 999 basicUniformsDst.push_back(BasicUniform(varName, varType.getBasicType(), isActive, value)); in generateBasicUniforms() 1000 …basicUniformReportsDst.push_back(BasicUniformReportRef(varName, varType.getBasicType(), isActive)); in generateBasicUniforms() 1002 else if (varType.isArrayType()) in generateBasicUniforms() 1004 const int size = varType.getArraySize(); in generateBasicUniforms() 1008 for (int elemNdx = 0; elemNdx < varType.getArraySize(); elemNdx++) in generateBasicUniforms() [all …]
|
D | es31fShaderUniformIntegerFunctionTests.cpp | 78 glu::VarType varType(glu::TYPE_INT, precision); in UniformIntegerFunctionCase() local 79 oss << "uniform " << glu::declare(varType, "value", 0) << ";\n"; in UniformIntegerFunctionCase()
|
D | es31fSeparateShaderTests.cpp | 204 const DataType basicType = input.varType.getBasicType(); in printInputColor() 349 const VarType varType (type, PRECISION_HIGHP); in genVaryingInterface() local 358 VariableDeclaration(varType, vtxName, STORAGE_OUT, getGluInterpolation(vtxCompatInterp), loc)); in genVaryingInterface() 360 VariableDeclaration(varType, frgName, STORAGE_IN, getGluInterpolation(frgInterp), loc)); in genVaryingInterface() 399 const VarType varType (TYPE_FLOAT, PRECISION_HIGHP); in printFloatDeclaration() local 402 oss << VariableDeclaration(varType, varName, STORAGE_UNIFORM) << ";\n"; in printFloatDeclaration() 404 oss << VariableDeclaration(varType, varName, STORAGE_CONST) in printFloatDeclaration() 482 const DataType type = it->varType.getBasicType(); in genVtxShaderSrc()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fShaderIndexingTests.cpp | 150 …, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc e… 166 …, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc e… in ShaderIndexingCase() argument 170 m_varType = varType; in ShaderIndexingCase() 256 …ontext& context, const char* caseName, const char* description, DataType varType, IndexAccessType … in createVaryingArrayCase() argument 346 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType))); in createVaryingArrayCase() 350 if (varType == TYPE_FLOAT) in createVaryingArrayCase() 352 else if (varType == TYPE_FLOAT_VEC2) in createVaryingArrayCase() 354 else if (varType == TYPE_FLOAT_VEC3) in createVaryingArrayCase() 364 ShaderEvalFunc evalFunc = getArrayCoordsEvalFunc(varType); in createVaryingArrayCase() 376 …return new ShaderIndexingCase(context, caseName, description, true, varType, evalFunc, requirement… in createVaryingArrayCase() [all …]
|
D | es2fUniformApiTests.cpp | 891 const glu::VarType& varType, 1001 …ctor<BasicUniformReportRef>& basicUniformReportsDst, const glu::VarType& varType, const char* cons… in generateBasicUniforms() argument 1003 if (varType.isBasicType()) in generateBasicUniforms() 1006 const glu::DataType type = varType.getBasicType(); in generateBasicUniforms() 1009 : generateRandomVarValue(varType.getBasicType(), rnd); in generateBasicUniforms() 1011 basicUniformsDst.push_back(BasicUniform(varName, varType.getBasicType(), isActive, value)); in generateBasicUniforms() 1012 …basicUniformReportsDst.push_back(BasicUniformReportRef(varName, varType.getBasicType(), isActive)); in generateBasicUniforms() 1014 else if (varType.isArrayType()) in generateBasicUniforms() 1016 const int size = varType.getArraySize(); in generateBasicUniforms() 1020 for (int elemNdx = 0; elemNdx < varType.getArraySize(); elemNdx++) in generateBasicUniforms() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderIndexingTests.cpp | 157 IndexingTestUniformSetup (const DataType varType, bool usesArray) in IndexingTestUniformSetup() argument 158 : m_varType(varType) in IndexingTestUniformSetup() 229 const DataType varType, 245 const DataType varType, in ShaderIndexingCase() argument 247 … name, description, isVertexCase, evalFunc, new IndexingTestUniformSetup(varType, usesArray), DE_N… in ShaderIndexingCase() 262 DataType varType, in createVaryingArrayCase() argument 367 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType))); in createVaryingArrayCase() 371 if (varType == TYPE_FLOAT) in createVaryingArrayCase() 373 else if (varType == TYPE_FLOAT_VEC2) in createVaryingArrayCase() 375 else if (varType == TYPE_FLOAT_VEC3) in createVaryingArrayCase() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderIndexingTests.cpp | 139 …, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc e… 152 …, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc e… in ShaderIndexingCase() argument 155 m_varType = varType; in ShaderIndexingCase() 222 …ontext& context, const char* caseName, const char* description, DataType varType, IndexAccessType … in createVaryingArrayCase() argument 315 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType))); in createVaryingArrayCase() 319 if (varType == TYPE_FLOAT) in createVaryingArrayCase() 321 else if (varType == TYPE_FLOAT_VEC2) in createVaryingArrayCase() 323 else if (varType == TYPE_FLOAT_VEC3) in createVaryingArrayCase() 333 ShaderEvalFunc evalFunc = getArrayCoordsEvalFunc(varType); in createVaryingArrayCase() 334 …return new ShaderIndexingCase(context, caseName, description, true, varType, evalFunc, vertexShade… in createVaryingArrayCase() [all …]
|
D | es3fShaderCommonFunctionTests.cpp | 213 sizes[ndx] = symbols[ndx].varType.getScalarSize(); in getScalarSizes() 221 totalSize += sym->varType.getScalarSize(); in computeTotalScalarSize() 233 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() 353 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 359 << VarValue(m_spec.outputs[outNdx].varType, curOutputPtr[outNdx]) in iterate() 409 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 410 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 421 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 422 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() 491 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() [all …]
|
D | es3fUniformApiTests.cpp | 1060 const glu::VarType& varType, 1172 …ctor<BasicUniformReportRef>& basicUniformReportsDst, const glu::VarType& varType, const char* cons… in generateBasicUniforms() argument 1174 if (varType.isBasicType()) in generateBasicUniforms() 1177 const glu::DataType type = varType.getBasicType(); in generateBasicUniforms() 1180 : generateRandomVarValue(varType.getBasicType(), rnd); in generateBasicUniforms() 1182 basicUniformsDst.push_back(BasicUniform(varName, varType.getBasicType(), isActive, value)); in generateBasicUniforms() 1183 …basicUniformReportsDst.push_back(BasicUniformReportRef(varName, varType.getBasicType(), isActive)); in generateBasicUniforms() 1185 else if (varType.isArrayType()) in generateBasicUniforms() 1187 const int size = varType.getArraySize(); in generateBasicUniforms() 1191 for (int elemNdx = 0; elemNdx < varType.getArraySize(); elemNdx++) in generateBasicUniforms() [all …]
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
D | glcShaderIndexingTests.cpp | 157 …e(Context& context, const char* name, const char* description, bool isVertexCase, DataType varType, 172 DataType varType, ShaderEvalFunc evalFunc, const char* vertShaderSource, in ShaderIndexingCase() argument 177 m_varType = varType; in ShaderIndexingCase() 245 glu::GLSLVersion glslVersion, DataType varType, in createVaryingArrayCase() argument 342 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType))); in createVaryingArrayCase() 346 if (varType == TYPE_FLOAT) in createVaryingArrayCase() 348 else if (varType == TYPE_FLOAT_VEC2) in createVaryingArrayCase() 350 else if (varType == TYPE_FLOAT_VEC3) in createVaryingArrayCase() 360 ShaderEvalFunc evalFunc = getArrayCoordsEvalFunc(varType); in createVaryingArrayCase() 361 …return new ShaderIndexingCase(context, caseName, description, true, varType, evalFunc, vertexShade… in createVaryingArrayCase() [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsRandomShaderProgram.cpp | 34 static rr::GenericVecType mapToGenericVecType (const rsg::VariableType& varType) in mapToGenericVecType() argument 36 if (varType.isFloatOrVec()) in mapToGenericVecType() 38 else if (varType.isIntOrVec()) in mapToGenericVecType() 47 static glu::DataType mapToBasicType (const rsg::VariableType& varType) in mapToBasicType() argument 49 if (varType.isFloatOrVec() || varType.isIntOrVec() || varType.isBoolOrVec()) in mapToBasicType() 51 const glu::DataType scalarType = varType.isFloatOrVec() ? glu::TYPE_FLOAT : in mapToBasicType() 52 varType.isIntOrVec() ? glu::TYPE_INT : in mapToBasicType() 53 varType.isBoolOrVec() ? glu::TYPE_BOOL : glu::TYPE_LAST; in mapToBasicType() 54 const int numComps = varType.getNumElements(); in mapToBasicType() 59 else if (varType.getBaseType() == rsg::VariableType::TYPE_SAMPLER_2D) in mapToBasicType() [all …]
|
D | glsShaderExecUtil.cpp | 111 src << in << " " << glu::declare(input->varType, inputPrefix + input->name) << ";\n"; in generateVertexShader() 115 DE_ASSERT(output->varType.isBasicType()); in generateVertexShader() 117 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader() 119 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader() 126 …src << "flat " << out << " " << glu::declare(output->varType, outputPrefix + output->name) << ";\n… in generateVertexShader() 137 …src << "\t" << glu::declare(input->varType, input->name) << " = " << inputPrefix << input->name <<… in generateVertexShader() 141 src << "\t" << glu::declare(output->varType, output->name) << ";\n"; in generateVertexShader() 155 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader() 157 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader() 190 src << "flat in " << glu::declare(input->varType, inputPrefix + input->name) << "[];\n"; in generateGeometryShader() [all …]
|
D | glsShaderExecUtil.hpp | 51 glu::VarType varType; //!< Symbol type. member 54 Symbol (const std::string& name_, const glu::VarType& varType_) : name(name_), varType(varType_) {} in Symbol()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderExecutor.cpp | 103 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() 185 …src << "layout(location = "<< location << ") in " << glu::declare(input->varType, inputPrefix + in… in generatePassthroughVertexShader() 186 …<< "layout(location = " << location - 1 << ") flat out " << glu::declare(input->varType, outputPre… in generatePassthroughVertexShader() 217 …src << "layout(location = " << locationNumber << ") in " << glu::declare(input->varType, inputPre… in generateVertexShader() 223 DE_ASSERT(output->varType.isBasicType()); in generateVertexShader() 225 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader() [all …]
|
D | vktShaderIntegerFunctionTests.cpp | 164 sizes[ndx] = symbols[ndx].varType.getScalarSize(); in getScalarSizes() 172 totalSize += sym->varType.getScalarSize(); in computeTotalScalarSize() 184 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() 376 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 382 << VarValue(m_spec.outputs[outNdx].varType, curOutputPtr[outNdx]) in iterate() 413 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 414 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 467 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() 468 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() 523 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() [all …]
|
D | vktShaderCommonFunctionTests.cpp | 200 sizes[ndx] = symbols[ndx].varType.getScalarSize(); in getScalarSizes() 209 sizes.push_back(getComponentByteSize(sym.varType.getBasicType())); in getComponentByteSizes() 217 totalSize += getComponentByteSize(sym.varType.getBasicType()) * sym.varType.getScalarSize(); in computeTotalByteSize() 229 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() 230 const auto componentBytes = getComponentByteSize(var.varType.getBasicType()); in getInputOutputPointers() 467 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 473 << VarValue(m_spec.outputs[outNdx].varType, curOutputPtr[outNdx]) in iterate() 511 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 512 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 522 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() [all …]
|
D | vktShaderExecutor.hpp | 44 glu::VarType varType; //!< Symbol type. member 47 Symbol (const std::string& name_, const glu::VarType& varType_) : name(name_), varType(varType_) {} in Symbol()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/ |
D | vktComputeShaderBuiltinVarTests.cpp | 130 const glu::DataType varType, 149 …Context& context, const string& name, const char* varName, glu::DataType varType, bool readByCompo… 161 …string genBuiltinVarSource (const string& varName, glu::DataType varType, const UVec3& localS… 176 …Context& context, const string& name, const char* varName, glu::DataType varType, bool readByCompo… in ComputeBuiltinVarCase() argument 179 , m_varType (varType) in ComputeBuiltinVarCase() 201 string ComputeBuiltinVarCase::genBuiltinVarSource (const string& varName, glu::DataType varType, co… in genBuiltinVarSource() argument 219 << " " << glu::getDataTypeName(varType) << " result[];\n" in genBuiltinVarSource() 226 if (readByComponent && varType != glu::TYPE_UINT) { in genBuiltinVarSource() 227 switch(varType) in genBuiltinVarSource() 398 const glu::DataType varType, in ComputeBuiltinVarInstance() argument [all …]
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluVarType.hpp | 266 VarType varType; member 312 …DeclareVariable (const VarType& varType_, const std::string& name_, int indentLevel_) : varType(va… in DeclareVariable() 314 VarType varType; member 329 …e declare (const VarType& varType, const std::string& name, int indentLevel = 0) { return decl:… in declare() argument
|
D | gluVarType.cpp | 264 , varType (varType_) in VariableDeclaration() 275 varType == other.varType && in operator ==() 343 str << declare(decl.varType, decl.name); in operator <<() 360 const VarType& type = decl.varType; in operator <<()
|