-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting the Vulkan VkViewport leads to incomplete display of widgets. #7800
Comments
I find it is because in line484, I set wrong scissor. |
Backends don't currently support transforming inputs or render. I don't see/understand the reason for setting |
I am coding for an engine and in that engine, I can only draw on a certain area on the screen. By the way, it seems |
Version/Branch of Dear ImGui:
Version 1.90.9
Back-ends:
no backends
Compiler, OS:
ubuntu 20.04 + gcc 9.4.0
Full config/build information:
No response
Details:
I want the width of a button to fill the window. If I use the normal VkViewport, for example, create a glfw window with width=1280, height=720, set
VkViewport{x=0,y=0,width=1280,height=720}
, and setio.Displaysize={1280,720}
, it display correctly. But if I want the glfw window has 100 padding on x (setVkViewport{x=100,y=0,width=1080,height=720}
andio.Displaysize={1080,720}
), then the right part of the button is not displayedScreenshots/Video:
This is the image in which I do not set viewport and button has full width
This is the image I set viewport as I described above and right part of the button is cutted
Minimal, Complete and Verifiable Example code:
https://gist.github.com/swhoro/be2b72efad472558363b6f1debef46a2
This is almost the same as https://github.com/SaschaWillems/Vulkan/blob/master/examples/imgui/main.cpp except line 101, 380, 458, 758 and 761.
The text was updated successfully, but these errors were encountered: