Lines Matching refs:Framebuffer
119 static tcu::CubeFace texTargetToFace (Framebuffer::TexTarget target) in texTargetToFace()
123 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_X: return tcu::CUBEFACE_NEGATIVE_X; in texTargetToFace()
124 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X: return tcu::CUBEFACE_POSITIVE_X; in texTargetToFace()
125 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Y: return tcu::CUBEFACE_NEGATIVE_Y; in texTargetToFace()
126 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Y: return tcu::CUBEFACE_POSITIVE_Y; in texTargetToFace()
127 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z: return tcu::CUBEFACE_NEGATIVE_Z; in texTargetToFace()
128 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Z: return tcu::CUBEFACE_POSITIVE_Z; in texTargetToFace()
133 static Framebuffer::TexTarget texLayeredTypeToTarget (Texture::Type type) in texLayeredTypeToTarget()
137 case Texture::TYPE_2D_ARRAY: return Framebuffer::TEXTARGET_2D_ARRAY; in texLayeredTypeToTarget()
138 case Texture::TYPE_3D: return Framebuffer::TEXTARGET_3D; in texLayeredTypeToTarget()
139 case Texture::TYPE_CUBE_MAP_ARRAY: return Framebuffer::TEXTARGET_CUBE_MAP_ARRAY; in texLayeredTypeToTarget()
140 default: return Framebuffer::TEXTARGET_LAST; in texLayeredTypeToTarget()
466 vector<Framebuffer*> framebuffers; in ~ReferenceContext()
468 for (vector<Framebuffer*>::iterator i = framebuffers.begin(); i != framebuffers.end(); i++) in ~ReferenceContext()
708 rc::Framebuffer* framebufferBinding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in deleteTexture()
714 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in deleteTexture()
716 …Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::AttachmentPo… in deleteTexture()
721 attachment = Framebuffer::Attachment(); in deleteTexture()
733 Framebuffer* fbo = DE_NULL; in bindFramebuffer()
745 fbo = new Framebuffer(name); in bindFramebuffer()
753 rc::Framebuffer*& binding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in bindFramebuffer()
762 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in bindFramebuffer()
763 releaseFboAttachmentReference(binding->getAttachment((Framebuffer::AttachmentPoint)point)); in bindFramebuffer()
773 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in bindFramebuffer()
774 acquireFboAttachmentReference(fbo->getAttachment((Framebuffer::AttachmentPoint)point)); in bindFramebuffer()
787 void ReferenceContext::deleteFramebuffer (Framebuffer* framebuffer) in deleteFramebuffer()
802 Framebuffer* framebuffer = name ? m_framebuffers.find(name) : DE_NULL; in deleteFramebuffers()
850 rc::Framebuffer* framebufferBinding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in deleteRenderbuffer()
856 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in deleteRenderbuffer()
858 …Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::AttachmentPo… in deleteRenderbuffer()
863 attachment = Framebuffer::Attachment(); in deleteRenderbuffer()
1889 static inline Framebuffer::AttachmentPoint mapGLAttachmentPoint (deUint32 attachment) in mapGLAttachmentPoint()
1893 case GL_COLOR_ATTACHMENT0: return Framebuffer::ATTACHMENTPOINT_COLOR0; in mapGLAttachmentPoint()
1894 case GL_DEPTH_ATTACHMENT: return Framebuffer::ATTACHMENTPOINT_DEPTH; in mapGLAttachmentPoint()
1895 case GL_STENCIL_ATTACHMENT: return Framebuffer::ATTACHMENTPOINT_STENCIL; in mapGLAttachmentPoint()
1896 default: return Framebuffer::ATTACHMENTPOINT_LAST; in mapGLAttachmentPoint()
1900 static inline Framebuffer::TexTarget mapGLFboTexTarget (deUint32 target) in mapGLFboTexTarget()
1904 case GL_TEXTURE_2D: return Framebuffer::TEXTARGET_2D; in mapGLFboTexTarget()
1905 case GL_TEXTURE_CUBE_MAP_POSITIVE_X: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X; in mapGLFboTexTarget()
1906 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Y; in mapGLFboTexTarget()
1907 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Z; in mapGLFboTexTarget()
1908 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_X; in mapGLFboTexTarget()
1909 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Y; in mapGLFboTexTarget()
1910 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z; in mapGLFboTexTarget()
1911 default: return Framebuffer::TEXTARGET_LAST; in mapGLFboTexTarget()
1915 void ReferenceContext::acquireFboAttachmentReference (const Framebuffer::Attachment& attachment) in acquireFboAttachmentReference()
1919 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in acquireFboAttachmentReference()
1928 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in acquireFboAttachmentReference()
1942 void ReferenceContext::releaseFboAttachmentReference (const Framebuffer::Attachment& attachment) in releaseFboAttachmentReference()
1946 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in releaseFboAttachmentReference()
1955 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in releaseFboAttachmentReference()
1979 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferTexture2D()
1981 Framebuffer::TexTarget fboTexTarget = mapGLFboTexTarget(textarget); in framebufferTexture2D()
1986 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferTexture2D()
1989 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferTexture2D()
2004 RC_IF_ERROR(fboTexTarget != Framebuffer::TEXTARGET_2D, GL_INVALID_OPERATION, RC_RET_VOID); in framebufferTexture2D()
2008 …if (!deInRange32(fboTexTarget, Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X, Framebuffer::TEXTARGET_… in framebufferTexture2D()
2013 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferTexture2D()
2016 fboAttachment = Framebuffer::Attachment(); in framebufferTexture2D()
2020 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_TEXTURE; in framebufferTexture2D()
2041 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferTextureLayer()
2047 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferTextureLayer()
2050 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferTextureLayer()
2080 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferTextureLayer()
2083 fboAttachment = Framebuffer::Attachment(); in framebufferTextureLayer()
2087 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_TEXTURE; in framebufferTextureLayer()
2093 DE_ASSERT(fboAttachment.texTarget != Framebuffer::TEXTARGET_LAST); in framebufferTextureLayer()
2111 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferRenderbuffer()
2117 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferRenderbuffer()
2120 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferRenderbuffer()
2135 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferRenderbuffer()
2138 fboAttachment = Framebuffer::Attachment(); in framebufferRenderbuffer()
2142 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_RENDERBUFFER; in framebufferRenderbuffer()
2158 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in checkFramebufferStatus()
2170 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in checkFramebufferStatus()
2172 …const Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::Atta… in checkFramebufferStatus()
2177 if (attachment.type == Framebuffer::ATTACHMENTTYPE_TEXTURE) in checkFramebufferStatus()
2183 if (attachment.texTarget == Framebuffer::TEXTARGET_2D) in checkFramebufferStatus()
2191 else if (deInRange32(attachment.texTarget, Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X, in checkFramebufferStatus()
2192 Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z)) in checkFramebufferStatus()
2203 else if (attachment.texTarget == Framebuffer::TEXTARGET_2D_ARRAY) in checkFramebufferStatus()
2211 else if (attachment.texTarget == Framebuffer::TEXTARGET_3D) in checkFramebufferStatus()
2219 else if (attachment.texTarget == Framebuffer::TEXTARGET_CUBE_MAP_ARRAY) in checkFramebufferStatus()
2234 else if (attachment.type == Framebuffer::ATTACHMENTTYPE_RENDERBUFFER) in checkFramebufferStatus()
2245 TCU_CHECK(attachment.type == Framebuffer::ATTACHMENTTYPE_LAST); in checkFramebufferStatus()
2267 if (point != Framebuffer::ATTACHMENTPOINT_COLOR0) in checkFramebufferStatus()
2272 if (point != Framebuffer::ATTACHMENTPOINT_DEPTH) in checkFramebufferStatus()
2277 if (point != Framebuffer::ATTACHMENTPOINT_STENCIL) in checkFramebufferStatus()
2282 if (point != Framebuffer::ATTACHMENTPOINT_DEPTH && in checkFramebufferStatus()
2283 point != Framebuffer::ATTACHMENTPOINT_STENCIL) in checkFramebufferStatus()
2330 …ferAccess ReferenceContext::getFboAttachment (const rc::Framebuffer& framebuffer, rc::Framebuffer:… in getFboAttachment()
2332 const Framebuffer::Attachment& attachment = framebuffer.getAttachment(point); in getFboAttachment()
2336 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in getFboAttachment()
2366 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in getFboAttachment()
5407 Framebuffer::Framebuffer (deUint32 name) in Framebuffer() function in sglr::rc::Framebuffer
5412 Framebuffer::~Framebuffer (void) in ~Framebuffer()