Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -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 | // TextureVk.cpp: |
| 7 | // Implements the class methods for TextureVk. |
| 8 | // |
| 9 | |
| 10 | #include "libANGLE/renderer/vulkan/TextureVk.h" |
| 11 | |
| 12 | #include "common/debug.h" |
| 13 | |
| 14 | namespace rx |
| 15 | { |
| 16 | |
| 17 | TextureVk::TextureVk(const gl::TextureState &state) : TextureImpl(state) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | TextureVk::~TextureVk() |
| 22 | { |
| 23 | } |
| 24 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 25 | gl::Error TextureVk::setImage(ContextImpl *contextImpl, |
| 26 | GLenum target, |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 27 | size_t level, |
| 28 | GLenum internalFormat, |
| 29 | const gl::Extents &size, |
| 30 | GLenum format, |
| 31 | GLenum type, |
| 32 | const gl::PixelUnpackState &unpack, |
| 33 | const uint8_t *pixels) |
| 34 | { |
| 35 | UNIMPLEMENTED(); |
| 36 | return gl::Error(GL_INVALID_OPERATION); |
| 37 | } |
| 38 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 39 | gl::Error TextureVk::setSubImage(ContextImpl *contextImpl, |
| 40 | GLenum target, |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 41 | size_t level, |
| 42 | const gl::Box &area, |
| 43 | GLenum format, |
| 44 | GLenum type, |
| 45 | const gl::PixelUnpackState &unpack, |
| 46 | const uint8_t *pixels) |
| 47 | { |
| 48 | UNIMPLEMENTED(); |
| 49 | return gl::Error(GL_INVALID_OPERATION); |
| 50 | } |
| 51 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 52 | gl::Error TextureVk::setCompressedImage(ContextImpl *contextImpl, |
| 53 | GLenum target, |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 54 | size_t level, |
| 55 | GLenum internalFormat, |
| 56 | const gl::Extents &size, |
| 57 | const gl::PixelUnpackState &unpack, |
| 58 | size_t imageSize, |
| 59 | const uint8_t *pixels) |
| 60 | { |
| 61 | UNIMPLEMENTED(); |
| 62 | return gl::Error(GL_INVALID_OPERATION); |
| 63 | } |
| 64 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 65 | gl::Error TextureVk::setCompressedSubImage(ContextImpl *contextImpl, |
| 66 | GLenum target, |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 67 | size_t level, |
| 68 | const gl::Box &area, |
| 69 | GLenum format, |
| 70 | const gl::PixelUnpackState &unpack, |
| 71 | size_t imageSize, |
| 72 | const uint8_t *pixels) |
| 73 | { |
| 74 | UNIMPLEMENTED(); |
| 75 | return gl::Error(GL_INVALID_OPERATION); |
| 76 | } |
| 77 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 78 | gl::Error TextureVk::copyImage(ContextImpl *contextImpl, |
| 79 | GLenum target, |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 80 | size_t level, |
| 81 | const gl::Rectangle &sourceArea, |
| 82 | GLenum internalFormat, |
| 83 | const gl::Framebuffer *source) |
| 84 | { |
| 85 | UNIMPLEMENTED(); |
| 86 | return gl::Error(GL_INVALID_OPERATION); |
| 87 | } |
| 88 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 89 | gl::Error TextureVk::copySubImage(ContextImpl *contextImpl, |
| 90 | GLenum target, |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 91 | size_t level, |
| 92 | const gl::Offset &destOffset, |
| 93 | const gl::Rectangle &sourceArea, |
| 94 | const gl::Framebuffer *source) |
| 95 | { |
| 96 | UNIMPLEMENTED(); |
| 97 | return gl::Error(GL_INVALID_OPERATION); |
| 98 | } |
| 99 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 100 | gl::Error TextureVk::setStorage(ContextImpl *contextImpl, |
| 101 | GLenum target, |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 102 | size_t levels, |
| 103 | GLenum internalFormat, |
| 104 | const gl::Extents &size) |
| 105 | { |
| 106 | UNIMPLEMENTED(); |
| 107 | return gl::Error(GL_INVALID_OPERATION); |
| 108 | } |
| 109 | |
| 110 | gl::Error TextureVk::setEGLImageTarget(GLenum target, egl::Image *image) |
| 111 | { |
| 112 | UNIMPLEMENTED(); |
| 113 | return gl::Error(GL_INVALID_OPERATION); |
| 114 | } |
| 115 | |
| 116 | gl::Error TextureVk::setImageExternal(GLenum target, |
| 117 | egl::Stream *stream, |
| 118 | const egl::Stream::GLTextureDescription &desc) |
| 119 | { |
| 120 | UNIMPLEMENTED(); |
| 121 | return gl::Error(GL_INVALID_OPERATION); |
| 122 | } |
| 123 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 124 | gl::Error TextureVk::generateMipmap(ContextImpl *contextImpl) |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 125 | { |
| 126 | UNIMPLEMENTED(); |
| 127 | return gl::Error(GL_INVALID_OPERATION); |
| 128 | } |
| 129 | |
| 130 | void TextureVk::setBaseLevel(GLuint baseLevel) |
| 131 | { |
| 132 | UNIMPLEMENTED(); |
| 133 | } |
| 134 | |
| 135 | void TextureVk::bindTexImage(egl::Surface *surface) |
| 136 | { |
| 137 | UNIMPLEMENTED(); |
| 138 | } |
| 139 | |
| 140 | void TextureVk::releaseTexImage() |
| 141 | { |
| 142 | UNIMPLEMENTED(); |
| 143 | } |
| 144 | |
Jamie Madill | 4fd95d5 | 2017-04-05 11:22:18 -0400 | [diff] [blame^] | 145 | gl::Error TextureVk::getAttachmentRenderTarget(GLenum binding, |
| 146 | const gl::ImageIndex &imageIndex, |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 147 | FramebufferAttachmentRenderTarget **rtOut) |
| 148 | { |
| 149 | UNIMPLEMENTED(); |
| 150 | return gl::Error(GL_INVALID_OPERATION); |
| 151 | } |
| 152 | |
Geoff Lang | 2241686 | 2016-06-08 16:14:36 -0700 | [diff] [blame] | 153 | void TextureVk::syncState(const gl::Texture::DirtyBits &dirtyBits) |
| 154 | { |
| 155 | UNIMPLEMENTED(); |
| 156 | } |
| 157 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame] | 158 | gl::Error TextureVk::setStorageMultisample(ContextImpl *contextImpl, |
| 159 | GLenum target, |
JiangYizhou | bddc46b | 2016-12-09 09:50:51 +0800 | [diff] [blame] | 160 | GLsizei samples, |
| 161 | GLint internalformat, |
| 162 | const gl::Extents &size, |
| 163 | GLboolean fixedSampleLocations) |
| 164 | { |
| 165 | UNIMPLEMENTED(); |
| 166 | return gl::InternalError() << "setStorageMultisample is unimplemented."; |
| 167 | } |
| 168 | |
Jamie Madill | 9e54b5a | 2016-05-25 12:57:39 -0400 | [diff] [blame] | 169 | } // namespace rx |