Framebuffer: Clean up query naming.
Changes instances where we were querying 'color buffers' and 'depth
buffers' to 'color attachments' and 'depth attachments', etc.
Bug: angleproject:3611
Change-Id: I7af7d33e5204f21d288f5bcad997988d36eabfc5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1690679
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
diff --git a/src/libANGLE/Framebuffer.cpp b/src/libANGLE/Framebuffer.cpp
index f0be4a1..389249a 100644
--- a/src/libANGLE/Framebuffer.cpp
+++ b/src/libANGLE/Framebuffer.cpp
@@ -766,27 +766,27 @@
return false;
}
-const FramebufferAttachment *Framebuffer::getColorbuffer(size_t colorAttachment) const
+const FramebufferAttachment *Framebuffer::getColorAttachment(size_t colorAttachment) const
{
return mState.getColorAttachment(colorAttachment);
}
-const FramebufferAttachment *Framebuffer::getDepthbuffer() const
+const FramebufferAttachment *Framebuffer::getDepthAttachment() const
{
return mState.getDepthAttachment();
}
-const FramebufferAttachment *Framebuffer::getStencilbuffer() const
+const FramebufferAttachment *Framebuffer::getStencilAttachment() const
{
return mState.getStencilAttachment();
}
-const FramebufferAttachment *Framebuffer::getDepthStencilBuffer() const
+const FramebufferAttachment *Framebuffer::getDepthStencilAttachment() const
{
return mState.getDepthStencilAttachment();
}
-const FramebufferAttachment *Framebuffer::getDepthOrStencilbuffer() const
+const FramebufferAttachment *Framebuffer::getDepthOrStencilAttachment() const
{
return mState.getDepthOrStencilAttachment();
}
@@ -796,18 +796,18 @@
return mState.getStencilOrDepthStencilAttachment();
}
-const FramebufferAttachment *Framebuffer::getReadColorbuffer() const
+const FramebufferAttachment *Framebuffer::getReadColorAttachment() const
{
return mState.getReadAttachment();
}
-GLenum Framebuffer::getReadColorbufferType() const
+GLenum Framebuffer::getReadColorAttachmentType() const
{
const FramebufferAttachment *readAttachment = mState.getReadAttachment();
return (readAttachment != nullptr ? readAttachment->type() : GL_NONE);
}
-const FramebufferAttachment *Framebuffer::getFirstColorbuffer() const
+const FramebufferAttachment *Framebuffer::getFirstColorAttachment() const
{
return mState.getFirstColorAttachment();
}
@@ -925,7 +925,7 @@
mDirtyBits.set(DIRTY_BIT_READ_BUFFER);
}
-size_t Framebuffer::getNumColorBuffers() const
+size_t Framebuffer::getNumColorAttachments() const
{
return mState.mColorAttachments.size();
}
@@ -1913,8 +1913,8 @@
return false;
}
- const FramebufferAttachment *depth = getDepthbuffer();
- const FramebufferAttachment *stencil = getStencilbuffer();
+ const FramebufferAttachment *depth = getDepthAttachment();
+ const FramebufferAttachment *stencil = getStencilAttachment();
const bool checkDepth = depth && depth->type() == GL_TEXTURE;
// Skip the feedback loop check for stencil if depth/stencil point to the same resource.
@@ -1978,7 +1978,7 @@
return false;
}
- const FramebufferAttachment *readAttachment = getReadColorbuffer();
+ const FramebufferAttachment *readAttachment = getReadColorAttachment();
ASSERT(readAttachment);
if (readAttachment->isTextureWithId(copyTextureID))