Edit

kc3-lang/angle/src/libANGLE/renderer/FramebufferAttachmentObjectImpl.h

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2017-04-05 11:22:18
    Hash : 4fd95d54
    Message : Stop using FramebufferAttachment::Target. Target includes the binding (DEPTH/STENCIL/COLOR), which is not useful for many operations. Simplify this to just passing the mip/layer. This allows us to stop using this internal struct in other classes. BUG=angleproject:1635 Change-Id: Ic5a11781bf45fe7835437fa1e363c190b876d453 Reviewed-on: https://chromium-review.googlesource.com/469152 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/renderer/FramebufferAttachmentObjectImpl.h
  • //
    // Copyright 2016 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    // FramebufferAttachmentObjectImpl.h:
    //   Common ancenstor for all implementations of FBO attachable-objects.
    //   This means Surfaces, Textures and Renderbuffers.
    //
    
    #ifndef LIBANGLE_RENDERER_FRAMEBUFFER_ATTACHMENT_OBJECT_IMPL_H_
    #define LIBANGLE_RENDERER_FRAMEBUFFER_ATTACHMENT_OBJECT_IMPL_H_
    
    #include "libANGLE/FramebufferAttachment.h"
    
    namespace rx
    {
    
    class FramebufferAttachmentObjectImpl : angle::NonCopyable
    {
      public:
        FramebufferAttachmentObjectImpl() {}
        virtual ~FramebufferAttachmentObjectImpl() {}
    
        virtual gl::Error getAttachmentRenderTarget(GLenum binding,
                                                    const gl::ImageIndex &imageIndex,
                                                    FramebufferAttachmentRenderTarget **rtOut)
        {
            UNIMPLEMENTED();
            return gl::OutOfMemory() << "getAttachmentRenderTarget not supported.";
        }
    };
    
    }  // namespace rx
    
    #endif  // LIBANGLE_RENDERER_FRAMEBUFFER_ATTACHMENT_OBJECT_IMPL_H_