Lines Matching refs:glu
40 static void addOutputVar (glu::sl::ValueBlock* dst, glu::DataType type, float output)
42 dst->outputs.push_back(glu::sl::Value());
45 glu::sl::Value& value = dst->outputs.back();
48 value.type = glu::VarType(type, glu::PRECISION_LAST);
53 case glu::TYPE_INT:
57 case glu::TYPE_UINT:
61 case glu::TYPE_BOOL:
65 case glu::TYPE_FLOAT:
76 glu::RenderContext& renderContext,
77 const glu::ContextInfo& contextInfo,
80 glu::GLSLVersion version,
88 DE_STATIC_ASSERT(glu::TYPE_FLOAT+1 == glu::TYPE_FLOAT_VEC2);
89 DE_STATIC_ASSERT(glu::TYPE_FLOAT+2 == glu::TYPE_FLOAT_VEC3);
90 DE_STATIC_ASSERT(glu::TYPE_FLOAT+3 == glu::TYPE_FLOAT_VEC4);
92 DE_STATIC_ASSERT(glu::TYPE_INT+1 == glu::TYPE_INT_VEC2);
93 DE_STATIC_ASSERT(glu::TYPE_INT+2 == glu::TYPE_INT_VEC3);
94 DE_STATIC_ASSERT(glu::TYPE_INT+3 == glu::TYPE_INT_VEC4);
96 DE_STATIC_ASSERT(glu::TYPE_UINT+1 == glu::TYPE_UINT_VEC2);
97 DE_STATIC_ASSERT(glu::TYPE_UINT+2 == glu::TYPE_UINT_VEC3);
98 DE_STATIC_ASSERT(glu::TYPE_UINT+3 == glu::TYPE_UINT_VEC4);
100 DE_STATIC_ASSERT(glu::TYPE_BOOL+1 == glu::TYPE_BOOL_VEC2);
101 DE_STATIC_ASSERT(glu::TYPE_BOOL+2 == glu::TYPE_BOOL_VEC3);
102 DE_STATIC_ASSERT(glu::TYPE_BOOL+3 == glu::TYPE_BOOL_VEC4);
132 shaderTemplateParams["GLES_VERSION"] = version == glu::GLSL_VERSION_300_ES ? "300 es" : "100";
133 shaderTemplateParams["CASE_BASE_TYPE"] = glu::getDataTypeName(outType);
141 string typeName = glu::getDataTypeName((glu::DataType)(inType + compCount)); // results in float, vec2, vec3, vec4 progression (same for other primitive types)
158 glu::sl::ShaderCaseSpecification spec;
161 spec.expectResult = glu::sl::EXPECT_PASS;
162 spec.caseType = glu::sl::CASETYPE_VERTEX_ONLY;
165 spec.programs[0].sources << glu::VertexSource(mapped);
179 glu::sl::ShaderCaseSpecification spec;
182 spec.expectResult = glu::sl::EXPECT_PASS;
183 spec.caseType = glu::sl::CASETYPE_FRAGMENT_ONLY;
186 spec.programs[0].sources << glu::FragmentSource(mapped);
202 const string scalarCaseName = string(cases[caseNdx].name) + "_" + typeName + "_" + glu::getDataTypeName(inType);
204 expressionTemplateParams["MT"] = glu::getDataTypeName(inType);
212 glu::sl::ShaderCaseSpecification spec;
215 spec.expectResult = glu::sl::EXPECT_PASS;
216 spec.caseType = glu::sl::CASETYPE_VERTEX_ONLY;
219 spec.programs[0].sources << glu::VertexSource(mapped);
233 glu::sl::ShaderCaseSpecification spec;
236 spec.expectResult = glu::sl::EXPECT_PASS;
237 spec.caseType = glu::sl::CASETYPE_FRAGMENT_ONLY;
240 spec.programs[0].sources << glu::FragmentSource(mapped);