blob: 0cf155f5b5fbaf55e2587ab1b72fe758fded4242 [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// DisplayVk.cpp:
7// Implements the class methods for DisplayVk.
8//
9
10#include "libANGLE/renderer/vulkan/DisplayVk.h"
11
12#include "common/debug.h"
13
14namespace rx
15{
16
17DisplayVk::DisplayVk() : DisplayImpl()
18{
19}
20
21DisplayVk::~DisplayVk()
22{
23}
24
25egl::Error DisplayVk::initialize(egl::Display *display)
26{
27 UNIMPLEMENTED();
28 return egl::Error(EGL_BAD_ACCESS);
29}
30
31void DisplayVk::terminate()
32{
33 UNIMPLEMENTED();
34}
35
36egl::Error DisplayVk::makeCurrent(egl::Surface *drawSurface,
37 egl::Surface *readSurface,
38 gl::Context *context)
39{
40 UNIMPLEMENTED();
41 return egl::Error(EGL_BAD_ACCESS);
42}
43
44egl::ConfigSet DisplayVk::generateConfigs() const
45{
46 UNIMPLEMENTED();
47 return egl::ConfigSet();
48}
49
50bool DisplayVk::isDeviceLost() const
51{
52 UNIMPLEMENTED();
53 return bool();
54}
55
56bool DisplayVk::testDeviceLost()
57{
58 UNIMPLEMENTED();
59 return bool();
60}
61
62egl::Error DisplayVk::restoreLostDevice()
63{
64 UNIMPLEMENTED();
65 return egl::Error(EGL_BAD_ACCESS);
66}
67
68bool DisplayVk::isValidNativeWindow(EGLNativeWindowType window) const
69{
70 UNIMPLEMENTED();
71 return bool();
72}
73
74std::string DisplayVk::getVendorString() const
75{
76 UNIMPLEMENTED();
77 return std::string();
78}
79
80egl::Error DisplayVk::getDevice(DeviceImpl **device)
81{
82 UNIMPLEMENTED();
83 return egl::Error(EGL_BAD_ACCESS);
84}
85
86egl::Error DisplayVk::waitClient() const
87{
88 UNIMPLEMENTED();
89 return egl::Error(EGL_BAD_ACCESS);
90}
91
92egl::Error DisplayVk::waitNative(EGLint engine,
93 egl::Surface *drawSurface,
94 egl::Surface *readSurface) const
95{
96 UNIMPLEMENTED();
97 return egl::Error(EGL_BAD_ACCESS);
98}
99
100SurfaceImpl *DisplayVk::createWindowSurface(const egl::SurfaceState &state,
101 const egl::Config *configuration,
102 EGLNativeWindowType window,
103 const egl::AttributeMap &attribs)
104{
105 UNIMPLEMENTED();
106 return static_cast<SurfaceImpl *>(0);
107}
108
109SurfaceImpl *DisplayVk::createPbufferSurface(const egl::SurfaceState &state,
110 const egl::Config *configuration,
111 const egl::AttributeMap &attribs)
112{
113 UNIMPLEMENTED();
114 return static_cast<SurfaceImpl *>(0);
115}
116
117SurfaceImpl *DisplayVk::createPbufferFromClientBuffer(const egl::SurfaceState &state,
118 const egl::Config *configuration,
119 EGLClientBuffer shareHandle,
120 const egl::AttributeMap &attribs)
121{
122 UNIMPLEMENTED();
123 return static_cast<SurfaceImpl *>(0);
124}
125
126SurfaceImpl *DisplayVk::createPixmapSurface(const egl::SurfaceState &state,
127 const egl::Config *configuration,
128 NativePixmapType nativePixmap,
129 const egl::AttributeMap &attribs)
130{
131 UNIMPLEMENTED();
132 return static_cast<SurfaceImpl *>(0);
133}
134
135ImageImpl *DisplayVk::createImage(EGLenum target,
136 egl::ImageSibling *buffer,
137 const egl::AttributeMap &attribs)
138{
139 UNIMPLEMENTED();
140 return static_cast<ImageImpl *>(0);
141}
142
143ContextImpl *DisplayVk::createContext(const gl::ContextState &state)
144{
145 UNIMPLEMENTED();
146 return static_cast<ContextImpl *>(0);
147}
148
149StreamProducerImpl *DisplayVk::createStreamProducerD3DTextureNV12(
150 egl::Stream::ConsumerType consumerType,
151 const egl::AttributeMap &attribs)
152{
153 UNIMPLEMENTED();
154 return static_cast<StreamProducerImpl *>(0);
155}
156
157void DisplayVk::generateExtensions(egl::DisplayExtensions *outExtensions) const
158{
159 UNIMPLEMENTED();
160}
161
162void DisplayVk::generateCaps(egl::Caps *outCaps) const
163{
164 UNIMPLEMENTED();
165}
166
167} // namespace rx