Home | History | Annotate | Download | only in libGLESv2

Lines Matching refs:attachment

25 RenderTarget *GetAttachmentRenderTarget(gl::FramebufferAttachment *attachment)
27 if (attachment->isTexture())
29 gl::Texture *texture = attachment->getTexture();
32 const gl::ImageIndex *index = attachment->getTextureImageIndex();
37 gl::Renderbuffer *renderbuffer = attachment->getRenderbuffer();
45 unsigned int GetAttachmentSerial(gl::FramebufferAttachment *attachment)
47 if (attachment->isTexture())
49 gl::Texture *texture = attachment->getTexture();
52 const gl::ImageIndex *index = attachment->getTextureImageIndex();
57 gl::Renderbuffer *renderbuffer = attachment->getRenderbuffer();
196 FramebufferAttachment *attachment = createAttachment(GL_DEPTH_STENCIL_ATTACHMENT, type, depthStencilBuffer, level, layer);
202 if (attachment && attachment->getDepthSize() > 0 && attachment->getStencilSize() > 0)
204 mDepthbuffer = attachment;
206 // Make a new attachment object to ensure we do not double-delete
216 FramebufferAttachment *attachment = mColorbuffers[colorAttachment];
218 if (attachment && attachment->isTextureWithId(textureId))
239 FramebufferAttachment *attachment = mColorbuffers[colorAttachment];
241 if (attachment && attachment->isRenderbufferWithId(renderbufferId))
316 FramebufferAttachment *Framebuffer::getAttachment(GLenum attachment) const
318 if (attachment >= GL_COLOR_ATTACHMENT0 && attachment <= GL_COLOR_ATTACHMENT15)
320 return getColorbuffer(attachment - GL_COLOR_ATTACHMENT0);
324 switch (attachment)
596 // we need to have at least one attachment to be complete
619 gl::FramebufferAttachment *attachment =
623 if (attachment)
625 rx::RenderTarget *renderTarget = rx::GetAttachmentRenderTarget(attachment);
647 // Make a new attachment objects to ensure we do not double-delete
682 // A valid depth-stencil attachment has the same resource bound to both the
683 // depth and stencil attachment points.
721 FramebufferAttachment *DefaultFramebuffer::getAttachment(GLenum attachment) const
723 switch (attachment)