#include "libANGLE/FramebufferAttachment.h"
#include "common/utilities.h"
#include "libANGLE/Config.h"
#include "libANGLE/Context.h"
#include "libANGLE/Renderbuffer.h"
#include "libANGLE/Surface.h"
#include "libANGLE/Texture.h"
#include "libANGLE/formatutils.h"
#include "libANGLE/renderer/FramebufferAttachmentObjectImpl.h"
#include "libANGLE/renderer/FramebufferImpl.h"
namespace gl
{
const GLsizei FramebufferAttachment::kDefaultNumViews = …;
const GLint FramebufferAttachment::kDefaultBaseViewIndex = …;
const GLint FramebufferAttachment::kDefaultRenderToTextureSamples = …;
FramebufferAttachment::Target::Target() : … { … }
FramebufferAttachment::Target::Target(GLenum binding, const ImageIndex &imageIndex)
: … { … }
FramebufferAttachment::Target::Target(const Target &other)
: … { … }
FramebufferAttachment::Target &FramebufferAttachment::Target::operator=(const Target &other)
{ … }
FramebufferAttachment::FramebufferAttachment()
: … { … }
FramebufferAttachment::FramebufferAttachment(const Context *context,
GLenum type,
GLenum binding,
const ImageIndex &textureIndex,
FramebufferAttachmentObject *resource,
rx::UniqueSerial framebufferSerial)
: … { … }
FramebufferAttachment::FramebufferAttachment(FramebufferAttachment &&other)
: … { … }
FramebufferAttachment &FramebufferAttachment::operator=(FramebufferAttachment &&other)
{ … }
FramebufferAttachment::~FramebufferAttachment()
{ … }
void FramebufferAttachment::detach(const Context *context, rx::UniqueSerial framebufferSerial)
{ … }
void FramebufferAttachment::attach(const Context *context,
GLenum type,
GLenum binding,
const ImageIndex &textureIndex,
FramebufferAttachmentObject *resource,
GLsizei numViews,
GLuint baseViewIndex,
bool isMultiview,
GLsizei samples,
rx::UniqueSerial framebufferSerial)
{ … }
GLuint FramebufferAttachment::getRedSize() const
{ … }
GLuint FramebufferAttachment::getGreenSize() const
{ … }
GLuint FramebufferAttachment::getBlueSize() const
{ … }
GLuint FramebufferAttachment::getAlphaSize() const
{ … }
GLuint FramebufferAttachment::getDepthSize() const
{ … }
GLuint FramebufferAttachment::getStencilSize() const
{ … }
GLenum FramebufferAttachment::getComponentType() const
{ … }
GLenum FramebufferAttachment::getColorEncoding() const
{ … }
GLuint FramebufferAttachment::id() const
{ … }
TextureTarget FramebufferAttachment::cubeMapFace() const
{ … }
GLint FramebufferAttachment::mipLevel() const
{ … }
GLint FramebufferAttachment::layer() const
{ … }
bool FramebufferAttachment::isLayered() const
{ … }
bool FramebufferAttachment::isMultiview() const
{ … }
GLint FramebufferAttachment::getBaseViewIndex() const
{ … }
bool FramebufferAttachment::isRenderToTexture() const
{ … }
GLsizei FramebufferAttachment::getRenderToTextureSamples() const
{ … }
Texture *FramebufferAttachment::getTexture() const
{ … }
Renderbuffer *FramebufferAttachment::getRenderbuffer() const
{ … }
const egl::Surface *FramebufferAttachment::getSurface() const
{ … }
FramebufferAttachmentObject *FramebufferAttachment::getResource() const
{ … }
bool FramebufferAttachment::operator==(const FramebufferAttachment &other) const
{ … }
bool FramebufferAttachment::operator!=(const FramebufferAttachment &other) const
{ … }
InitState FramebufferAttachment::initState() const
{ … }
angle::Result FramebufferAttachment::initializeContents(const Context *context) const
{ … }
void FramebufferAttachment::setInitState(InitState initState) const
{ … }
FramebufferAttachmentObject::FramebufferAttachmentObject() { … }
FramebufferAttachmentObject::~FramebufferAttachmentObject() { … }
angle::Result FramebufferAttachmentObject::getAttachmentRenderTarget(
const Context *context,
GLenum binding,
const ImageIndex &imageIndex,
GLsizei samples,
rx::FramebufferAttachmentRenderTarget **rtOut) const
{ … }
angle::Result FramebufferAttachmentObject::initializeContents(const Context *context,
GLenum binding,
const ImageIndex &imageIndex)
{ … }
}