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 | // ContextVk.cpp: |
| 7 | // Implements the class methods for ContextVk. |
| 8 | // |
| 9 | |
| 10 | #include "libANGLE/renderer/vulkan/ContextVk.h" |
| 11 | |
| 12 | #include "common/debug.h" |
| 13 | |
| 14 | namespace rx |
| 15 | { |
| 16 | |
| 17 | ContextVk::ContextVk(const gl::ContextState &state) : ContextImpl(state) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | ContextVk::~ContextVk() |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | gl::Error ContextVk::initialize() |
| 26 | { |
| 27 | UNIMPLEMENTED(); |
| 28 | return gl::Error(GL_INVALID_OPERATION); |
| 29 | } |
| 30 | |
| 31 | gl::Error ContextVk::flush() |
| 32 | { |
| 33 | UNIMPLEMENTED(); |
| 34 | return gl::Error(GL_INVALID_OPERATION); |
| 35 | } |
| 36 | |
| 37 | gl::Error ContextVk::finish() |
| 38 | { |
| 39 | UNIMPLEMENTED(); |
| 40 | return gl::Error(GL_INVALID_OPERATION); |
| 41 | } |
| 42 | |
| 43 | gl::Error ContextVk::drawArrays(GLenum mode, GLint first, GLsizei count) |
| 44 | { |
| 45 | UNIMPLEMENTED(); |
| 46 | return gl::Error(GL_INVALID_OPERATION); |
| 47 | } |
| 48 | |
| 49 | gl::Error ContextVk::drawArraysInstanced(GLenum mode, |
| 50 | GLint first, |
| 51 | GLsizei count, |
| 52 | GLsizei instanceCount) |
| 53 | { |
| 54 | UNIMPLEMENTED(); |
| 55 | return gl::Error(GL_INVALID_OPERATION); |
| 56 | } |
| 57 | |
| 58 | gl::Error ContextVk::drawElements(GLenum mode, |
| 59 | GLsizei count, |
| 60 | GLenum type, |
| 61 | const GLvoid *indices, |
| 62 | const gl::IndexRange &indexRange) |
| 63 | { |
| 64 | UNIMPLEMENTED(); |
| 65 | return gl::Error(GL_INVALID_OPERATION); |
| 66 | } |
| 67 | |
| 68 | gl::Error ContextVk::drawElementsInstanced(GLenum mode, |
| 69 | GLsizei count, |
| 70 | GLenum type, |
| 71 | const GLvoid *indices, |
| 72 | GLsizei instances, |
| 73 | const gl::IndexRange &indexRange) |
| 74 | { |
| 75 | UNIMPLEMENTED(); |
| 76 | return gl::Error(GL_INVALID_OPERATION); |
| 77 | } |
| 78 | |
| 79 | gl::Error ContextVk::drawRangeElements(GLenum mode, |
| 80 | GLuint start, |
| 81 | GLuint end, |
| 82 | GLsizei count, |
| 83 | GLenum type, |
| 84 | const GLvoid *indices, |
| 85 | const gl::IndexRange &indexRange) |
| 86 | { |
| 87 | UNIMPLEMENTED(); |
| 88 | return gl::Error(GL_INVALID_OPERATION); |
| 89 | } |
| 90 | |
| 91 | void ContextVk::notifyDeviceLost() |
| 92 | { |
| 93 | UNIMPLEMENTED(); |
| 94 | } |
| 95 | |
| 96 | bool ContextVk::isDeviceLost() const |
| 97 | { |
| 98 | UNIMPLEMENTED(); |
| 99 | return bool(); |
| 100 | } |
| 101 | |
| 102 | bool ContextVk::testDeviceLost() |
| 103 | { |
| 104 | UNIMPLEMENTED(); |
| 105 | return bool(); |
| 106 | } |
| 107 | |
| 108 | bool ContextVk::testDeviceResettable() |
| 109 | { |
| 110 | UNIMPLEMENTED(); |
| 111 | return bool(); |
| 112 | } |
| 113 | |
| 114 | std::string ContextVk::getVendorString() const |
| 115 | { |
| 116 | UNIMPLEMENTED(); |
| 117 | return std::string(); |
| 118 | } |
| 119 | |
| 120 | std::string ContextVk::getRendererDescription() const |
| 121 | { |
| 122 | UNIMPLEMENTED(); |
| 123 | return std::string(); |
| 124 | } |
| 125 | |
| 126 | void ContextVk::insertEventMarker(GLsizei length, const char *marker) |
| 127 | { |
| 128 | UNIMPLEMENTED(); |
| 129 | } |
| 130 | |
| 131 | void ContextVk::pushGroupMarker(GLsizei length, const char *marker) |
| 132 | { |
| 133 | UNIMPLEMENTED(); |
| 134 | } |
| 135 | |
| 136 | void ContextVk::popGroupMarker() |
| 137 | { |
| 138 | UNIMPLEMENTED(); |
| 139 | } |
| 140 | |
| 141 | void ContextVk::syncState(const gl::State &state, const gl::State::DirtyBits &dirtyBits) |
| 142 | { |
| 143 | UNIMPLEMENTED(); |
| 144 | } |
| 145 | |
| 146 | GLint ContextVk::getGPUDisjoint() |
| 147 | { |
| 148 | UNIMPLEMENTED(); |
| 149 | return GLint(); |
| 150 | } |
| 151 | |
| 152 | GLint64 ContextVk::getTimestamp() |
| 153 | { |
| 154 | UNIMPLEMENTED(); |
| 155 | return GLint64(); |
| 156 | } |
| 157 | |
| 158 | void ContextVk::onMakeCurrent(const gl::ContextState &data) |
| 159 | { |
| 160 | UNIMPLEMENTED(); |
| 161 | } |
| 162 | |
| 163 | const gl::Caps &ContextVk::getNativeCaps() const |
| 164 | { |
| 165 | UNIMPLEMENTED(); |
| 166 | static gl::Caps local; |
| 167 | return local; |
| 168 | } |
| 169 | |
| 170 | const gl::TextureCapsMap &ContextVk::getNativeTextureCaps() const |
| 171 | { |
| 172 | UNIMPLEMENTED(); |
| 173 | static gl::TextureCapsMap local; |
| 174 | return local; |
| 175 | } |
| 176 | |
| 177 | const gl::Extensions &ContextVk::getNativeExtensions() const |
| 178 | { |
| 179 | UNIMPLEMENTED(); |
| 180 | static gl::Extensions local; |
| 181 | return local; |
| 182 | } |
| 183 | |
| 184 | const gl::Limitations &ContextVk::getNativeLimitations() const |
| 185 | { |
| 186 | UNIMPLEMENTED(); |
| 187 | static gl::Limitations local; |
| 188 | return local; |
| 189 | } |
| 190 | |
| 191 | CompilerImpl *ContextVk::createCompiler() |
| 192 | { |
| 193 | UNIMPLEMENTED(); |
| 194 | return static_cast<CompilerImpl *>(0); |
| 195 | } |
| 196 | |
| 197 | ShaderImpl *ContextVk::createShader(const gl::ShaderState &data) |
| 198 | { |
| 199 | UNIMPLEMENTED(); |
| 200 | return static_cast<ShaderImpl *>(0); |
| 201 | } |
| 202 | |
| 203 | ProgramImpl *ContextVk::createProgram(const gl::ProgramState &data) |
| 204 | { |
| 205 | UNIMPLEMENTED(); |
| 206 | return static_cast<ProgramImpl *>(0); |
| 207 | } |
| 208 | |
| 209 | FramebufferImpl *ContextVk::createFramebuffer(const gl::FramebufferState &data) |
| 210 | { |
| 211 | UNIMPLEMENTED(); |
| 212 | return static_cast<FramebufferImpl *>(0); |
| 213 | } |
| 214 | |
| 215 | TextureImpl *ContextVk::createTexture(const gl::TextureState &state) |
| 216 | { |
| 217 | UNIMPLEMENTED(); |
| 218 | return static_cast<TextureImpl *>(0); |
| 219 | } |
| 220 | |
| 221 | RenderbufferImpl *ContextVk::createRenderbuffer() |
| 222 | { |
| 223 | UNIMPLEMENTED(); |
| 224 | return static_cast<RenderbufferImpl *>(0); |
| 225 | } |
| 226 | |
| 227 | BufferImpl *ContextVk::createBuffer() |
| 228 | { |
| 229 | UNIMPLEMENTED(); |
| 230 | return static_cast<BufferImpl *>(0); |
| 231 | } |
| 232 | |
| 233 | VertexArrayImpl *ContextVk::createVertexArray(const gl::VertexArrayState &data) |
| 234 | { |
| 235 | UNIMPLEMENTED(); |
| 236 | return static_cast<VertexArrayImpl *>(0); |
| 237 | } |
| 238 | |
| 239 | QueryImpl *ContextVk::createQuery(GLenum type) |
| 240 | { |
| 241 | UNIMPLEMENTED(); |
| 242 | return static_cast<QueryImpl *>(0); |
| 243 | } |
| 244 | |
| 245 | FenceNVImpl *ContextVk::createFenceNV() |
| 246 | { |
| 247 | UNIMPLEMENTED(); |
| 248 | return static_cast<FenceNVImpl *>(0); |
| 249 | } |
| 250 | |
| 251 | FenceSyncImpl *ContextVk::createFenceSync() |
| 252 | { |
| 253 | UNIMPLEMENTED(); |
| 254 | return static_cast<FenceSyncImpl *>(0); |
| 255 | } |
| 256 | |
| 257 | TransformFeedbackImpl *ContextVk::createTransformFeedback() |
| 258 | { |
| 259 | UNIMPLEMENTED(); |
| 260 | return static_cast<TransformFeedbackImpl *>(0); |
| 261 | } |
| 262 | |
| 263 | SamplerImpl *ContextVk::createSampler() |
| 264 | { |
| 265 | UNIMPLEMENTED(); |
| 266 | return static_cast<SamplerImpl *>(0); |
| 267 | } |
| 268 | |
| 269 | } // namespace rx |