Home | History | Annotate | Download | only in glshared

Lines Matching defs:varType

91 		src << in << " " << glu::declare(input->varType, input->name) << ";\n";
95 DE_ASSERT(output->varType.isBasicType());
97 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType()))
99 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType());
101 const glu::VarType intType (intBaseType, glu::PRECISION_HIGHP);
106 src << "flat " << out << " " << glu::declare(output->varType, output->name) << ";\n";
118 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType()))
119 src << "\t" << glu::declare(output->varType, output->name) << ";\n";
134 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType()))
136 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType());
166 src << "flat in " << glu::declare(input->varType, "geom_" + input->name) << "[];\n";
170 DE_ASSERT(output->varType.isBasicType());
172 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType()))
174 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType());
176 const glu::VarType intType (intBaseType, glu::PRECISION_HIGHP);
181 src << "flat out " << glu::declare(output->varType, output->name) << ";\n";
191 src << "\t" << glu::declare(input->varType, input->name) << " = geom_" << input->name << "[0];\n";
196 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType()))
197 src << "\t" << glu::declare(output->varType, output->name) << ";\n";
214 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType()))
216 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType());
259 src << "in " << glu::declare(input->varType, inputPrefix + input->name) << ";\n"
260 << "flat out " << glu::declare(input->varType, outputPrefix + input->name) << ";\n";
286 src << "flat in " << glu::declare(input->varType, input->name) << ";\n";
293 glu::VariableDeclaration decl (output.varType, outVarName, glu::STORAGE_OUT, glu::INTERPOLATION_LAST, glu::Layout(location));
295 TCU_CHECK_INTERNAL(output.varType.isBasicType());
297 if (useIntOutputs && glu::isDataTypeFloatOrVec(output.varType.getBasicType()))
299 const int vecSize = glu::getDataTypeScalarSize(output.varType.getBasicType());
301 const glu::VarType uintType (uintBasicType, glu::PRECISION_HIGHP);
303 decl.varType = uintType;
306 else if (glu::isDataTypeBoolOrBVec(output.varType.getBasicType()))
308 const int vecSize = glu::getDataTypeScalarSize(output.varType.getBasicType());
310 const glu::VarType intType (intBasicType, glu::PRECISION_HIGHP);
312 decl.varType = intType;
315 else if (glu::isDataTypeMatrix(output.varType.getBasicType()))
317 const int vecSize = glu::getDataTypeMatrixNumRows(output.varType.getBasicType());
318 const int numVecs = glu::getDataTypeMatrixNumColumns(output.varType.getBasicType());
320 const glu::VarType uintType (uintBasicType, glu::PRECISION_HIGHP);
322 decl.varType = uintType;
331 src << glu::VariableDeclaration(output.varType, output.name, glu::STORAGE_OUT, glu::INTERPOLATION_LAST, location) << ";\n";
338 if ((useIntOutputs && glu::isDataTypeFloatOrVec(output->varType.getBasicType())) ||
339 glu::isDataTypeBoolOrBVec(output->varType.getBasicType()) ||
340 glu::isDataTypeMatrix(output->varType.getBasicType()))
341 src << "\t" << glu::declare(output->varType, output->name) << ";\n";
355 if (useIntOutputs && glu::isDataTypeFloatOrVec(output->varType.getBasicType()))
357 else if (glu::isDataTypeMatrix(output->varType.getBasicType()))
359 const int numVecs = glu::getDataTypeMatrixNumColumns(output->varType.getBasicType());
367 else if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType()))
369 const int vecSize = glu::getDataTypeScalarSize(output->varType.getBasicType());
432 if (glu::isDataTypeBoolOrBVec(symbolIter->varType.getBasicType()))
462 size += cur->varType.getScalarSize();
480 const glu::DataType basicType = symbol.varType.getBasicType();
531 const int scalarSize = symbol.varType.getScalarSize();
620 const int numLocations = glu::getDataTypeNumLocations(it->varType.getBasicType());
660 static tcu::TextureFormat getRenderbufferFormatForOutput (const glu::VarType& outputType, bool useIntOutputs)
725 const glu::DataType basicType = symbol.varType.getBasicType();
754 const deUint32 format = glu::getInternalFormat(getRenderbufferFormatForOutput(output.varType, useIntOutputs));
787 const int outSize = output.varType.getScalarSize();
788 const int outVecSize = glu::getDataTypeNumComponents(output.varType.getBasicType());
789 const int outNumLocs = glu::getDataTypeNumLocations(output.varType.getBasicType());
791 const tcu::TextureFormat format = getRenderbufferFormatForOutput(output.varType, useIntOutputs);
885 static void copyToBuffer (const glu::VarType& varType, const VarLayout& layout, int numValues, const void* srcBasePtr, void* dstBasePtr);
886 static void copyFromBuffer (const glu::VarType& varType, const VarLayout& layout, int numValues, const void* srcBasePtr, void* dstBasePtr);
947 const glu::DataType basicType = symbol.varType.getBasicType();
994 void BufferIoExecutor::copyToBuffer (const glu::VarType& varType, const VarLayout& layout, int numValues, const void* srcBasePtr, void* dstBasePtr)
996 if (varType.isBasicType())
998 const glu::DataType basicType = varType.getBasicType();
1021 void BufferIoExecutor::copyFromBuffer (const glu::VarType& varType, const VarLayout& layout, int numValues, const void* srcBasePtr, void* dstBasePtr)
1023 if (varType.isBasicType())
1025 const glu::DataType basicType = varType.getBasicType();
1068 const glu::VarType& varType = m_inputs[inputNdx].varType;
1071 copyToBuffer(varType, layout, numValues, inputPtrs[inputNdx], mapPtr);
1103 const glu::VarType& varType = m_outputs[outputNdx].varType;
1106 copyFromBuffer(varType, layout, numValues, mapPtr, outputPtrs[outputNdx]);
1126 inputStruct.addMember(symIter->name.c_str(), symIter->varType);
1134 outputStruct.addMember(symIter->name.c_str(), symIter->varType);
1158 src << "\t" << glu::declare(symIter->varType, symIter->name) << " = inputs[" << invocationNdxName << "]." << symIter->name << ";\n";
1161 src << "\t" << glu::declare(symIter->varType, symIter->name) << ";\n";