Lines Matching refs:outputPrefix

94 static std::string generateVertexShader (const ShaderSpec& shaderSpec, const std::string& inputPrefix, const std::string& outputPrefix)
101 DE_ASSERT(!inputPrefix.empty() && !outputPrefix.empty());
123 src << "flat " << out << " " << glu::declare(intType, outputPrefix + output->name) << ";\n";
126 src << "flat " << out << " " << glu::declare(output->varType, outputPrefix + output->name) << ";\n";
160 src << "\t" << outputPrefix << output->name << " = " << glu::getDataTypeName(intBaseType) << "(" << output->name << ");\n";
163 src << "\t" << outputPrefix << output->name << " = " << output->name << ";\n";
171 static std::string generateGeometryShader (const ShaderSpec& shaderSpec, const std::string& inputPrefix, const std::string& outputPrefix)
174 DE_ASSERT(!inputPrefix.empty() && !outputPrefix.empty());
202 src << "flat out " << glu::declare(intType, outputPrefix + output->name) << ";\n";
205 src << "flat out " << glu::declare(output->varType, outputPrefix + output->name) << ";\n";
240 src << "\t" << outputPrefix << output->name << " = " << glu::getDataTypeName(intBaseType) << "(" << output->name << ");\n";
243 src << "\t" << outputPrefix << output->name << " = " << output->name << ";\n";
270 static std::string generatePassthroughVertexShader (const ShaderSpec& shaderSpec, const std::string& inputPrefix, const std::string& outputPrefix)
283 << "flat out " << glu::declare(input->varType, outputPrefix + input->name) << ";\n";
291 src << "\t" << outputPrefix << input->name << " = " << inputPrefix << input->name << ";\n";
298 static void generateFragShaderOutputDecl (std::ostream& src, const ShaderSpec& shaderSpec, bool useIntOutputs, const std::map<std::string, int>& outLocationMap, const std::string& outputPrefix)
306 const std::string outVarName = outputPrefix + output.name;
349 static void generateFragShaderOutAssign (std::ostream& src, const ShaderSpec& shaderSpec, bool useIntOutputs, const std::string& valuePrefix, const std::string& outputPrefix)
361 src << "\t" << outputPrefix << output->name << "_" << vecNdx << " = floatBitsToUint(" << valuePrefix << output->name << "[" << vecNdx << "]);\n";
363 src << "\t" << outputPrefix << output->name << "_" << vecNdx << " = " << valuePrefix << output->name << "[" << vecNdx << "];\n";
370 src << "\t" << outputPrefix << output->name << " = " << glu::getDataTypeName(intBaseType) << "(" << valuePrefix << output->name << ");\n";
373 src << "\t" << outputPrefix << output->name << " = " << valuePrefix << output->name << ";\n";
377 static std::string generateFragmentShader (const ShaderSpec& shaderSpec, bool useIntOutputs, const std::map<std::string, int>& outLocationMap, const std::string& inputPrefix, const std::string& outputPrefix)
391 generateFragShaderOutputDecl(src, shaderSpec, useIntOutputs, outLocationMap, outputPrefix);
412 generateFragShaderOutAssign(src, shaderSpec, useIntOutputs, "", outputPrefix);
419 static std::string generatePassthroughFragmentShader (const ShaderSpec& shaderSpec, bool useIntOutputs, const std::map<std::string, int>& outLocationMap, const std::string& inputPrefix, const std::string& outputPrefix)
444 generateFragShaderOutputDecl(src, shaderSpec, useIntOutputs, outLocationMap, outputPrefix);
448 generateFragShaderOutAssign(src, shaderSpec, useIntOutputs, inputPrefix, outputPrefix);