blob: 34480d80e02852af741b500bfac31e13b4fb12b1 [file] [log] [blame]
Geoff Lang97073d12016-04-20 10:42:34 -07001//
2// Copyright 2016 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7// TextureImpl.cpp: Defines the abstract rx::TextureImpl classes.
8
9#include "libANGLE/renderer/TextureImpl.h"
10
11namespace rx
12{
13
14TextureImpl::TextureImpl(const gl::TextureState &state) : mState(state)
15{
16}
17
18TextureImpl::~TextureImpl()
19{
20}
21
Jamie Madillc564c072017-06-01 12:45:42 -040022gl::Error TextureImpl::copyTexture(const gl::Context *context,
Geoff Langfc72a072017-03-24 14:52:39 -040023 GLenum target,
24 size_t level,
Jamie Madill8897afa2017-02-06 17:17:23 -050025 GLenum internalFormat,
Geoff Lang97073d12016-04-20 10:42:34 -070026 GLenum type,
Geoff Langfc72a072017-03-24 14:52:39 -040027 size_t sourceLevel,
Geoff Lang97073d12016-04-20 10:42:34 -070028 bool unpackFlipY,
29 bool unpackPremultiplyAlpha,
30 bool unpackUnmultiplyAlpha,
31 const gl::Texture *source)
32{
33 UNREACHABLE();
Yuly Novikovc4d18aa2017-03-09 18:45:02 -050034 return gl::InternalError() << "CHROMIUM_copy_texture exposed but not implemented.";
Geoff Lang97073d12016-04-20 10:42:34 -070035}
36
Jamie Madillc564c072017-06-01 12:45:42 -040037gl::Error TextureImpl::copySubTexture(const gl::Context *context,
Geoff Langfc72a072017-03-24 14:52:39 -040038 GLenum target,
39 size_t level,
Jamie Madill8897afa2017-02-06 17:17:23 -050040 const gl::Offset &destOffset,
Geoff Langfc72a072017-03-24 14:52:39 -040041 size_t sourceLevel,
Geoff Lang97073d12016-04-20 10:42:34 -070042 const gl::Rectangle &sourceArea,
43 bool unpackFlipY,
44 bool unpackPremultiplyAlpha,
45 bool unpackUnmultiplyAlpha,
46 const gl::Texture *source)
47{
48 UNREACHABLE();
Yuly Novikovc4d18aa2017-03-09 18:45:02 -050049 return gl::InternalError() << "CHROMIUM_copy_texture exposed but not implemented.";
Geoff Lang97073d12016-04-20 10:42:34 -070050}
Geoff Lang47110bf2016-04-20 11:13:22 -070051
Jamie Madillc564c072017-06-01 12:45:42 -040052gl::Error TextureImpl::copyCompressedTexture(const gl::Context *context, const gl::Texture *source)
Geoff Lang47110bf2016-04-20 11:13:22 -070053{
54 UNREACHABLE();
Yuly Novikovc4d18aa2017-03-09 18:45:02 -050055 return gl::InternalError() << "CHROMIUM_copy_compressed_texture exposed but not implemented.";
Geoff Lang47110bf2016-04-20 11:13:22 -070056}
JiangYizhou34bc3152017-03-29 14:56:01 +080057
Jamie Madill8897afa2017-02-06 17:17:23 -050058} // namespace rx