Lines Matching refs:m_config
143 const FboConfig& getConfig (void) const { return m_config; }
155 FboConfig m_config;
252 : m_config (config)
265 if (m_config.buffers & (GL_COLOR_BUFFER_BIT))
267 switch (m_config.colorType)
270 m_colorBuffer = createTex2D(colorBufferName, m_config.colorFormat, width, height);
275 m_colorBuffer = createRbo(colorBufferName, m_config.colorFormat, width, height);
284 if (m_config.buffers & (GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT))
286 switch (m_config.depthStencilType)
288 case GL_TEXTURE_2D: m_depthStencilBuffer = createTex2D(depthStencilBufferName, m_config.depthStencilFormat, width, height); break;
289 case GL_RENDERBUFFER: m_depthStencilBuffer = createRbo(depthStencilBufferName, m_config.depthStencilFormat, width, height); break;
300 if ((m_config.buffers & bit) == 0)
303 switch (m_config.depthStencilType)
322 destroyBuffer(m_colorBuffer, m_config.colorType);
323 destroyBuffer(m_depthStencilBuffer, m_config.depthStencilType);
413 const FboConfig m_config;
418 , m_config (config)
507 const tcu::RGBA threshold (tcu::max(getFormatThreshold(m_config.colorFormat), tcu::RGBA(12, 12, 12, 12)));
531 tcu::TextureFormat colorFormat = glu::mapGLInternalFormat(m_config.colorFormat);
555 Framebuffer fbo(context, m_config, width, height);
631 bool stencil = (m_config.buffers & GL_STENCIL_BUFFER_BIT) != 0;
642 Framebuffer fboA(context, m_config, width, height);
646 FboConfig cfg = m_config;
654 switch (m_config.colorType)
752 tcu::TextureFormat colorFormat = glu::mapGLInternalFormat(m_config.colorFormat);
759 checkColorFormatSupport(context, m_config.colorFormat);
762 if (m_config.colorType == GL_TEXTURE_2D)
765 context.texImage2D(GL_TEXTURE_2D, 0, m_config.colorFormat, width, height);
771 DE_ASSERT(m_config.colorType == GL_RENDERBUFFER);
773 context.renderbufferStorage(GL_RENDERBUFFER, m_config.colorFormat, width, height);
781 if (m_config.colorType == GL_TEXTURE_2D)
823 if (m_config.colorType == GL_TEXTURE_2D)
867 // bool depth = (m_config.buffers & GL_DEPTH_BUFFER_BIT) != 0;
868 bool stencil = (m_config.buffers & GL_STENCIL_BUFFER_BIT) != 0;
879 Framebuffer fboA(context, m_config, width, height);
883 FboConfig cfg = m_config;
896 if ((m_config.buffers & bit) == 0)
899 switch (m_config.depthStencilType)
951 if (m_config.colorType == GL_TEXTURE_2D)
966 readPixels(context, dst, 0, 0, width, height, glu::mapGLInternalFormat(m_config.colorFormat), Vec4(1.0f), Vec4(0.0f));
1113 tcu::TextureFormat colorFormat = glu::mapGLInternalFormat(m_config.colorFormat);
1129 bool depth = (m_config.buffers & GL_DEPTH_BUFFER_BIT) != 0;
1130 bool stencil = (m_config.buffers & GL_STENCIL_BUFFER_BIT) != 0;
1142 Framebuffer fbo(context, m_config, initialWidth, initialHeight);
1235 if (m_config.colorType == GL_TEXTURE_2D)
1269 tcu::TextureFormat colorFormat = glu::mapGLInternalFormat(m_config.colorFormat);
1287 bool stencil = (m_config.buffers & GL_STENCIL_BUFFER_BIT) != 0;
1292 Framebuffer fbo(ctx, m_config, width, height);
1329 (m_buffers & (GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT)) == (m_config.buffers & (GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT)));