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 | // SurfaceVk.cpp: |
| 7 | // Implements the class methods for SurfaceVk. |
| 8 | // |
| 9 | |
| 10 | #include "libANGLE/renderer/vulkan/SurfaceVk.h" |
| 11 | |
| 12 | #include "common/debug.h" |
| 13 | |
| 14 | namespace rx |
| 15 | { |
| 16 | |
| 17 | SurfaceVk::SurfaceVk(const egl::SurfaceState &surfaceState) : SurfaceImpl(surfaceState) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | SurfaceVk::~SurfaceVk() |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | egl::Error SurfaceVk::initialize() |
| 26 | { |
| 27 | UNIMPLEMENTED(); |
| 28 | return egl::Error(EGL_BAD_ACCESS); |
| 29 | } |
| 30 | |
| 31 | FramebufferImpl *SurfaceVk::createDefaultFramebuffer(const gl::FramebufferState &state) |
| 32 | { |
| 33 | UNIMPLEMENTED(); |
| 34 | return static_cast<FramebufferImpl *>(0); |
| 35 | } |
| 36 | |
| 37 | egl::Error SurfaceVk::swap() |
| 38 | { |
| 39 | UNIMPLEMENTED(); |
| 40 | return egl::Error(EGL_BAD_ACCESS); |
| 41 | } |
| 42 | |
| 43 | egl::Error SurfaceVk::postSubBuffer(EGLint x, EGLint y, EGLint width, EGLint height) |
| 44 | { |
| 45 | UNIMPLEMENTED(); |
| 46 | return egl::Error(EGL_BAD_ACCESS); |
| 47 | } |
| 48 | |
| 49 | egl::Error SurfaceVk::querySurfacePointerANGLE(EGLint attribute, void **value) |
| 50 | { |
| 51 | UNIMPLEMENTED(); |
| 52 | return egl::Error(EGL_BAD_ACCESS); |
| 53 | } |
| 54 | |
| 55 | egl::Error SurfaceVk::bindTexImage(gl::Texture *texture, EGLint buffer) |
| 56 | { |
| 57 | UNIMPLEMENTED(); |
| 58 | return egl::Error(EGL_BAD_ACCESS); |
| 59 | } |
| 60 | |
| 61 | egl::Error SurfaceVk::releaseTexImage(EGLint buffer) |
| 62 | { |
| 63 | UNIMPLEMENTED(); |
| 64 | return egl::Error(EGL_BAD_ACCESS); |
| 65 | } |
| 66 | |
| 67 | void SurfaceVk::setSwapInterval(EGLint interval) |
| 68 | { |
| 69 | UNIMPLEMENTED(); |
| 70 | } |
| 71 | |
| 72 | EGLint SurfaceVk::getWidth() const |
| 73 | { |
| 74 | UNIMPLEMENTED(); |
| 75 | return EGLint(); |
| 76 | } |
| 77 | |
| 78 | EGLint SurfaceVk::getHeight() const |
| 79 | { |
| 80 | UNIMPLEMENTED(); |
| 81 | return EGLint(); |
| 82 | } |
| 83 | |
| 84 | EGLint SurfaceVk::isPostSubBufferSupported() const |
| 85 | { |
| 86 | UNIMPLEMENTED(); |
| 87 | return EGLint(); |
| 88 | } |
| 89 | |
| 90 | EGLint SurfaceVk::getSwapBehavior() const |
| 91 | { |
| 92 | UNIMPLEMENTED(); |
| 93 | return EGLint(); |
| 94 | } |
| 95 | |
| 96 | gl::Error SurfaceVk::getAttachmentRenderTarget(const gl::FramebufferAttachment::Target &target, |
| 97 | FramebufferAttachmentRenderTarget **rtOut) |
| 98 | { |
| 99 | UNIMPLEMENTED(); |
| 100 | return gl::Error(GL_INVALID_OPERATION); |
| 101 | } |
| 102 | |
| 103 | } // namespace rx |