@@ -64,10 +64,11 @@ class vkDisplayXcb : public vktrace_replay::ReplayDisplayImp {
6464 xcb_screen_t *m_pXcbScreen;
6565 xcb_window_t m_XcbWindow;
6666 xcb_intern_atom_reply_t *atom_wm_delete_window;
67- // VkPlatformHandleXcbKHR m_XcbPlatformHandle;
6867
6968 unsigned int m_windowWidth;
7069 unsigned int m_windowHeight;
70+ unsigned int m_screenWidth;
71+ unsigned int m_screenHeight;
7172 std::vector<VkExtent2D> imageExtents;
7273 std::vector<VkImage> imageHandles;
7374 std::vector<VkDeviceMemory> imageMemory;
@@ -115,6 +116,7 @@ class vkDisplayWayland : public vktrace_replay::ReplayDisplayImp {
115116 struct wl_seat *m_seat;
116117 struct wl_pointer *m_pointer;
117118 struct wl_keyboard *m_keyboard;
119+ struct wl_output *m_output;
118120
119121 static void handle_ping (void *data, wl_shell_surface *shell_surface, uint32_t serial);
120122 static void handle_configure (void *data, wl_shell_surface *shell_surface, uint32_t edges, int32_t width, int32_t height);
@@ -142,9 +144,16 @@ class vkDisplayWayland : public vktrace_replay::ReplayDisplayImp {
142144 static void registry_handle_global (void *data, wl_registry *registry, uint32_t id, const char *interface, uint32_t version);
143145 static void registry_handle_global_remove (void *data, wl_registry *registry, uint32_t name);
144146 static struct wl_registry_listener registry_listener;
147+ static void output_handle_geometry (void *data, struct wl_output *wl_output, int x, int y, int physical_width,
148+ int physical_height, int subpixel, const char *make, const char *model, int transform);
149+ static void output_handle_mode (void *data, struct wl_output *wl_output, uint32_t flags, int width, int height, int refresh);
150+ static struct wl_output_listener output_listener;
145151
146152 unsigned int m_windowWidth;
147153 unsigned int m_windowHeight;
154+ unsigned int m_screenWidth;
155+ unsigned int m_screenHeight;
156+ unsigned int m_refresh;
148157 std::vector<VkExtent2D> imageExtents;
149158 std::vector<VkImage> imageHandles;
150159 std::vector<VkDeviceMemory> imageMemory;
@@ -230,6 +239,9 @@ class vkDisplayWin32 : public vktrace_replay::ReplayDisplayImp {
230239
231240 unsigned int m_windowWidth;
232241 unsigned int m_windowHeight;
242+ unsigned int m_screenWidth;
243+ unsigned int m_screenHeight;
244+
233245 std::vector<VkExtent2D> imageExtents;
234246 std::vector<VkImage> imageHandles;
235247 std::vector<VkDeviceMemory> imageMemory;
@@ -245,4 +257,4 @@ class vkDisplayWin32 : public vktrace_replay::ReplayDisplayImp {
245257 bool m_pause = false ;
246258 bool m_quit = false ;
247259};
248- #endif
260+ #endif
0 commit comments