Edit

kc3-lang/angle/src/libANGLE/renderer/TextureImpl.cpp

Branch :

  • Show log

    Commit

  • Author : JiangYizhou
    Date : 2017-03-29 14:56:01
    Hash : 34bc315d
    Message : ES31: Implement multisampled Textures for D3D part. Implement TexStorage2DMultisample api for d3d part. BUG=angleproject:1590 TEST=angle_end2end_tests --gtest_filter=TextureMultisampleTest* TEST=angle_deqp_gles31_tests --deqp-case=dEQP-GLES31.functional.texture.multisample.negative.fbo_* Change-Id: Icbfba45b9c2965af02b54dd4060b7b49970cb74b Reviewed-on: https://chromium-review.googlesource.com/457161 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/renderer/TextureImpl.cpp
  • //
    // 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.
    //
    
    // TextureImpl.cpp: Defines the abstract rx::TextureImpl classes.
    
    #include "libANGLE/renderer/TextureImpl.h"
    
    namespace rx
    {
    
    TextureImpl::TextureImpl(const gl::TextureState &state) : mState(state)
    {
    }
    
    TextureImpl::~TextureImpl()
    {
    }
    
    gl::Error TextureImpl::copyTexture(const gl::Context *context,
                                       GLenum target,
                                       size_t level,
                                       GLenum internalFormat,
                                       GLenum type,
                                       size_t sourceLevel,
                                       bool unpackFlipY,
                                       bool unpackPremultiplyAlpha,
                                       bool unpackUnmultiplyAlpha,
                                       const gl::Texture *source)
    {
        UNREACHABLE();
        return gl::InternalError() << "CHROMIUM_copy_texture exposed but not implemented.";
    }
    
    gl::Error TextureImpl::copySubTexture(const gl::Context *context,
                                          GLenum target,
                                          size_t level,
                                          const gl::Offset &destOffset,
                                          size_t sourceLevel,
                                          const gl::Rectangle &sourceArea,
                                          bool unpackFlipY,
                                          bool unpackPremultiplyAlpha,
                                          bool unpackUnmultiplyAlpha,
                                          const gl::Texture *source)
    {
        UNREACHABLE();
        return gl::InternalError() << "CHROMIUM_copy_texture exposed but not implemented.";
    }
    
    gl::Error TextureImpl::copyCompressedTexture(const gl::Context *context, const gl::Texture *source)
    {
        UNREACHABLE();
        return gl::InternalError() << "CHROMIUM_copy_compressed_texture exposed but not implemented.";
    }
    
    }  // namespace rx