xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/vulkan/null/DisplayVkNull.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2021 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 // DisplayVkNull.h:
7 //    Defines the class interface for DisplayVkNull, implementing
8 //    DisplayVk that doesn't depend on Vulkan extensions. It cannot be
9 //    used to output any content to a surface.
10 //
11 
12 #ifndef LIBANGLE_RENDERER_VULKAN_NULL_DISPLAYVKNULL_H_
13 #define LIBANGLE_RENDERER_VULKAN_NULL_DISPLAYVKNULL_H_
14 
15 #include "libANGLE/renderer/vulkan/DisplayVk.h"
16 
17 namespace rx
18 {
19 
20 class DisplayVkNull : public DisplayVk
21 {
22   public:
23     DisplayVkNull(const egl::DisplayState &state);
24 
25     bool isValidNativeWindow(EGLNativeWindowType window) const override;
26 
27     SurfaceImpl *createWindowSurfaceVk(const egl::SurfaceState &state,
28                                        EGLNativeWindowType window) override;
29 
30     virtual const char *getWSIExtension() const override;
31     egl::ConfigSet generateConfigs() override;
32     void checkConfigSupport(egl::Config *config) override;
33 
34   private:
35     std::vector<VkSurfaceFormatKHR> mSurfaceFormats;
36 };
37 
38 }  // namespace rx
39 
40 #endif  // LIBANGLE_RENDERER_VULKAN_NULL_DISPLAYVKNULL_H_
41