Home
last modified time | relevance | path

Searched refs:varType (Results 1 – 25 of 32) sorted by relevance

12

/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceDefinition.cpp57 static bool containsMatchingSubtype (const glu::VarType& varType, bool (*predicate)(glu::DataType)) in containsMatchingSubtype() argument
59 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype()
62 if (varType.isArrayType()) in containsMatchingSubtype()
63 return containsMatchingSubtype(varType.getElementType(), predicate); in containsMatchingSubtype()
65 if (varType.isStructType()) in containsMatchingSubtype()
66 for (int memberNdx = 0; memberNdx < varType.getStructPtr()->getNumMembers(); ++memberNdx) in containsMatchingSubtype()
67 if (containsMatchingSubtype(varType.getStructPtr()->getMember(memberNdx).getType(), predicate)) in containsMatchingSubtype()
76 if (containsMatchingSubtype(decls[varNdx].varType, predicate)) in containsMatchingSubtype()
113 static bool isIllegalVertexInput (const glu::VarType& varType) in isIllegalVertexInput() argument
116 if (!varType.isBasicType()) in isIllegalVertexInput()
[all …]
Des31fProgramInterfaceDefinitionUtil.cpp200 collectNamedStructureDefinitions(namedStructs, defaultBlock.variables[ndx].varType); in writeStructureDefinitions()
204 …dStructureDefinitions(namedStructs, defaultBlock.interfaceBlocks[blockNdx].variables[ndx].varType); in writeStructureDefinitions()
247 …eam& buf, const std::string& accumulatorName, const std::string& name, const glu::VarType& varType) in writeVariableReadAccumulateExpression() argument
249 if (varType.isBasicType()) in writeVariableReadAccumulateExpression()
253 if (glu::isDataTypeScalar(varType.getBasicType())) in writeVariableReadAccumulateExpression()
255 else if (glu::isDataTypeVector(varType.getBasicType())) in writeVariableReadAccumulateExpression()
257 else if (glu::isDataTypeMatrix(varType.getBasicType())) in writeVariableReadAccumulateExpression()
259 else if (glu::isDataTypeSamplerMultisample(varType.getBasicType())) in writeVariableReadAccumulateExpression()
261 else if (glu::isDataTypeSampler(varType.getBasicType())) in writeVariableReadAccumulateExpression()
263 else if (glu::isDataTypeImage(varType.getBasicType())) in writeVariableReadAccumulateExpression()
[all …]
Des31fShaderIntegerFunctionTests.cpp224 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()
371 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
372 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
425 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
426 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
467 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
Des31fShaderCommonFunctionTests.cpp253 sizes[ndx] = symbols[ndx].varType.getScalarSize(); in getScalarSizes()
261 totalSize += sym->varType.getScalarSize(); in computeTotalScalarSize()
273 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers()
393 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate()
399 << VarValue(m_spec.outputs[outNdx].varType, curOutputPtr[outNdx]) in iterate()
477 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
478 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
489 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
490 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
559 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
Des31fComputeShaderBuiltinVarTests.cpp78 … 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()
Des31fProgramUniformTests.cpp917 const glu::VarType& varType,
1000 …ctor<BasicUniformReportRef>& basicUniformReportsDst, const glu::VarType& varType, const char* cons… in generateBasicUniforms() argument
1002 if (varType.isBasicType()) in generateBasicUniforms()
1005 const glu::DataType type = varType.getBasicType(); in generateBasicUniforms()
1007 : generateRandomVarValue(varType.getBasicType(), rnd); in generateBasicUniforms()
1009 basicUniformsDst.push_back(BasicUniform(varName, varType.getBasicType(), isActive, value)); in generateBasicUniforms()
1010 …basicUniformReportsDst.push_back(BasicUniformReportRef(varName, varType.getBasicType(), isActive)); in generateBasicUniforms()
1012 else if (varType.isArrayType()) in generateBasicUniforms()
1014 const int size = varType.getArraySize(); in generateBasicUniforms()
1018 for (int elemNdx = 0; elemNdx < varType.getArraySize(); elemNdx++) in generateBasicUniforms()
[all …]
Des31fSeparateShaderTests.cpp203 const DataType basicType = input.varType.getBasicType(); in printInputColor()
348 const VarType varType (type, PRECISION_HIGHP); in genVaryingInterface() local
357 VariableDeclaration(varType, vtxName, STORAGE_OUT, getGluInterpolation(vtxCompatInterp), loc)); in genVaryingInterface()
359 VariableDeclaration(varType, frgName, STORAGE_IN, getGluInterpolation(frgInterp), loc)); in genVaryingInterface()
398 const VarType varType (TYPE_FLOAT, PRECISION_HIGHP); in printFloatDeclaration() local
401 oss << VariableDeclaration(varType, varName, STORAGE_UNIFORM) << ";\n"; in printFloatDeclaration()
403 oss << VariableDeclaration(varType, varName, STORAGE_CONST) in printFloatDeclaration()
481 const DataType type = it->varType.getBasicType(); in genVtxShaderSrc()
Des31fProgramInterfaceQueryTestCase.cpp800 currentLocation += getVariableLocationLength(block->variables[memberNdx].varType); in getIOBlockVariableLocation()
1245 if (!path[1].getDeclaration()->varType.isArrayType()) in validateSingleVariable()
1250 else if (path[1].getDeclaration()->varType.getElementType().isBasicType()) in validateSingleVariable()
1255 else if (path[1].getDeclaration()->varType.getArraySize() == glu::VarType::UNSIZED_ARRAY) in validateSingleVariable()
1262 expected = path[1].getDeclaration()->varType.getArraySize(); in validateSingleVariable()
1292 if (!path[1].getDeclaration()->varType.isArrayType()) in validateSingleVariable()
1302 else if (path[1].getDeclaration()->varType.getElementType().isBasicType()) in validateSingleVariable()
1314 const int minimumStride = getVarTypeSize(path[1].getDeclaration()->varType.getElementType()); in validateSingleVariable()
1495 glu::DataType varType = glu::TYPE_INVALID; in validateBuiltinVariable() local
1498 varType = glu::TYPE_FLOAT_VEC4; in validateBuiltinVariable()
[all …]
/external/deqp/modules/gles3/functional/
Des3fShaderIndexingTests.cpp138 …, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc e…
151 …, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc e… in ShaderIndexingCase() argument
154 m_varType = varType; in ShaderIndexingCase()
221 …ontext& context, const char* caseName, const char* description, DataType varType, IndexAccessType … in createVaryingArrayCase() argument
314 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType))); in createVaryingArrayCase()
318 if (varType == TYPE_FLOAT) in createVaryingArrayCase()
320 else if (varType == TYPE_FLOAT_VEC2) in createVaryingArrayCase()
322 else if (varType == TYPE_FLOAT_VEC3) in createVaryingArrayCase()
332 ShaderEvalFunc evalFunc = getArrayCoordsEvalFunc(varType); in createVaryingArrayCase()
333 …return new ShaderIndexingCase(context, caseName, description, true, varType, evalFunc, vertexShade… in createVaryingArrayCase()
[all …]
Des3fShaderCommonFunctionTests.cpp226 sizes[ndx] = symbols[ndx].varType.getScalarSize(); in getScalarSizes()
234 totalSize += sym->varType.getScalarSize(); in computeTotalScalarSize()
246 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers()
366 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate()
372 << VarValue(m_spec.outputs[outNdx].varType, curOutputPtr[outNdx]) in iterate()
446 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
447 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
458 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
459 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
528 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
[all …]
Des3fUniformApiTests.cpp1061 const glu::VarType& varType,
1182 …ctor<BasicUniformReportRef>& basicUniformReportsDst, const glu::VarType& varType, const char* cons… in generateBasicUniforms() argument
1184 if (varType.isBasicType()) in generateBasicUniforms()
1187 const glu::DataType type = varType.getBasicType(); in generateBasicUniforms()
1190 : generateRandomVarValue(varType.getBasicType(), rnd); in generateBasicUniforms()
1192 basicUniformsDst.push_back(BasicUniform(varName, varType.getBasicType(), isActive, value)); in generateBasicUniforms()
1193 …basicUniformReportsDst.push_back(BasicUniformReportRef(varName, varType.getBasicType(), isActive)); in generateBasicUniforms()
1195 else if (varType.isArrayType()) in generateBasicUniforms()
1197 const int size = varType.getArraySize(); in generateBasicUniforms()
1201 for (int elemNdx = 0; elemNdx < varType.getArraySize(); elemNdx++) in generateBasicUniforms()
[all …]
/external/deqp/modules/gles2/functional/
Des2fShaderIndexingTests.cpp145 …, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc e…
161 …, const char* name, const char* description, bool isVertexCase, DataType varType, ShaderEvalFunc e… in ShaderIndexingCase() argument
165 m_varType = varType; in ShaderIndexingCase()
251 …ontext& context, const char* caseName, const char* description, DataType varType, IndexAccessType … in createVaryingArrayCase() argument
341 params.insert(pair<string, string>("VAR_TYPE", getDataTypeName(varType))); in createVaryingArrayCase()
345 if (varType == TYPE_FLOAT) in createVaryingArrayCase()
347 else if (varType == TYPE_FLOAT_VEC2) in createVaryingArrayCase()
349 else if (varType == TYPE_FLOAT_VEC3) in createVaryingArrayCase()
359 ShaderEvalFunc evalFunc = getArrayCoordsEvalFunc(varType); in createVaryingArrayCase()
371 …return new ShaderIndexingCase(context, caseName, description, true, varType, evalFunc, requirement… in createVaryingArrayCase()
[all …]
Des2fUniformApiTests.cpp892 const glu::VarType& varType,
1011 …ctor<BasicUniformReportRef>& basicUniformReportsDst, const glu::VarType& varType, const char* cons… in generateBasicUniforms() argument
1013 if (varType.isBasicType()) in generateBasicUniforms()
1016 const glu::DataType type = varType.getBasicType(); in generateBasicUniforms()
1019 : generateRandomVarValue(varType.getBasicType(), rnd); in generateBasicUniforms()
1021 basicUniformsDst.push_back(BasicUniform(varName, varType.getBasicType(), isActive, value)); in generateBasicUniforms()
1022 …basicUniformReportsDst.push_back(BasicUniformReportRef(varName, varType.getBasicType(), isActive)); in generateBasicUniforms()
1024 else if (varType.isArrayType()) in generateBasicUniforms()
1026 const int size = varType.getArraySize(); in generateBasicUniforms()
1030 for (int elemNdx = 0; elemNdx < varType.getArraySize(); elemNdx++) in generateBasicUniforms()
[all …]
/external/deqp/modules/glshared/
DglsShaderExecUtil.cpp91 src << in << " " << glu::declare(input->varType, input->name) << ";\n"; in generateVertexShader()
95 DE_ASSERT(output->varType.isBasicType()); in generateVertexShader()
97 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
99 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
106 src << "flat " << out << " " << glu::declare(output->varType, output->name) << ";\n"; in generateVertexShader()
118 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
119 src << "\t" << glu::declare(output->varType, output->name) << ";\n"; in generateVertexShader()
134 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
136 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
166 src << "flat in " << glu::declare(input->varType, "geom_" + input->name) << "[];\n"; in generateGeometryShader()
[all …]
DglsRandomShaderProgram.cpp34 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 …]
DglsShaderExecUtil.hpp51 glu::VarType varType; //!< Symbol type. member
54 Symbol (const std::string& name_, const glu::VarType& varType_) : name(name_), varType(varType_) {} in Symbol()
/external/javassist/src/main/javassist/compiler/ast/
DDeclarator.java25 protected int varType; field in Declarator
32 varType = type; in Declarator()
40 varType = CLASS; in Declarator()
51 varType = type; in Declarator()
60 Declarator d = new Declarator(this.varType, this.arrayDim + dim); in make()
70 public int getType() { return varType; } in getType()
/external/lzma/CPP/7zip/Archive/
DIArchive.h132 STDMETHOD(GetPropertyInfo)(UInt32 index, BSTR *name, PROPID *propID, VARTYPE *varType) x; \
134 STDMETHOD(GetArchivePropertyInfo)(UInt32 index, BSTR *name, PROPID *propID, VARTYPE *varType) x;
190 (UInt32 index, BSTR *name, PROPID *propID, VARTYPE *varType) \
193 *propID = srcItem.propid; *varType = srcItem.vt; *name = 0; return S_OK; } \
196 (UInt32 index, BSTR *name, PROPID *propID, VARTYPE *varType) \
199 *propID = srcItem.propid; *varType = srcItem.vt; \
/external/deqp/framework/opengl/
DgluVarType.hpp264 VarType varType; member
310 …DeclareVariable (const VarType& varType_, const std::string& name_, int indentLevel_) : varType(va… in DeclareVariable()
312 VarType varType; member
327 …e declare (const VarType& varType, const std::string& name, int indentLevel = 0) { return decl:… in declare() argument
DgluVarType.cpp262 , varType (varType_) in VariableDeclaration()
273 varType == other.varType && in operator ==()
341 str << declare(decl.varType, decl.name); in operator <<()
358 const VarType& type = decl.varType; in operator <<()
/external/chromium_org/third_party/angle/samples/translator/
Dtranslator.cpp31 static void PrintActiveVariables(ShHandle compiler, ShShaderInfo varType);
284 void PrintActiveVariables(ShHandle compiler, ShShaderInfo varType) in PrintActiveVariables() argument
287 switch (varType) { in PrintActiveVariables()
305 ShGetInfo(compiler, varType, &activeVars); in PrintActiveVariables()
307 switch (varType) { in PrintActiveVariables()
/external/chromium_org/third_party/angle/src/compiler/translator/
DShaderLang.cpp72 const sh::ShaderVariable *GetVariable(const TCompiler *compiler, ShShaderInfo varType, int index) in GetVariable() argument
74 switch (varType) in GetVariable()
399 ShShaderInfo varType, in ShGetVariableInfo() argument
411 ASSERT((varType == SH_ACTIVE_ATTRIBUTES) || in ShGetVariableInfo()
412 (varType == SH_ACTIVE_UNIFORMS) || in ShGetVariableInfo()
413 (varType == SH_VARYINGS)); in ShGetVariableInfo()
420 const sh::ShaderVariable *varInfo = GetVariable(compiler, varType, index); in ShGetVariableInfo()
/external/lzma/CPP/7zip/Archive/7z/
D7zProperties.cpp150 STDMETHODIMP CHandler::GetPropertyInfo(UInt32 index, BSTR *name, PROPID *propID, VARTYPE *varType) in GetPropertyInfo() argument
159 *varType = srcItem.vt; in GetPropertyInfo()
/external/lzma/CPP/7zip/Archive/Common/
DHandlerOut.cpp133 static bool ConvertProperty(PROPVARIANT srcProp, VARTYPE varType, NCOM::CPropVariant &destProp) in ConvertProperty() argument
135 if (varType == srcProp.vt) in ConvertProperty()
140 if (varType == VT_UI1) in ConvertProperty()
151 else if (varType == VT_BOOL) in ConvertProperty()
/external/javassist/src/main/javassist/compiler/
DCodeGen.java780 int varType = d.getType(); in atVariableAssign() local
790 atArrayVariableAssign((ArrayInit)right, varType, varArray, varClass); in atVariableAssign() local
792 atAssignCore(expr, op, right, varType, varArray, varClass); in atVariableAssign()
795 if (is2word(varType, varArray)) in atVariableAssign()
802 else if (varType == DOUBLE) in atVariableAssign()
804 else if (varType == FLOAT) in atVariableAssign()
806 else if (varType == LONG) in atVariableAssign()
808 else if (isRefType(varType)) in atVariableAssign()
813 exprType = varType; in atVariableAssign()
819 int varType, int varArray, String varClass) throws CompileError; in atArrayVariableAssign() argument

12