Lines Matching refs:glu
118 static std::string specializeShader (const std::string& shaderSource, const glu::ContextType& contextType)
120 const bool supportsES32orGL45 = glu::contextSupports(contextType, glu::ApiType::es(3, 2)) ||
121 glu::contextSupports(contextType, glu::ApiType::core(4, 5));
123 args["GLSL_VERSION_DECL"] = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(contextType));
133 return contextSupports(contextType, glu::ApiType::es(3, 2)) ||
134 contextSupports(contextType, glu::ApiType::core(4, 5)) ||
209 VertexExpanderShader (const glu::ContextType& contextType, rr::GeometryShaderInputType inputType, rr::GeometryShaderOutputType outputType);
217 std::string genGeometrySource (const glu::ContextType& contextType, rr::GeometryShaderInputType inputType, rr::GeometryShaderOutputType outputType) const;
220 VertexExpanderShader::VertexExpanderShader (const glu::ContextType& contextType, rr::GeometryShaderInputType inputType, rr::GeometryShaderOutputType outputType)
291 std::string VertexExpanderShader::genGeometrySource (const glu::ContextType& contextType, rr::GeometryShaderInputType inputType, rr::GeometryShaderOutputType outputType) const
308 VertexEmitterShader (const glu::ContextType& contextType, int emitCountA, int endCountA, int emitCountB, int endCountB, rr::GeometryShaderOutputType outputType);
315 std::string genGeometrySource (const glu::ContextType& contextType, int emitCountA, int endCountA, int emitCountB, int endCountB, rr::GeometryShaderOutputType outputType) const;
323 VertexEmitterShader::VertexEmitterShader (const glu::ContextType& contextType, int emitCountA, int endCountA, int emitCountB, int endCountB, rr::GeometryShaderOutputType outputType)
392 std::string VertexEmitterShader::genGeometrySource (const glu::ContextType& contextType, int emitCountA, int endCountA, int emitCountB, int endCountB, rr::GeometryShaderOutputType outputType) const
443 VertexVaryingShader (const glu::ContextType& contextType, int vertexOut, int geometryOut);
450 static sglr::pdec::ShaderProgramDeclaration genProgramDeclaration (const glu::ContextType& contextType, int vertexOut, int geometryOut);
456 VertexVaryingShader::VertexVaryingShader (const glu::ContextType& contextType, int vertexOut, int geometryOut)
619 sglr::pdec::ShaderProgramDeclaration VertexVaryingShader::genProgramDeclaration (const glu::ContextType& contextType, int vertexOut, int geometryOut)
793 OutputCountShader (const glu::ContextType& contextType, const OutputCountPatternSpec& spec);
800 std::string genGeometrySource (const glu::ContextType& contextType, const OutputCountPatternSpec& spec) const;
808 OutputCountShader::OutputCountShader (const glu::ContextType& contextType, const OutputCountPatternSpec& spec)
865 std::string OutputCountShader::genGeometrySource (const glu::ContextType& contextType, const OutputCountPatternSpec& spec) const
927 BuiltinVariableShader (const glu::ContextType& contextType, VariableTest test);
936 std::string genGeometrySource (const glu::ContextType& contextType, VariableTest test) const;
937 std::string genVertexSource (const glu::ContextType& contextType, VariableTest test) const;
938 std::string genFragmentSource (const glu::ContextType& contextType, VariableTest test) const;
943 BuiltinVariableShader::BuiltinVariableShader (const glu::ContextType& contextType, VariableTest test)
1056 std::string BuiltinVariableShader::genGeometrySource (const glu::ContextType& contextType, VariableTest test) const
1063 const bool supportsGL45 = glu::contextSupports(contextType, glu::ApiType::core(4, 5));
1138 std::string BuiltinVariableShader::genVertexSource (const glu::ContextType& contextType, VariableTest test) const
1170 std::string BuiltinVariableShader::genFragmentSource (const glu::ContextType& contextType, VariableTest test) const
1220 VaryingOutputCountShader (const glu::ContextType& contextType, VaryingSource source, int maxEmitCount, bool instanced);
1229 static std::string genGeometrySource (const glu::ContextType& contextType, VaryingSource test, int maxEmitCount, bool instanced);
1230 static std::string genVertexSource (const glu::ContextType& contextType, VaryingSource test);
1239 VaryingOutputCountShader::VaryingOutputCountShader (const glu::ContextType& contextType, VaryingSource source, int maxEmitCount, bool instanced)
1241 << sglr::pdec::Uniform("u_sampler", glu::TYPE_SAMPLER_2D)
1242 << sglr::pdec::Uniform("u_emitCount", glu::TYPE_INT_VEC4)
1367 std::string VaryingOutputCountShader::genGeometrySource (const glu::ContextType& contextType, VaryingSource test, int maxEmitCount, bool instanced)
1457 std::string VaryingOutputCountShader::genVertexSource (const glu::ContextType& contextType, VaryingSource test)
1500 InvocationCountShader (const glu::ContextType& contextType, int numInvocations, OutputCase testCase);
1507 static std::string genGeometrySource (const glu::ContextType& contextType, int numInvocations, OutputCase testCase);
1514 InvocationCountShader::InvocationCountShader (const glu::ContextType& contextType, int numInvocations, OutputCase testCase)
1602 std::string InvocationCountShader::genGeometrySource (const glu::ContextType& contextType, int numInvocations, OutputCase testCase)
1683 InstancedExpansionShader (const glu::ContextType& contextType, int numInvocations);
1690 static std::string genVertexSource (const glu::ContextType& contextType);
1691 static std::string genFragmentSource (const glu::ContextType& contextType);
1692 static std::string genGeometrySource (const glu::ContextType& contextType, int numInvocations);
1697 InstancedExpansionShader::InstancedExpansionShader (const glu::ContextType& contextType, int numInvocations)
1749 std::string InstancedExpansionShader::genVertexSource (const glu::ContextType& contextType)
1764 std::string InstancedExpansionShader::genFragmentSource (const glu::ContextType& contextType)
1778 std::string InstancedExpansionShader::genGeometrySource (const glu::ContextType& contextType, int numInvocations)
2062 #define CHECK_GL_CTX_ERRORS() glu::checkError(ctx.getError(), DE_NULL, __FILE__, __LINE__)
2448 glu::checkError(m_ctx->getError(), "", __FILE__, __LINE__);
2455 m_testCtx.getLog() << tcu::TestLog::Message << "Expected GL_INVALID_OPERATION, got " << glu::getErrorStr(errorCode) << tcu::TestLog::EndMessage;
2617 if (!glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(4, 4)) && !m_context.getContextInfo().isExtensionSupported("GL_EXT_geometry_point_size"))
2624 if (glu::isContextTypeGLCore(m_context.getRenderContext().getType()))
2636 if (BuiltinVariableShader::TEST_POINT_SIZE == m_test && glu::isContextTypeGLCore(m_context.getRenderContext().getType()))
2719 std::string genFragmentSource (const glu::ContextType& contextType) const;
2720 std::string genGeometrySource (const glu::ContextType& contextType) const;
2721 std::string genSamplerFragmentSource (const glu::ContextType& contextType) const;
2746 glu::ShaderProgram* m_renderShader;
2747 glu::ShaderProgram* m_samplerShader;
2783 const bool supportES32 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2));
2784 const bool supportGL45 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(4, 5));
2866 m_testCtx.getLog() << tcu::TestLog::Message << "GL_LAYER_PROVOKING_VERTEX = " << glu::getProvokingVertexStr(state) << tcu::TestLog::EndMessage;
2869 if (contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(3,2)))
2968 const tcu::TextureFormat texFormat = glu::mapGLInternalFormat(GL_RGBA8);
2969 const glu::TransferFormat transferFormat = glu::getTransferFormat(texFormat);
3065 m_renderShader = new glu::ShaderProgram(m_context.getRenderContext(), glu::ProgramSources()
3066 << glu::VertexSource(specializeShader(positionVertex, m_context.getRenderContext().getType()))
3067 << glu::FragmentSource(genFragmentSource(m_context.getRenderContext().getType()))
3068 << glu::GeometrySource(genGeometrySource(m_context.getRenderContext().getType())));
3086 m_samplerShader = new glu::ShaderProgram(m_context.getRenderContext(), glu::ProgramSources()
3087 << glu::VertexSource(specializeShader(positionVertex, m_context.getRenderContext().getType()))
3088 << glu::FragmentSource(genSamplerFragmentSource(m_context.getRenderContext().getType())));
3104 std::string LayeredRenderCase::genFragmentSource (const glu::ContextType& contextType) const
3123 std::string LayeredRenderCase::genGeometrySource (const glu::ContextType& contextType) const
3342 std::string LayeredRenderCase::genSamplerFragmentSource (const glu::ContextType& contextType) const
3409 glu::VertexArray vao (m_context.getRenderContext());
3444 glu::VertexArray vao (m_context.getRenderContext());
3445 glu::Buffer buf (m_context.getRenderContext());
3479 glu::readPixels(m_context.getRenderContext(), 0, 0, dst.getAccess());
4002 const bool supportsES32 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2));
4004 const std::string vertexSource = std::string(glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(m_context.getRenderContext().getType()))) + "\n"
4009 const std::string fragmentSource = std::string(glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(m_context.getRenderContext().getType()))) + "\n"
4028 const glu::ShaderProgram program (m_context.getRenderContext(),
4029 glu::ProgramSources()
4030 << glu::VertexSource(vertexSource)
4031 << glu::FragmentSource(fragmentSource)
4032 << glu::GeometrySource(specializeShader(geometrySource, m_context.getRenderContext().getType())));
4041 const glu::ShaderProgram program (m_context.getRenderContext(),
4042 glu::ProgramSources()
4043 << glu::VertexSource(vertexSource)
4044 << glu::FragmentSource(fragmentSource));
4053 const std::string geometrySource = std::string(glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(m_context.getRenderContext().getType()))) + "\n"
4064 glu::Shader vertexShader (m_context.getRenderContext(), glu::SHADERTYPE_VERTEX);
4065 glu::Shader fragmentShader (m_context.getRenderContext(), glu::SHADERTYPE_FRAGMENT);
4066 glu::Shader geometryShader (m_context.getRenderContext(), glu::SHADERTYPE_GEOMETRY);
4067 glu::Program program (m_context.getRenderContext());
4102 m_testCtx.getLog() << tcu::TestLog::Message << glu::getProgramParamStr(m_target) << " = " << state << tcu::TestLog::EndMessage;
4120 m_testCtx.getLog() << tcu::TestLog::Message << "Querying " << glu::getProgramParamStr(m_target) << ", expecting INVALID_OPERATION" << tcu::TestLog::EndMessage;
4127 m_testCtx.getLog() << tcu::TestLog::Message << "// ERROR: Expected INVALID_OPERATION, got " << glu::getErrorStr(errorCode) << tcu::TestLog::EndMessage;
4247 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
4286 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
4295 m_testCtx.getLog() << tcu::TestLog::Message << "LAYER_PROVOKING_VERTEX = " << glu::getProvokingVertexStr(state.getIntAccess()) << tcu::TestLog::EndMessage;
4300 if (contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(3,2)))
4608 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
4614 m_testCtx.getLog() << tcu::TestLog::Message << glu::getGettableStateStr(m_apiName) << " = " << state << tcu::TestLog::EndMessage;
4667 const de::UniquePtr<glu::ShaderProgram> program(new glu::ShaderProgram(m_context.getRenderContext(),
4668 glu::ProgramSources()
4669 << glu::VertexSource(specializeShader(vertexSource, m_context.getRenderContext().getType()))
4670 << glu::FragmentSource(specializeShader(fragmentSource, m_context.getRenderContext().getType()))
4671 << glu::GeometrySource(specializeShader(geometrySource, m_context.getRenderContext().getType()))));
4713 glu::ShaderProgram* genProgram (void);
4716 glu::ShaderProgram* m_program;
4792 const glu::VertexArray vao (m_context.getRenderContext());
4793 const glu::Buffer buffer (m_context.getRenderContext());
4794 const glu::Query query (m_context.getRenderContext());
4808 gl.vertexAttribPointer(oneLocation, 4, GL_FLOAT, GL_FALSE, 2 * (int)sizeof(tcu::Vec4), glu::BufferOffsetAsPointer(1 * sizeof(tcu::Vec4)));
4849 glu::ShaderProgram* PrimitivesGeneratedQueryCase::genProgram (void)
4867 glu::ProgramSources sources;
4943 sources << glu::VertexSource(specializeShader(vertexSource, m_context.getRenderContext().getType()));
4944 sources << glu::FragmentSource(specializeShader(fragmentSource, m_context.getRenderContext().getType()));
4947 sources << glu::GeometrySource(specializeShader(geometrySource.str(), m_context.getRenderContext().getType()));
4949 return new glu::ShaderProgram(m_context.getRenderContext(), sources);
4974 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
5033 glu::CallLogWrapper gl(m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
5041 const glu::Framebuffer fbo (m_context.getRenderContext());
5059 const glu::Framebuffer fbo (m_context.getRenderContext());
5119 glu::CallLogWrapper gl(m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
5127 const glu::Framebuffer fbo (m_context.getRenderContext());
5128 const glu::Texture texture (m_context.getRenderContext());
5168 const bool supportES32 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2));
5169 const bool supportGL45 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(4, 5));
5188 m_testCtx.getLog() << tcu::TestLog::Message << "GL_FRAMEBUFFER_ATTACHMENT_LAYERED = " << glu::getBooleanStr(layered) << tcu::TestLog::EndMessage;
5197 m_testCtx.getLog() << tcu::TestLog::Message << "Error, expected " << ((textureTypes[ndx].layered) ? ("GL_TRUE") : ("GL_FALSE")) << ", got " << glu::getBooleanStr(layered) << tcu::TestLog::EndMessage;
5219 glu::CallLogWrapper gl(m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
5226 const glu::Framebuffer fbo (m_context.getRenderContext());
5227 const glu::Texture texture0 (m_context.getRenderContext());
5228 const glu::Texture texture1 (m_context.getRenderContext());
5249 m_testCtx.getLog() << tcu::TestLog::Message << "Framebuffer status: " << glu::getFramebufferStatusStr(fboStatus) << tcu::TestLog::EndMessage;
5253 m_testCtx.getLog() << tcu::TestLog::Message << "Error, expected GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS, got " << glu::getFramebufferStatusStr(fboStatus) << tcu::TestLog::EndMessage;
5260 const glu::Framebuffer fbo (m_context.getRenderContext());
5261 const glu::Texture texture0 (m_context.getRenderContext());
5262 const glu::Texture texture1 (m_context.getRenderContext());
5283 m_testCtx.getLog() << tcu::TestLog::Message << "Framebuffer status: " << glu::getFramebufferStatusStr(fboStatus) << tcu::TestLog::EndMessage;
5287 m_testCtx.getLog() << tcu::TestLog::Message << "Error, expected GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS, got " << glu::getFramebufferStatusStr(fboStatus) << tcu::TestLog::EndMessage;
5335 const glu::ShaderProgram program(m_context.getRenderContext(), glu::ProgramSources()
5336 << glu::VertexSource(specializeShader(vertexSource, m_context.getRenderContext().getType()))
5337 << glu::FragmentSource(specializeShader(fragmentSource, m_context.getRenderContext().getType()))
5338 << glu::GeometrySource(specializeShader(geometrySource, m_context.getRenderContext().getType())));
5343 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
5355 m_testCtx.getLog() << tcu::TestLog::Message << "Query GL_REFERENCED_BY_GEOMETRY_SHADER, got " << length << " value(s), value[0] = " << glu::getBooleanStr(referenced) << tcu::TestLog::EndMessage;
5385 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
5455 glu::ShaderProgram* genProgram (void);
5467 glu::ShaderProgram* m_program;
5468 glu::VertexArray* m_vao;
5554 m_vao = new glu::VertexArray(m_context.getRenderContext());
5654 m_testCtx.getLog() << tcu::TestLog::Message << "Calling BeginTransformFeedback(" << glu::getPrimitiveTypeStr(basePrimitive) << ")" << tcu::TestLog::EndMessage;
5662 m_testCtx.getLog() << tcu::TestLog::Message << "Calling DrawArrays(" << glu::getPrimitiveTypeStr(outputPrimitive) << ", ...)" << tcu::TestLog::EndMessage;
5669 m_testCtx.getLog() << tcu::TestLog::Message << "Calling DrawArraysInstanced(" << glu::getPrimitiveTypeStr(outputPrimitive) << ", ...)" << tcu::TestLog::EndMessage;
5677 m_testCtx.getLog() << tcu::TestLog::Message << "Calling DrawElements(" << glu::getPrimitiveTypeStr(outputPrimitive) << ", ...)" << tcu::TestLog::EndMessage;
5684 m_testCtx.getLog() << tcu::TestLog::Message << "Calling DrawElementsInstanced(" << glu::getPrimitiveTypeStr(outputPrimitive) << ", ...)" << tcu::TestLog::EndMessage;
5710 m_testCtx.getLog() << tcu::TestLog::Message << "Calling DrawElementsIndirect(" << glu::getPrimitiveTypeStr(outputPrimitive) << ", ...)" << tcu::TestLog::EndMessage;
5738 m_testCtx.getLog() << tcu::TestLog::Message << "Calling DrawElementsIndirect(" << glu::getPrimitiveTypeStr(outputPrimitive) << ", ...)" << tcu::TestLog::EndMessage;
5757 glu::ShaderProgram* VertexFeedbackCase::genProgram (void)
5775 return new glu::ShaderProgram(m_context.getRenderContext(), glu::ProgramSources()
5776 << glu::VertexSource(specializeShader(vertexSource, m_context.getRenderContext().getType()))
5777 << glu::FragmentSource(specializeShader(fragmentSource, m_context.getRenderContext().getType()))
5778 << glu::TransformFeedbackVarying("tf_value")
5779 << glu::TransformFeedbackMode(GL_INTERLEAVED_ATTRIBS));
5828 glu::ShaderProgram* genProgram (void);
5835 glu::ShaderProgram* m_program;
5836 glu::VertexArray* m_vao;
5888 m_vao = new glu::VertexArray(m_context.getRenderContext());
6049 glu::ShaderProgram* VertexFeedbackOverflowCase::genProgram (void)
6064 return new glu::ShaderProgram(m_context.getRenderContext(), glu::ProgramSources()
6065 << glu::VertexSource(specializeShader(vertexSource, m_context.getRenderContext().getType()))
6066 << glu::FragmentSource(specializeShader(fragmentSource, m_context.getRenderContext().getType()))
6067 << glu::TransformFeedbackVarying("gl_Position")
6068 << glu::TransformFeedbackMode(GL_INTERLEAVED_ATTRIBS));