Comments (13)
Looks a bit like #3. Are you running Wayland by any chance? You can check by running echo $XDG_SESSION_TYPE
in terminal.
from egui_vulkano.
Thanks for testing! That seems to support my theory. The triangle is behind the gui, because at some point the egui example changed to fill the whole screen and I haven't bothered to change it 😄
from egui_vulkano.
Indeed wayland.
> echo $XDG_SESSION_TYPE
wayland
Running on Fedora 36, with 5.18.18-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 17 16:02:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
from egui_vulkano.
The common factors between #3 and this seem to be Wayland and Intel GPU. @Vistavleal suggested that xWayland might also be involved somehow, but they were unfortunately not in a position to try on x11. Meanwhile I could not reproduce this on Wayland/NVidia GPU. @EriKWDev could you test on x11?
from egui_vulkano.
Getting the same on x11 actually:
> echo $XDG_SESSION_TYPE
x11
Seems like Intel Integrated Graphics might be the problem then.
from egui_vulkano.
Can you try running some of the vulkano examples and see if they have similar problems? If those work, then I have a suspicion: In #10 @Wicpar said that egui_vulkano currently does some things that are actually forbidden by the vulkan spec, which Vulkano 0.30 checks and rejects. It could be that the NVidia driver quietly fixes up the incorrect usage, whereas the Intel driver doesn't do that and just happily corrupts GPU memory instead. Maybe try his Vulkano 0.30 branch and see if that fixes it?
from egui_vulkano.
I don't really knew what to look for, but I cloned vulkano and ran the run_all
script in the examples directory and (after some compilation torture to my poor laptop) they all look fine to me (wayland):
I also tried out the main branch of @Wicpar's fork with vulkano 0.30 on wayland I got the following runtime error:
Available layer: VK_LAYER_VALVE_steam_overlay_32
Available layer: VK_LAYER_VALVE_steam_overlay_64
Available layer: VK_LAYER_VALVE_steam_fossilize_32
Available layer: VK_LAYER_VALVE_steam_fossilize_64
Available layer: VK_LAYER_RENDERDOC_Capture
Available layer: VK_LAYER_MESA_device_select
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: LayerNotPresent', examples/example.rs:64:8
stack backtrace:
0: rust_begin_unwind
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/panicking.rs:142:14
2: core::result::unwrap_failed
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/result.rs:1785:5
3: example::main
(link to line in fork: https://github.com/Wicpar/egui_vulkano/blob/02ca7f81df42ace9577f5c669e42d76b56c8112c/examples/example.rs#L60)
from egui_vulkano.
You can change this line:
enabled_layers: vec!["VK_LAYER_KHRONOS_validation".into()],
to
enabled_layers: vec![],
That should allow you to run the fork.
from egui_vulkano.
Eureka! On wayland using the fork:
I now no longer see a triangle though, but haven't read th eexample enough yet to see if it was removed.
from egui_vulkano.
Very nice to get it working though!
Would be nice to get that fork merged :)
Would also be nice to see a Vulkan texture be rendered into an egui Image in the/an example!
But I suppose that's just supplying the image with an egui::TextureId::User(_) with a Vulkan texture handle..?
I will also be trying to get this working with glfw instead of winit since winit takes so long to compile...
Thanks for the awesome work and help debugging!
from egui_vulkano.
I do plan on merging it, but haven't gotten around to it yet. Would be interesting to see if you can get it running with glfw.
from egui_vulkano.
Will base it on this implementation https://github.com/cohaereo/egui_glfw_gl
Will write on this repo if I succeed!
Might become an egui_glfw crate like the egui_winit..
from egui_vulkano.
Was a bit more struggle than I first though. Vulkano seems to use ash whereas the vulkan feature of the glfw crate produces types compatible with vk-sys... Have to find some conversions to and from the types. Previous attempts seem dead but parts of them can probably be of use https://github.com/atwupack/vulkan4rust, https://gitlab.com/braxtons12/vulkano-glfw-v2
from egui_vulkano.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egui_vulkano.