1 // 2 // Copyright 2023 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 // DisplayVkOffscreen.h: 7 // Defines the class interface for DisplayVkOffscreen, implementing 8 // DisplayVk for Linux when window surfaces are not supported. 9 // 10 11 #ifndef LIBANGLE_RENDERER_VULKAN_LINUX_DISPLAYVKOFFSCREEN_H_ 12 #define LIBANGLE_RENDERER_VULKAN_LINUX_DISPLAYVKOFFSCREEN_H_ 13 14 #include "libANGLE/renderer/vulkan/linux/DisplayVkLinux.h" 15 16 namespace rx 17 { 18 19 class DisplayVkOffscreen : public DisplayVkLinux 20 { 21 public: 22 DisplayVkOffscreen(const egl::DisplayState &state); 23 bool isValidNativeWindow(EGLNativeWindowType window) const override; 24 SurfaceImpl *createWindowSurfaceVk(const egl::SurfaceState &state, 25 EGLNativeWindowType window) override; 26 egl::ConfigSet generateConfigs() override; 27 void checkConfigSupport(egl::Config *config) override; 28 const char *getWSIExtension() const override; 29 }; 30 31 } // namespace rx 32 33 #endif // LIBANGLE_RENDERER_VULKAN_LINUX_DISPLAYVKOFFSCREEN_H_ 34