Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Florian Hänel
    @heeen
    @eliah_lakhin_twitter how do I get that into Instance::new
    let rawExt = RawInstanceExtensions::new( vec![
    CString::new("foo").unwrap(),
    CString::new("bar").unwrap()
    ]);
    is there a simpler way to write this
    the trait std::convert::From<&vulkano::instance::extensions::RawInstanceExtensions> is not implemented for vulkano::instance::extensions::RawInstanceExtensions
    Eliah Lakhin
    @eliah_lakhin_twitter
    @AustinJ235, @nifker Guys, can you advice on @heeen 's question, please?
    Florian Hänel
    @heeen
    let ext = InstanceExtensions::from(&raw_ext);
    let instance = Instance::new(None, &ext, None).unwrap();
    this seems to work
    Eliah Lakhin
    @eliah_lakhin_twitter
    ok )
    Lukas Kalbertodt
    @LukasKalbertodt
    @eliah_lakhin_twitter Thanks for the information! :)
    Florian Hänel
    @heeen
    ok so it does not actually work
    Eliah Lakhin
    @eliah_lakhin_twitter
    @heeen I think you can debug it down a little. My apology I cannot give you more useful answer, I'm learning too. Maybe someone understands this topic better. If not, once you describe it you can share with us or open a PR with the fix
    Florian Hänel
    @heeen
    ok so this is odd
    I managed to pass a list of extensions
    and if one does not exist, it fails to create the instance
    however, if it succeeds, the list of loaded extensions is still empty
    Florian Hänel
    @heeen
    vulkano-rs/vulkano#1253 here's the issue
    Austin Johnson
    @AustinJ235
    interesti
    Lucas Kent
    @rukai
    @AustinJ235 it's great to see the work you've been doing on vulkano! Well done.
    Austin Johnson
    @AustinJ235
    thanks @rukai
    Austin Johnson
    @AustinJ235
    @heeen I have responded to your issue. Hope I've helped
    Florian Hänel
    @heeen
    Thanks @AustinJ235
    imho the thing returned from loaded_extensions should be able to list any extension, not just the ones hardcoded into volkano. I'm not proficient enough in rust yet to figure out how that would be done
    while not breaking API too much that is
    actually even better would be to be able to construct InstanceExtensions from either enum symbols or string names
    Austin Johnson
    @AustinJ235
    the function does take anything that impl IntoIterator CString we could look at chaning that to Strings. But the non raw version is a struct with each extension as a bool, so unless we add an extra field that is a vec of Strings.
    DamonPalovaara
    @DamonPalovaara
    I've been reading through the documentation for the past hour and cannot figure out how to send a uniform buffer
    Florian Hänel
    @heeen
    so with the simple triangle example when I press close it takes 10 or so seconds until the window actually closes
    my windowmanager actually complains about the unresponsive window
    when I add a println in the close handler and the loop handler I can see it happily looping, then the close handler gets called after several seconds, then still some seconds later the window closes
    I tried the simplest example from the winit docs and there it will loop 3 times more after the close handler, then closes which is reasonable
    this is on xorg/kwin fwiw
    Florian Hänel
    @heeen
    hmm
    resizing also happens super late
    but visually it looks correct
    like, the content fills the window and is not pixelated
    so it looks like the buffers are correctly resized
    odd
    Austin Johnson
    @AustinJ235
    hmm interesting
    I can test one of my heavier apps using basalt using the latest winit/basalt and see what happens
    Austin Johnson
    @AustinJ235
    so far at least with gnome/wayland window experiences no issues for me
    same with the triangle example
    Austin Johnson
    @AustinJ235
    gnome/xorg an app that uses basalt with the latest vulkano experiences no issues
    gnome/xorg with triangle example causes xsession to hang up until the app is killed
    so it is probably something wrong with the upgrade to winit 20 implementation
    not sure how my code in basalt differs from that of the examples
    Austin Johnson
    @AustinJ235
    well nvm still using winit 0.19 somehow
    I'll look into it further possibly tommorow haven't been feelin it the last couple days with medication changes and such
    I am also looking at dowgrading to winit 0.19 for the time being so we can release to solve issues with mac os
    Austin Johnson
    @AustinJ235
    is this related to rust-windowing/winit#1245
    Austin Johnson
    @AustinJ235
    falling back to winit 0.19 for a release, will bump back once release goes through