Lines Matching refs:Framebuffer
120 static tcu::CubeFace texTargetToFace (Framebuffer::TexTarget target) in texTargetToFace()
124 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_X: return tcu::CUBEFACE_NEGATIVE_X; in texTargetToFace()
125 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X: return tcu::CUBEFACE_POSITIVE_X; in texTargetToFace()
126 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Y: return tcu::CUBEFACE_NEGATIVE_Y; in texTargetToFace()
127 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Y: return tcu::CUBEFACE_POSITIVE_Y; in texTargetToFace()
128 case Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z: return tcu::CUBEFACE_NEGATIVE_Z; in texTargetToFace()
129 case Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Z: return tcu::CUBEFACE_POSITIVE_Z; in texTargetToFace()
134 static Framebuffer::TexTarget texLayeredTypeToTarget (Texture::Type type) in texLayeredTypeToTarget()
138 case Texture::TYPE_2D_ARRAY: return Framebuffer::TEXTARGET_2D_ARRAY; in texLayeredTypeToTarget()
139 case Texture::TYPE_3D: return Framebuffer::TEXTARGET_3D; in texLayeredTypeToTarget()
140 case Texture::TYPE_CUBE_MAP_ARRAY: return Framebuffer::TEXTARGET_CUBE_MAP_ARRAY; in texLayeredTypeToTarget()
141 default: return Framebuffer::TEXTARGET_LAST; in texLayeredTypeToTarget()
483 vector<Framebuffer*> framebuffers; in ~ReferenceContext()
485 for (vector<Framebuffer*>::iterator i = framebuffers.begin(); i != framebuffers.end(); i++) in ~ReferenceContext()
726 rc::Framebuffer* framebufferBinding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in deleteTexture()
732 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in deleteTexture()
734 …Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::AttachmentPo… in deleteTexture()
739 attachment = Framebuffer::Attachment(); in deleteTexture()
751 Framebuffer* fbo = DE_NULL; in bindFramebuffer()
763 fbo = new Framebuffer(name); in bindFramebuffer()
771 rc::Framebuffer*& binding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in bindFramebuffer()
780 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in bindFramebuffer()
781 releaseFboAttachmentReference(binding->getAttachment((Framebuffer::AttachmentPoint)point)); in bindFramebuffer()
791 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in bindFramebuffer()
792 acquireFboAttachmentReference(fbo->getAttachment((Framebuffer::AttachmentPoint)point)); in bindFramebuffer()
805 void ReferenceContext::deleteFramebuffer (Framebuffer* framebuffer) in deleteFramebuffer()
820 Framebuffer* framebuffer = name ? m_framebuffers.find(name) : DE_NULL; in deleteFramebuffers()
868 rc::Framebuffer* framebufferBinding = ndx ? m_drawFramebufferBinding : m_readFramebufferBinding; in deleteRenderbuffer()
874 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in deleteRenderbuffer()
876 …Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::AttachmentPo… in deleteRenderbuffer()
881 attachment = Framebuffer::Attachment(); in deleteRenderbuffer()
1907 static inline Framebuffer::AttachmentPoint mapGLAttachmentPoint (deUint32 attachment) in mapGLAttachmentPoint()
1911 case GL_COLOR_ATTACHMENT0: return Framebuffer::ATTACHMENTPOINT_COLOR0; in mapGLAttachmentPoint()
1912 case GL_DEPTH_ATTACHMENT: return Framebuffer::ATTACHMENTPOINT_DEPTH; in mapGLAttachmentPoint()
1913 case GL_STENCIL_ATTACHMENT: return Framebuffer::ATTACHMENTPOINT_STENCIL; in mapGLAttachmentPoint()
1914 default: return Framebuffer::ATTACHMENTPOINT_LAST; in mapGLAttachmentPoint()
1918 static inline Framebuffer::TexTarget mapGLFboTexTarget (deUint32 target) in mapGLFboTexTarget()
1922 case GL_TEXTURE_2D: return Framebuffer::TEXTARGET_2D; in mapGLFboTexTarget()
1923 case GL_TEXTURE_CUBE_MAP_POSITIVE_X: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X; in mapGLFboTexTarget()
1924 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Y; in mapGLFboTexTarget()
1925 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z: return Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_Z; in mapGLFboTexTarget()
1926 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_X; in mapGLFboTexTarget()
1927 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Y; in mapGLFboTexTarget()
1928 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z: return Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z; in mapGLFboTexTarget()
1929 default: return Framebuffer::TEXTARGET_LAST; in mapGLFboTexTarget()
1933 void ReferenceContext::acquireFboAttachmentReference (const Framebuffer::Attachment& attachment) in acquireFboAttachmentReference()
1937 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in acquireFboAttachmentReference()
1946 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in acquireFboAttachmentReference()
1960 void ReferenceContext::releaseFboAttachmentReference (const Framebuffer::Attachment& attachment) in releaseFboAttachmentReference()
1964 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in releaseFboAttachmentReference()
1973 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in releaseFboAttachmentReference()
1997 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferTexture2D()
1999 Framebuffer::TexTarget fboTexTarget = mapGLFboTexTarget(textarget); in framebufferTexture2D()
2004 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferTexture2D()
2007 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferTexture2D()
2022 RC_IF_ERROR(fboTexTarget != Framebuffer::TEXTARGET_2D, GL_INVALID_OPERATION, RC_RET_VOID); in framebufferTexture2D()
2026 …if (!deInRange32(fboTexTarget, Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X, Framebuffer::TEXTARGET_… in framebufferTexture2D()
2031 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferTexture2D()
2034 fboAttachment = Framebuffer::Attachment(); in framebufferTexture2D()
2038 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_TEXTURE; in framebufferTexture2D()
2059 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferTextureLayer()
2065 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferTextureLayer()
2068 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferTextureLayer()
2098 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferTextureLayer()
2101 fboAttachment = Framebuffer::Attachment(); in framebufferTextureLayer()
2105 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_TEXTURE; in framebufferTextureLayer()
2111 DE_ASSERT(fboAttachment.texTarget != Framebuffer::TEXTARGET_LAST); in framebufferTextureLayer()
2129 Framebuffer::AttachmentPoint point = mapGLAttachmentPoint(attachment); in framebufferRenderbuffer()
2135 RC_IF_ERROR(point == Framebuffer::ATTACHMENTPOINT_LAST, GL_INVALID_ENUM, RC_RET_VOID); in framebufferRenderbuffer()
2138 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in framebufferRenderbuffer()
2153 Framebuffer::Attachment& fboAttachment = framebufferBinding->getAttachment(point); in framebufferRenderbuffer()
2156 fboAttachment = Framebuffer::Attachment(); in framebufferRenderbuffer()
2160 fboAttachment.type = Framebuffer::ATTACHMENTTYPE_RENDERBUFFER; in framebufferRenderbuffer()
2176 …rc::Framebuffer* framebufferBinding = (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER) … in checkFramebufferStatus()
2188 for (int point = 0; point < Framebuffer::ATTACHMENTPOINT_LAST; point++) in checkFramebufferStatus()
2190 …const Framebuffer::Attachment& attachment = framebufferBinding->getAttachment((Framebuffer::Atta… in checkFramebufferStatus()
2195 if (attachment.type == Framebuffer::ATTACHMENTTYPE_TEXTURE) in checkFramebufferStatus()
2201 if (attachment.texTarget == Framebuffer::TEXTARGET_2D) in checkFramebufferStatus()
2209 else if (deInRange32(attachment.texTarget, Framebuffer::TEXTARGET_CUBE_MAP_POSITIVE_X, in checkFramebufferStatus()
2210 Framebuffer::TEXTARGET_CUBE_MAP_NEGATIVE_Z)) in checkFramebufferStatus()
2221 else if (attachment.texTarget == Framebuffer::TEXTARGET_2D_ARRAY) in checkFramebufferStatus()
2229 else if (attachment.texTarget == Framebuffer::TEXTARGET_3D) in checkFramebufferStatus()
2237 else if (attachment.texTarget == Framebuffer::TEXTARGET_CUBE_MAP_ARRAY) in checkFramebufferStatus()
2252 else if (attachment.type == Framebuffer::ATTACHMENTTYPE_RENDERBUFFER) in checkFramebufferStatus()
2263 TCU_CHECK(attachment.type == Framebuffer::ATTACHMENTTYPE_LAST); in checkFramebufferStatus()
2285 if (point != Framebuffer::ATTACHMENTPOINT_COLOR0) in checkFramebufferStatus()
2290 if (point != Framebuffer::ATTACHMENTPOINT_DEPTH) in checkFramebufferStatus()
2295 if (point != Framebuffer::ATTACHMENTPOINT_STENCIL) in checkFramebufferStatus()
2300 if (point != Framebuffer::ATTACHMENTPOINT_DEPTH && in checkFramebufferStatus()
2301 point != Framebuffer::ATTACHMENTPOINT_STENCIL) in checkFramebufferStatus()
2348 …ferAccess ReferenceContext::getFboAttachment (const rc::Framebuffer& framebuffer, rc::Framebuffer:… in getFboAttachment()
2350 const Framebuffer::Attachment& attachment = framebuffer.getAttachment(point); in getFboAttachment()
2354 case Framebuffer::ATTACHMENTTYPE_TEXTURE: in getFboAttachment()
2403 case Framebuffer::ATTACHMENTTYPE_RENDERBUFFER: in getFboAttachment()
5444 Framebuffer::Framebuffer (deUint32 name) in Framebuffer() function in sglr::rc::Framebuffer
5449 Framebuffer::~Framebuffer (void) in ~Framebuffer()