Geoff Lang | d08f3b3 | 2016-09-23 15:56:30 -0400 | [diff] [blame^] | 1 | // |
| 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 | // TextureNULL.cpp: |
| 7 | // Implements the class methods for TextureNULL. |
| 8 | // |
| 9 | |
| 10 | #include "libANGLE/renderer/null/TextureNULL.h" |
| 11 | |
| 12 | #include "common/debug.h" |
| 13 | |
| 14 | namespace rx |
| 15 | { |
| 16 | |
| 17 | TextureNULL::TextureNULL(const gl::TextureState &state) : TextureImpl(state) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | TextureNULL::~TextureNULL() |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | gl::Error TextureNULL::setImage(GLenum target, |
| 26 | size_t level, |
| 27 | GLenum internalFormat, |
| 28 | const gl::Extents &size, |
| 29 | GLenum format, |
| 30 | GLenum type, |
| 31 | const gl::PixelUnpackState &unpack, |
| 32 | const uint8_t *pixels) |
| 33 | { |
| 34 | UNIMPLEMENTED(); |
| 35 | return gl::Error(GL_INVALID_OPERATION); |
| 36 | } |
| 37 | |
| 38 | gl::Error TextureNULL::setSubImage(GLenum target, |
| 39 | size_t level, |
| 40 | const gl::Box &area, |
| 41 | GLenum format, |
| 42 | GLenum type, |
| 43 | const gl::PixelUnpackState &unpack, |
| 44 | const uint8_t *pixels) |
| 45 | { |
| 46 | UNIMPLEMENTED(); |
| 47 | return gl::Error(GL_INVALID_OPERATION); |
| 48 | } |
| 49 | |
| 50 | gl::Error TextureNULL::setCompressedImage(GLenum target, |
| 51 | size_t level, |
| 52 | GLenum internalFormat, |
| 53 | const gl::Extents &size, |
| 54 | const gl::PixelUnpackState &unpack, |
| 55 | size_t imageSize, |
| 56 | const uint8_t *pixels) |
| 57 | { |
| 58 | UNIMPLEMENTED(); |
| 59 | return gl::Error(GL_INVALID_OPERATION); |
| 60 | } |
| 61 | |
| 62 | gl::Error TextureNULL::setCompressedSubImage(GLenum target, |
| 63 | size_t level, |
| 64 | const gl::Box &area, |
| 65 | GLenum format, |
| 66 | const gl::PixelUnpackState &unpack, |
| 67 | size_t imageSize, |
| 68 | const uint8_t *pixels) |
| 69 | { |
| 70 | UNIMPLEMENTED(); |
| 71 | return gl::Error(GL_INVALID_OPERATION); |
| 72 | } |
| 73 | |
| 74 | gl::Error TextureNULL::copyImage(GLenum target, |
| 75 | size_t level, |
| 76 | const gl::Rectangle &sourceArea, |
| 77 | GLenum internalFormat, |
| 78 | const gl::Framebuffer *source) |
| 79 | { |
| 80 | UNIMPLEMENTED(); |
| 81 | return gl::Error(GL_INVALID_OPERATION); |
| 82 | } |
| 83 | |
| 84 | gl::Error TextureNULL::copySubImage(GLenum target, |
| 85 | size_t level, |
| 86 | const gl::Offset &destOffset, |
| 87 | const gl::Rectangle &sourceArea, |
| 88 | const gl::Framebuffer *source) |
| 89 | { |
| 90 | UNIMPLEMENTED(); |
| 91 | return gl::Error(GL_INVALID_OPERATION); |
| 92 | } |
| 93 | |
| 94 | gl::Error TextureNULL::setStorage(GLenum target, |
| 95 | size_t levels, |
| 96 | GLenum internalFormat, |
| 97 | const gl::Extents &size) |
| 98 | { |
| 99 | UNIMPLEMENTED(); |
| 100 | return gl::Error(GL_INVALID_OPERATION); |
| 101 | } |
| 102 | |
| 103 | gl::Error TextureNULL::setEGLImageTarget(GLenum target, egl::Image *image) |
| 104 | { |
| 105 | UNIMPLEMENTED(); |
| 106 | return gl::Error(GL_INVALID_OPERATION); |
| 107 | } |
| 108 | |
| 109 | gl::Error TextureNULL::setImageExternal(GLenum target, |
| 110 | egl::Stream *stream, |
| 111 | const egl::Stream::GLTextureDescription &desc) |
| 112 | { |
| 113 | UNIMPLEMENTED(); |
| 114 | return gl::Error(GL_INVALID_OPERATION); |
| 115 | } |
| 116 | |
| 117 | gl::Error TextureNULL::generateMipmap() |
| 118 | { |
| 119 | UNIMPLEMENTED(); |
| 120 | return gl::Error(GL_INVALID_OPERATION); |
| 121 | } |
| 122 | |
| 123 | void TextureNULL::setBaseLevel(GLuint baseLevel) |
| 124 | { |
| 125 | UNIMPLEMENTED(); |
| 126 | } |
| 127 | |
| 128 | void TextureNULL::bindTexImage(egl::Surface *surface) |
| 129 | { |
| 130 | UNIMPLEMENTED(); |
| 131 | } |
| 132 | |
| 133 | void TextureNULL::releaseTexImage() |
| 134 | { |
| 135 | UNIMPLEMENTED(); |
| 136 | } |
| 137 | |
| 138 | } // namespace rx |