Lines Matching refs:Framebuffer
122 static tcu::CubeFace texTargetToFace (Framebuffer::TexTarget target) in texTargetToFace()
126 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_X: return tcu::CUBEFACE_NEGATIVE_X; in texTargetToFace()
127 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X: return tcu::CUBEFACE_POSITIVE_X; in texTargetToFace()
128 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Y: return tcu::CUBEFACE_NEGATIVE_Y; in texTargetToFace()
129 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Y: return tcu::CUBEFACE_POSITIVE_Y; in texTargetToFace()
130 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z: return tcu::CUBEFACE_NEGATIVE_Z; in texTargetToFace()
131 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Z: return tcu::CUBEFACE_POSITIVE_Z; in texTargetToFace()
136 static Framebuffer::TexTarget texLayeredTypeToTarget (Texture::Type type) in texLayeredTypeToTarget()
140 case Texture::TYPE_2D_ARRAY: return Framebuffer::TEXTARGET_2D_ARRAY; in texLayeredTypeToTarget()
141 case Texture::TYPE_3D: return Framebuffer::TEXTARGET_3D; in texLayeredTypeToTarget()
142 case Texture::TYPE_CUBE_MAP_ARRAY: return Framebuffer::TEXTARGET_CUBE_MAP_ARRAY; in texLayeredTypeToTarget()
143 default: return Framebuffer::TEXTARGET_LAST; in texLayeredTypeToTarget()
485 vector<Framebuffer*> framebuffers; in ~ReferenceContext()
487 for (vector<Framebuffer*>::iterator i = framebuffers.begin(); i != framebuffers.end(); i++) in ~ReferenceContext()
728 rc::Framebuffer* framebufferBinding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in deleteTexture()
734 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in deleteTexture()
736 …Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::AttachmentPo… in deleteTexture()
741 attachment = Framebuffer::Attachment(); in deleteTexture()
753 Framebuffer* fbo = DE_NULL; in bindFramebuffer()
765 fbo = new Framebuffer(name); in bindFramebuffer()
773 rc::Framebuffer*& binding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in bindFramebuffer()
782 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in bindFramebuffer()
783 releaseFboAttachmentReference(binding->getAttachment((Framebuffer::AttachmentPoint)point)); in bindFramebuffer()
793 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in bindFramebuffer()
794 acquireFboAttachmentReference(fbo->getAttachment((Framebuffer::AttachmentPoint)point)); in bindFramebuffer()
807 void ReferenceContext::deleteFramebuffer (Framebuffer* framebuffer) in deleteFramebuffer()
822 Framebuffer* framebuffer = name ? m_framebuffers.find(name) : DE_NULL; in deleteFramebuffers()
870 rc::Framebuffer* framebufferBinding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in deleteRenderbuffer()
876 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in deleteRenderbuffer()
878 …Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::AttachmentPo… in deleteRenderbuffer()
883 attachment = Framebuffer::Attachment(); in deleteRenderbuffer()
1909 static inline Framebuffer::AttachmentPoint mapGLAttachmentPoint (deUint32 attachment) in mapGLAttachmentPoint()
1913 case GL_COLOR_ATTACHMENT0: return Framebuffer::ATTACHMENTPOINT_COLOR0; in mapGLAttachmentPoint()
1914 case GL_DEPTH_ATTACHMENT: return Framebuffer::ATTACHMENTPOINT_DEPTH; in mapGLAttachmentPoint()
1915 case GL_STENCIL_ATTACHMENT: return Framebuffer::ATTACHMENTPOINT_STENCIL; in mapGLAttachmentPoint()
1916 default: return Framebuffer::ATTACHMENTPOINT_LAST; in mapGLAttachmentPoint()
1920 static inline Framebuffer::TexTarget mapGLFboTexTarget (deUint32 target) in mapGLFboTexTarget()
1924 case GL_TEXTURE_2D: return Framebuffer::TEXTARGET_2D; in mapGLFboTexTarget()
1925 case GL_TEXTURE_CUBE_MAP_POSITIVE_X: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X; in mapGLFboTexTarget()
1926 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Y; in mapGLFboTexTarget()
1927 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Z; in mapGLFboTexTarget()
1928 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_X; in mapGLFboTexTarget()
1929 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Y; in mapGLFboTexTarget()
1930 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z; in mapGLFboTexTarget()
1931 default: return Framebuffer::TEXTARGET_LAST; in mapGLFboTexTarget()
1935 void ReferenceContext::acquireFboAttachmentReference (const Framebuffer::Attachment& attachment) in acquireFboAttachmentReference()
1939 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in acquireFboAttachmentReference()
1948 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in acquireFboAttachmentReference()
1962 void ReferenceContext::releaseFboAttachmentReference (const Framebuffer::Attachment& attachment) in releaseFboAttachmentReference()
1966 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in releaseFboAttachmentReference()
1975 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in releaseFboAttachmentReference()
1999 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferTexture2D()
2001 Framebuffer::TexTarget fboTexTarget = mapGLFboTexTarget(textarget); in framebufferTexture2D()
2006 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferTexture2D()
2009 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferTexture2D()
2024 RC_IF_ERROR(fboTexTarget != Framebuffer::TEXTARGET_2D, GL_INVALID_OPERATION, RC_RET_VOID); in framebufferTexture2D()
2028 …if (!deInRange32(fboTexTarget, Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X, Framebuffer::TEXTARGET_… in framebufferTexture2D()
2033 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferTexture2D()
2036 fboAttachment = Framebuffer::Attachment(); in framebufferTexture2D()
2040 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_TEXTURE; in framebufferTexture2D()
2061 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferTextureLayer()
2067 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferTextureLayer()
2070 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferTextureLayer()
2100 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferTextureLayer()
2103 fboAttachment = Framebuffer::Attachment(); in framebufferTextureLayer()
2107 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_TEXTURE; in framebufferTextureLayer()
2113 DE_ASSERT(fboAttachment.texTarget != Framebuffer::TEXTARGET_LAST); in framebufferTextureLayer()
2131 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferRenderbuffer()
2137 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferRenderbuffer()
2140 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferRenderbuffer()
2155 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferRenderbuffer()
2158 fboAttachment = Framebuffer::Attachment(); in framebufferRenderbuffer()
2162 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_RENDERBUFFER; in framebufferRenderbuffer()
2178 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in checkFramebufferStatus()
2190 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in checkFramebufferStatus()
2192 …const Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::Atta… in checkFramebufferStatus()
2197 if (attachment.type == Framebuffer::ATTACHMENTTYPE_TEXTURE) in checkFramebufferStatus()
2203 if (attachment.texTarget == Framebuffer::TEXTARGET_2D) in checkFramebufferStatus()
2211 else if (deInRange32(attachment.texTarget, Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X, in checkFramebufferStatus()
2212 Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z)) in checkFramebufferStatus()
2223 else if (attachment.texTarget == Framebuffer::TEXTARGET_2D_ARRAY) in checkFramebufferStatus()
2231 else if (attachment.texTarget == Framebuffer::TEXTARGET_3D) in checkFramebufferStatus()
2239 else if (attachment.texTarget == Framebuffer::TEXTARGET_CUBE_MAP_ARRAY) in checkFramebufferStatus()
2254 else if (attachment.type == Framebuffer::ATTACHMENTTYPE_RENDERBUFFER) in checkFramebufferStatus()
2265 TCU_CHECK(attachment.type == Framebuffer::ATTACHMENTTYPE_LAST); in checkFramebufferStatus()
2287 if (point != Framebuffer::ATTACHMENTPOINT_COLOR0) in checkFramebufferStatus()
2292 if (point != Framebuffer::ATTACHMENTPOINT_DEPTH) in checkFramebufferStatus()
2297 if (point != Framebuffer::ATTACHMENTPOINT_STENCIL) in checkFramebufferStatus()
2302 if (point != Framebuffer::ATTACHMENTPOINT_DEPTH && in checkFramebufferStatus()
2303 point != Framebuffer::ATTACHMENTPOINT_STENCIL) in checkFramebufferStatus()
2350 …ferAccess ReferenceContext::getFboAttachment (const rc::Framebuffer& framebuffer, rc::Framebuffer:… in getFboAttachment()
2352 const Framebuffer::Attachment& attachment = framebuffer.getAttachment(point); in getFboAttachment()
2356 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in getFboAttachment()
2405 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in getFboAttachment()
5446 Framebuffer::Framebuffer (deUint32 name) in Framebuffer() function in sglr::rc::Framebuffer
5451 Framebuffer::~Framebuffer (void) in ~Framebuffer()