Lines Matching defs:api
121 virtual bool invoke (ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& refImg) const = 0;
179 bool invoke (ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const;
180 virtual bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const = 0;
188 bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const;
203 class RenderTexture2D : public Render { public: bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override; };
204 class RenderTextureCubemap : public Render { public: bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override; };
205 class RenderReadPixelsRenderbuffer : public Render { public: bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override; };
206 class RenderDepthbuffer : public Render { public: bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override; };
207 class RenderStencilbuffer : public Render { public: bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override; };
208 class RenderTryAll : public Render { public: bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override; };
213 bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override;
220 bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override;
227 bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override;
233 bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override;
239 bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const override;
252 bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const;
264 bool invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const;
267 virtual void initializeRbo (GLESImageApi& api, GLuint rbo, tcu::Texture2D& ref) const = 0;
276 void initializeRbo (GLESImageApi& api, GLuint rbo, tcu::Texture2D& ref) const;
287 void initializeRbo (GLESImageApi& api, GLuint rbo, tcu::Texture2D& ref) const;
298 void initializeRbo (GLESImageApi& api, GLuint rbo, tcu::Texture2D& ref) const;
342 bool GLESImageApi::GLESAction::invoke (ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const
344 GLESImageApi& glesApi = dynamic_cast<GLESImageApi&>(api);
350 bool GLESImageApi::Create::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const
352 de::UniquePtr<ClientBuffer> buffer (m_imgSource->createBuffer(api.m_egl, api.m_gl, &ref));
354 GLU_CHECK_GLW_CALL(api.m_gl, finish());
356 image = api.createImage(*m_imgSource, *buffer);
471 bool GLESImageApi::RenderTexture2D::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
473 const glw::Functions& gl = api.m_gl;
474 tcu::TestLog& log = api.getLog();
488 log << tcu::TestLog::Message << "Rendering EGLImage as GL_TEXTURE_2D in context: " << api.m_contextId << tcu::TestLog::EndMessage;
492 imageTargetTexture2D(api.m_egl, gl, **img);
549 bool GLESImageApi::RenderTexture2DArray::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
551 const glw::Functions& gl = api.m_gl;
552 tcu::TestLog& log = api.getLog();
560 log << tcu::TestLog::Message << "Rendering EGLImage as GL_TEXTURE_2D_ARRAY in context: " << api.m_contextId << tcu::TestLog::EndMessage;
564 imageTargetTexture2DArray(api.m_egl, gl, **img);
655 bool GLESImageApi::RenderSampleTexture2DArray::invokeGLES(GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
657 const glw::Functions& gl = api.m_gl;
658 tcu::TestLog& log = api.getLog();
667 log << tcu::TestLog::Message << "Rendering and sampling EGLImage as GL_TEXTURE_2D_ARRAY in context: " << api.m_contextId << tcu::TestLog::EndMessage;
689 imageTargetTexture2DArray(api.m_egl, gl, **img);
829 bool GLESImageApi::RenderExternalTexture::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
831 const glw::Functions& gl = api.m_gl;
832 tcu::TestLog& log = api.getLog();
846 log << tcu::TestLog::Message << "Rendering EGLImage as GL_TEXTURE_EXTERNAL_OES in context: " << api.m_contextId << tcu::TestLog::EndMessage;
850 imageTargetExternalTexture(api.m_egl, gl, **img);
907 bool GLESImageApi::RenderYUVTexture::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
909 const glw::Functions& gl = api.m_gl;
910 tcu::TestLog& log = api.getLog();
920 log << tcu::TestLog::Message << "Rendering EGLImage as GL_TEXTURE_EXTERNAL_OES in context: " << api.m_contextId << tcu::TestLog::EndMessage;
923 imageTargetExternalTexture(api.m_egl, gl, **img);
1017 bool GLESImageApi::RenderExternalTextureSamplerArray::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
1019 const glw::Functions& gl = api.m_gl;
1020 tcu::TestLog& log = api.getLog();
1034 log << tcu::TestLog::Message << "Rendering EGLImage as GL_TEXTURE_EXTERNAL_OES using sampler array in context: " << api.m_contextId << tcu::TestLog::EndMessage;
1038 imageTargetExternalTexture(api.m_egl, gl, **img);
1120 bool GLESImageApi::RenderDepthbuffer::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
1122 const glw::Functions& gl = api.m_gl;
1123 tcu::TestLog& log = api.getLog();
1142 imageTargetRenderbuffer(api.m_egl, gl, **img);
1243 bool GLESImageApi::RenderStencilbuffer::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
1249 const glw::Functions& gl = api.m_gl;
1250 tcu::TestLog& log = api.getLog();
1267 imageTargetRenderbuffer(api.m_egl, gl, **img);
1361 bool GLESImageApi::RenderReadPixelsRenderbuffer::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
1374 const glw::Functions& gl = api.m_gl;
1378 tcu::TestLog& log = api.getLog();
1388 imageTargetRenderbuffer(api.m_egl, gl, **img);
1408 bool GLESImageApi::RenderTryAll::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
1411 tcu::TestLog& log = api.getLog();
1419 set<string> exts = getSupportedExtensions(log, api.m_egl, api.m_display, api.m_gl);
1430 if (!actions[ndx]->invoke(api, img, reference))
1451 bool GLESImageApi::ModifyTexSubImage::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
1453 const glw::Functions& gl = api.m_gl;
1454 tcu::TestLog& log = api.getLog();
1468 imageTargetTexture2D(api.m_egl, gl, **img);
1478 bool GLESImageApi::ModifyRenderbuffer::invokeGLES (GLESImageApi& api, MovePtr<UniqueImage>& img, tcu::Texture2D& reference) const
1480 const glw::Functions& gl = api.m_gl;
1481 tcu::TestLog& log = api.getLog();
1490 imageTargetRenderbuffer(api.m_egl, gl, **img);
1492 initializeRbo(api, *renderbuffer, reference);
1502 void GLESImageApi::ModifyRenderbufferClearColor::initializeRbo (GLESImageApi& api, GLuint renderbuffer, tcu::Texture2D& reference) const
1504 const glw::Functions& gl = api.m_gl;
1515 void GLESImageApi::ModifyRenderbufferClearDepth::initializeRbo (GLESImageApi& api, GLuint renderbuffer, tcu::Texture2D& reference) const
1517 const glw::Functions& gl = api.m_gl;
1528 void GLESImageApi::ModifyRenderbufferClearStencil::initializeRbo (GLESImageApi& api, GLuint renderbuffer, tcu::Texture2D& reference) const
1530 const glw::Functions& gl = api.m_gl;
1664 ImageApi* api = DE_NULL;
1669 api = new GLESImageApi(egl, m_gl, contextNdx, getLog(), m_display, m_surface, m_config, 2);
1675 api = new GLESImageApi(egl, m_gl, contextNdx, getLog(), m_display, m_surface, m_config, 3);
1683 m_apiContexts.push_back(api);
1724 ImageApi& api = *m_apiContexts[op.apiIndex];
1725 const bool isOk = op.action->invoke(api, m_img, m_refImg);