core: window resizing doesn't really work on Wayland #1273

Open
opened 2024-09-18 00:52:38 +00:00 by holmes-software · 2 comments
holmes-software commented 2024-09-18 00:52:38 +00:00 (Migrated from github.com)

When I run any example - I'll use core-triangle for instance - resizing the window does not resize the "canvas", so it just stretches and squishes everything. Not sure if this is a Wayland issue or Vulkan issue.

image:
image

When I run any example - I'll use `core-triangle` for instance - resizing the window does not resize the "canvas", so it just stretches and squishes everything. Not sure if this is a Wayland issue or Vulkan issue. image: ![image](https://github.com/user-attachments/assets/7d243b15-43bf-4791-a8a2-bf254cdfe883)
ghost commented 2024-10-22 13:18:20 +00:00 (Migrated from github.com)

i think this is just because the vertex shader for this example is outputting the vertices straight to Normalized Device Coordinates, which are just drawn to the window. the coordinates go from -1 to 1 so when the window is stretched the triangle remains in the same proportion

i think this is just because the vertex shader for this example is outputting the vertices straight to Normalized Device Coordinates, which are just drawn to the window. the coordinates go from -1 to 1 so when the window is stretched the triangle remains in the same proportion
holmes-software commented 2024-10-25 04:04:20 +00:00 (Migrated from github.com)

Would that impact MANGOHUD in this way though?

Would that impact MANGOHUD in this way though?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#1273
No description provided.