Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    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
    Antonino Siena
    @nifker
    there seems to be a test failing but Im pretty sure it has not to do with my changes
    vulkano-rs/vulkano#1268
    Antonino Siena
    @nifker
    Does it make sense to add a method for Swapchain which returns its Arc<Surface<W>>?
    Austin Johnson
    @AustinJ235
    the builds have been timing out a lot recently
    Matej Kormuth
    @dobrakmato
    Hello, I am trying to use the Vulkano library and going through the tutorial but when I try to run this example: https://github.com/vulkano-rs/vulkano-www/blob/master/examples/guide-compute-operations.rs I get the following error: thread 'main' panicked at 'assertion failed: size <= buffer.device().physical_device().limits().max_uniform_buffer_range() as usize', ... .cargo\registry\src\github.com-1ecc6299db9ec823\vulkano-0.16.0\src\descriptor\descriptor_set\sys.rs:884:9
    Is the example outdated or wrong? I am using nvidia GTX 1060 video card.
    Matej Kormuth
    @dobrakmato

    Ok, I found the problem. vulkano-shaders generates the DescriptorDesc for the shader. When I view the result of macro expansion I can see that it produced this code:

     ty: DescriptorDescTy::Buffer(DescriptorBufferDesc {
                        dynamic: Some(false),
                        storage: false,
                    }),

    for some strange reason, the storage flag is false. This causes the buffer to be interpreted as UBO which fails because the limit for UBO is 64kb. In the tutorial the buffer contains 64K of u32 - which is over the limit for UBO (64kb). Another problem is that the compute shader does not update the buffer because UBOs are inherently read-only. By Replacing the macro invocation with expanded code and changing the storage flag to true the code magically starts working. If I understand correctly this is because now the buffer is interpreted as storage buffer instead of being the uniform one. This solves both the 64kb issue and the one with CS not changing the buffer.

    However I still do not understand what is the reason why vulkan-shaders emitted this (not working) code and whether it is actually a bug ( I would say it is). Another thing that puzzles me is that is also emitted readonly: true, which I am not sure what it means but from what I understand I want to modify contents of the buffer so it seems conter-intuitive to me.

    Austin Johnson
    @AustinJ235
    vulkano-rs/vulkano#1264 does exist I haven't looked into it yet
    Florian Hänel
    @heeen
    how do I get a raw device and physicaldevice handle to pass to c code
    Austin Johnson
    @AustinJ235
    currently these are not exposed, there is a pull request open vulkano-rs/vulkano#952 to allow for access to these
    Florian Hänel
    @heeen
    I don't mean function pointers but device handles
    like, can I create my vulkan instance in rust/vulkano, pass the device and physicaldevice handles to my c library so it can use the context
    the lib can get the vulkan symbols itself I think
    Florian Hänel
    @heeen
    Austin Johnson
    @AustinJ235
    Sadly I don't know all the in and outs of vulkano, so my knowledge on this subject is rather poor. I don't believe we export any raw types. I'd happily merge a pull request for such a feature if you were able to figure this out.
    Antonino Siena
    @nifker
    I guess implementing AsRawHandle and AsRawFd might be senseful here
    wizzard
    @simdimdim
    I've experienced the same issue @dobrakmato did (its actually a bit worse than mentioned : vulkano-rs/vulkano#1273 ) any advice? (besides using older vulkano version?)
    Austin Johnson
    @AustinJ235
    well knowing that it is caused i. newer versions is helpful
    wonder if is from the new spirv version
    antonino
    @pac85_gitlab
    Hi, I'm getting an OomError(OutOfHostMemory) when I try to submit any CommandBuffer to a queue that supports graphics
    Ziqul
    @Ziqul
    @dobrakmato, can you please give recepie for workaround? Stuck in this assertion failed and do not understand how I can replace shader_kind in private struct, or even if I should do this.
    nickwilcox
    @nickwilcox
    @Ziqul the bug in vulkano is fixed but it hasn't been released to crates.io yet. You could point your cargo.toml straight to github if you want the bleeding edge.
    Ziqul
    @Ziqul
    Thanks!
    Straditarion
    @Straditarion
    Hey, is there a way to check whether a format for attachment image is supported? Or
    Huh, I didn't technically send that message yet... Well, anyway, by or I meant using "?" operator after macro/dummy image creation looking for error is just fine?
    wizzard
    @simdimdim
    Current build appears to be failing?
    Austin Johnson
    @AustinJ235
    Lately builds have been timing out a lot, mainly due to the cargo publish command that runs everytime that master is updated. That doesn't utilize any cache so it tends to timeout during the build. Other times it times out when fetching the cache which is out of our control.
    I tried changing from the default travis ci caching that is used for rust and it seems to helped some. Honestly it wouldn't be a terrible idea to look at other build services.
    wizzard
    @simdimdim
    Didn't github introduce Actions recently? Maybe that can help?
    Wojciech Bartnik
    @yisonPylkita
    For everyone new to Vulkan - I was wondering why each frame in triangle example takes only 16ms (60 FPS).
    It was due to PresentMode::Fifo . If you don't care about vsync (or GPU power consumption) then change it to PresentMode::Mailbox
    Dylan Blanchard
    @Tskken
    hi, so I typically work on my mac laptop for programming and am trying to get it to work with vulkano. I set the ~/bash_profile values as shown in the setup for macos but its still giving me an error saying the lib is missing. Is there something else that I need to set up to get it to compile on macos?
        Finished dev [unoptimized + debuginfo] target(s) in 0.32s
         Running `target/debug/triangle`
    thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: LoadingError(LibraryLoadFailure("dlopen(libvulkan.1.dylib, 1): image not found"))', src/libcore/result.rs:999:5
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
    thats the error im getting when running the example triangles
    wizzard
    @simdimdim
    @Tskken did you actually install the SDK or just unpacked it? (also something that often happens to me - forgetting to source the new settings xD)
    Dylan Blanchard
    @Tskken
    what do you mean but install it? i followed the directions on the readme so if there is something else other then adding the export's to your .bash_profile then ya i didn't do it. is there some other thing you have to do for installing the sdks that is not in the readme that you have to do?
    im running the examples off of a git clone of the master branch of vulkano
    Dylan Blanchard
    @Tskken
    so given what you said i tried running the vulkan_sdk install_vulkan.py file and i get this error
    Traceback (most recent call last):
      File "./install_vulkan.py", line 142, in <module>
        main()
      File "./install_vulkan.py", line 131, in main
        os.symlink(absolute_copy_files[key]["Link"], os.path.join(absolute_copy_files[key]["Dest"], os.path.basename(key)))
    OSError: [Errno 17] File exists
    not sure if thats what you ment by installing but that doesnt seem to work ether
    Dylan Blanchard
    @Tskken
    nvm i got it i had to go through and remove some old moltinvk installs aparently because the install_vulkan.py doesnt work if a file with the name it is trying to create already exists
    somehow when i tried to do this before i guess the setup got broken and was breaking everything else annoyingly
    wizzard
    @simdimdim
    gratz. On a different topic, does anyone have or happen to know where I can find a simple example of feeding the output of a compute pipeline? I'm pretty confident it should be very doable to just chain the operations, but end up having formats mismatch
    wizzard
    @simdimdim
    nvm, got it working ( yet to figure out how tho xD)
    Austin Johnson
    @AustinJ235
    @wizzard
    There is an open issue about dropping type checking on the buffers. I think there could be some work around formats to make them friendly to use but also just an unsafe function to type cast into anything with having to transmute the buffer tyoe to get around the type checking
    Would like to know how your experience has been and your thoughts on the current interface for this. I know I have had issues with it in the past.