Home
last modified time | relevance | path

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

12

/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceDefinition.cpp59 static bool containsMatchingSubtype (const glu::VarType& varType, bool (*predicate)(glu::DataType)) in containsMatchingSubtype() argument
61 if (varType.isBasicType() && predicate(varType.getBasicType())) in containsMatchingSubtype()
64 if (varType.isArrayType()) in containsMatchingSubtype()
65 return containsMatchingSubtype(varType.getElementType(), predicate); in containsMatchingSubtype()
67 if (varType.isStructType()) in containsMatchingSubtype()
68 for (int memberNdx = 0; memberNdx < varType.getStructPtr()->getNumMembers(); ++memberNdx) in containsMatchingSubtype()
69 if (containsMatchingSubtype(varType.getStructPtr()->getMember(memberNdx).getType(), predicate)) in containsMatchingSubtype()
78 if (containsMatchingSubtype(decls[varNdx].varType, predicate)) in containsMatchingSubtype()
115 static bool isIllegalVertexInput (const glu::VarType& varType) in isIllegalVertexInput() argument
118 if (!varType.isBasicType()) in isIllegalVertexInput()
[all …]
Des31fProgramInterfaceDefinitionUtil.cpp326 collectNamedStructureDefinitions(namedStructs, defaultBlock.variables[ndx].varType); in writeStructureDefinitions()
330 …dStructureDefinitions(namedStructs, defaultBlock.interfaceBlocks[blockNdx].variables[ndx].varType); in writeStructureDefinitions()
395 const glu::VarType& varType) in writeVariableReadAccumulateExpression() argument
397 if (varType.isBasicType()) in writeVariableReadAccumulateExpression()
401 if (glu::isDataTypeScalar(varType.getBasicType())) in writeVariableReadAccumulateExpression()
403 else if (glu::isDataTypeVector(varType.getBasicType())) in writeVariableReadAccumulateExpression()
405 else if (glu::isDataTypeMatrix(varType.getBasicType())) in writeVariableReadAccumulateExpression()
407 else if (glu::isDataTypeSamplerMultisample(varType.getBasicType())) in writeVariableReadAccumulateExpression()
409 else if (glu::isDataTypeSampler(varType.getBasicType())) in writeVariableReadAccumulateExpression()
411 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.cpp299 sizes[ndx] = symbols[ndx].varType.getScalarSize(); in getScalarSizes()
307 totalSize += sym->varType.getScalarSize(); in computeTotalScalarSize()
319 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers()
439 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate()
445 << VarValue(m_spec.outputs[outNdx].varType, curOutputPtr[outNdx]) in iterate()
523 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
524 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
535 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
536 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
605 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.cpp204 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()
Des31fProgramInterfaceQueryTestCase.cpp865 currentLocation += getVariableLocationLength(block->variables[memberNdx].varType); in getIOBlockVariableLocation()
1338 if (!path[1].getDeclaration()->varType.isArrayType()) in validateSingleVariable()
1343 else if (path[1].getDeclaration()->varType.getElementType().isBasicType()) in validateSingleVariable()
1348 else if (path[1].getDeclaration()->varType.getArraySize() == glu::VarType::UNSIZED_ARRAY) in validateSingleVariable()
1355 expected = path[1].getDeclaration()->varType.getArraySize(); in validateSingleVariable()
1387 if (!path[1].getDeclaration()->varType.isArrayType()) in validateSingleVariable()
1397 else if (path[1].getDeclaration()->varType.getElementType().isBasicType()) in validateSingleVariable()
1409 const int minimumStride = getVarTypeSize(path[1].getDeclaration()->varType.getElementType()); in validateSingleVariable()
1598 glu::DataType varType = glu::TYPE_INVALID; in validateBuiltinVariable() local
1601 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/jmonkeyengine/engine/src/core/com/jme3/shader/
DUniform.java59 protected VarType varType; field in Uniform
73 oc.write(varType, "varType", null); in write()
75 switch (varType){ in write()
120 varType = ic.readEnum("varType", VarType.class, null); in read()
122 switch (varType){ in read()
167 if (varType != null){ in toString()
169 sb.append(varType); in toString()
189 return varType; in getVarType()
229 if (varType == null) in clearValue()
232 switch (varType){ in clearValue()
[all …]
/external/deqp/modules/glshared/
DglsShaderExecUtil.cpp107 src << in << " " << glu::declare(input->varType, input->name) << ";\n"; in generateVertexShader()
111 DE_ASSERT(output->varType.isBasicType()); in generateVertexShader()
113 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
115 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
122 src << "flat " << out << " " << glu::declare(output->varType, output->name) << ";\n"; in generateVertexShader()
134 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
135 src << "\t" << glu::declare(output->varType, output->name) << ";\n"; in generateVertexShader()
150 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
152 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType()); in generateVertexShader()
182 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()
DglsFragOpInteractionCase.cpp540 const rsg::VariableType& varType = shaderIn->getVariable()->getType(); in iterate() local
542 const int numComponents = varType.getNumElements(); in iterate()
545 DE_ASSERT(varType.getBaseType() == rsg::VariableType::TYPE_FLOAT); in iterate()
/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.hpp266 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
DgluVarType.cpp263 , varType (varType_) in VariableDeclaration()
274 varType == other.varType && in operator ==()
342 str << declare(decl.varType, decl.name); in operator <<()
359 const VarType& type = decl.varType; in operator <<()
/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