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