Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    wilmhit
    @wilmhit:matrix.org
    [m]
    error[E0432]: unresolved import `vulkano::pipeline::input_assembly::InputAssemblyState`
      --> src/main.rs:27:5
       |
    27 | use vulkano::pipeline::input_assembly::InputAssemblyState;
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------
       |     |                                  |
       |     |                                  help: a similar name exists in the module: `InputAssembly`
       |     no `InputAssemblyState` in `pipeline::input_assembly`
    
    error[E0432]: unresolved import `vulkano::pipeline::viewport::ViewportState`
      --> src/main.rs:28:45
       |
    28 | use vulkano::pipeline::viewport::{Viewport, ViewportState};
       |                                             ^^^^^^^^^^^^^
       |                                             |
       |                                             no `ViewportState` in `pipeline::viewport`
       |                                             help: a similar name exists in the module: `ViewportsState`
    
    error[E0425]: cannot find function `load` in module `vs`
       --> src/main.rs:275:18
        |
    275 |     let vs = vs::load(device.clone()).unwrap();
        |                  ^^^^ not found in `vs`
    
    error[E0425]: cannot find function `load` in module `fs`
       --> src/main.rs:276:18
        |
    276 |     let fs = fs::load(device.clone()).unwrap();
        |                  ^^^^ not found in `fs`
    
    error[E0107]: missing generics for struct `Framebuffer`
       --> src/main.rs:534:14
        |
    534 | ) -> Vec<Arc<Framebuffer>> {
        |              ^^^^^^^^^^^ expected 1 generic argument
        |
    note: struct defined here, with 1 generic parameter: `A`
    wilmhit
    @wilmhit:matrix.org
    [m]
    Is this chat a graveyard for newbies?
    Java
    @java:furry.lol
    [m]
    Yes
    Roy Wellington Ⅳ
    @thanatos

    and copied triangle.rs

    @wilmhit:matrix.org
    Are you perhaps copying the triangle.rs from master?
    There are unreleased breaking changes on master, but cargo is going to pull the latest version which won't have those; I'd copy the triangle.rs from the same version of vulkano as whatever cargo is getting. Take that last error, on line 534; triangle.rs for the current version (0.26.0) reads,

    ) -> Vec<Arc<dyn FramebufferAbstract>> {

    there, which doesn't match what you have. (What you have matches master.)

    Ben Shurts
    @benshurts:matrix.org
    [m]
    Hey, all I'm new to Rust and Graphics. I'm on Popos, when I run build rest -all it can't find native shaderc libraries. Could someone point me in the right direction?
    baggydev
    @baggydev
    Is there a more popular Vulkano chatroom out there
    Java
    @java:furry.lol
    [m]
    im not sure
    baggydev
    @baggydev
    Hey another person
    Anybody know a good example of mixing a compute shader with a regular shader? I'm trying to write a computeshader raytracer which should output pixels to the screen. Do I need a computepipeline and a graphicspipeline together? Or is there a simpler way to display a computeshader for each screen pixel
    zshift
    @zshift:matrix.org
    [m]
    You could ask on https://www.reddit.com/r/vulkan. They usually respond to questions like this.
    baggydev
    @baggydev
    Thanks zshift, will try it there!
    Peter Waller
    @pwaller

    I've been attempting to use an exported semaphore for video decode, where an external thing is going to signal that it's ready, but I'm stuck at the point of wanting to wait on the semaphore(!).

                    let vk_wait_vid_decode = Semaphore::alloc_with_exportable_fd(device.clone()).unwrap();
                    let vk_wait_vid_decode_fd = vk_wait_cuda.export_opaque_fd().unwrap().into_raw_fd();

    Given my vk_wait_vid_decode which is being signalled by the external stack, any hints how can I wait on it with vulkano?

    quatar
    @quatar:matrix.org
    [m]
    Vulkano-rs looks like a really cool framework and I’m looking to use it over MoltenVK in a project of mine. However, I would like to use subgroup functions, and on the computers that I’ve tried (Macbook Pro 2015 and Macbook M1 Pro) physical_device.supported_features.subgroup_supported_operations keeps returning None. Is this a limitation of MoltenVK (subgroup functions are mentioned in some of their release notes), a limitation of Vulkano-rs, or am I simply initializing in a wrong way?
    LordMZTE ⚡️
    @lordmzte:mzte.de
    [m]
    Hey! I've recently found vulkano, and I really want to learn it and get comfortable with it, but I'm not sure where to start, as I'm rather new, and the guide is supposedly outdated. I've been looking at the examples but they largely look like rocket science to me.
    Java
    @java:furry.lol
    [m]
    i have not found any good resources yet and this room is pretty much dead :/
    LordMZTE ⚡️
    @lordmzte:mzte.de
    [m]
    :(
    Java
    @java:furry.lol
    [m]
    sorry :/
    LordMZTE ⚡️
    @lordmzte:mzte.de
    [m]
    I've actually made quite a bit of progress working through the outdated guide. So far I managed to port the mandelbrot example in the guide to the newest vulkano version.
    Ilya Lakhin
    @Eliah-Lakhin

    @lordmzte:mzte.de Hay!

    We don't maintain this chat, however it's still available for users(and in fact I'm also taking a look from time to time too). However, there is more chance to get a quick answer to specific question or request in GitHub Issues.

    So, as of your question. Yes, the guide is outdated, but our examples maintained very well. I suggest to started with them: https://github.com/vulkano-rs/vulkano/tree/master/examples/src/bin Especially the Triangle example is a good thing to understand base things. There are comments in the example code explaining base things. And pretty much all major things provided by Vulkano have corresponding examples in the examples dir too.

    Hope that helps to start with.

    Regards,
    Ilya.

    Syntaxxor
    @Syntaxxor
    Is there any tutorial on using the current version of Vulkano, 0.27.1? Or do I just have to piece things together from the docs instead of following a tutorial or an example app?
    LordMZTE ⚡️
    @lordmzte:mzte.de
    [m]
    ive just been working through the outdated tutorial and the knowledge is somewhat transferrable to the new version. you can definetely get some stuff working with the guide + the examples
    Roey Borsteinas
    @roeyb1_gitlab

    Hey! I'm fairly new to rust and I'm getting an issue trying to build just an empty rust project with vulkano. I'm getting a compiler error on vulkano-shaders with some unresolved symbols from shaderc it seems:

    error LNK2019: unresolved external symbol shaderc_compile_options_set_auto_combined_image_sampler referenced in function _ZN7shaderc14CompileOptions31set_auto_combined_image_sampler17h147788271e125cdfE

    Would anybody know how to fix this by any chance?
    Roey Borsteinas
    @roeyb1_gitlab
    I have the vulkan sdk installed and VULKAN_SDK environment variable is set (and contains shaderc.lib)
    Roey Borsteinas
    @roeyb1_gitlab
    Hmm seems to be fixed after setting SHADERC_LIB_DIR to point inside vulkan_sdk
    jkohuth
    @jkohuth:matrix.org
    [m]
    I ran into the same issue today when I made and shifted over to a forked repo
    I'm on windows, did you resolve the issue by setting SHADERC_LIB_DIR top level of X:\VulkanSDK\${Version}? I did the same and it didn't take, going to try the actual director shaderc.lib is in next
    jkohuth
    @jkohuth:matrix.org
    [m]
    running the tests on my locally cached shaderc project didn't reveal any errors
    jkohuth
    @jkohuth:matrix.org
    [m]
    @roeyb1_gitlab: Could you share a bit more information on how you resolved the issue? And what system you're on?
    jkohuth
    @jkohuth:matrix.org
    [m]

    I reinstalled and followed the guide for ShaderC https://lib.rs/crates/shaderc and no dice, I am on windows at the moment perhaps it has more todo with that

    I upgraded my graphics cards drivers and now Im about to reinstall VulkanSDK

    jkohuth
    @jkohuth:matrix.org
    [m]
    On windows the fork fails to build properly but cloning directly from master seems to work just fine
    Shahar Papini
    @Philonoist
    I have the same error on windows. get this: I have 2 identical folders, with the same content (except .git folder, and maybe permissions?). In one, vulkano-shaders compiles with no issues. Im the other, I get "libshaderc-06973cfdcfe8dc2d.rlib(shaderc-06973cfdcfe8dc2d.shaderc.e2458285-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol shaderc_compile_options_set_auto_combined_image_sampler referenced in function _ZN7shaderc14CompileOptions31set_auto_combined_image_sampler17h1d28d0a1c8a59bbbE
    C:\Users\Spiritus\workspace\tsunami\target\debug\deps\vulkano_shaders-4804a9d2c5f03456.dll : fatal error LNK1120: 1 unresolved externals".
    wtf?
    Shahar Papini
    @Philonoist
    Found the issue.
    shaderc = "0.7.2,<=0.7.2"
    shaderc-sys = "0.7.2,<=0.7.2"
    Daniel Borges
    @msklywenn
    hello @Philonoist, thanks for the workaround, I was just looking into this. Could you elaborate on why it fixes the issue? I don't see anything peculiar in the changelog for 0.7.3 and 0.7.4
    Daniel Borges
    @msklywenn
    found the reason : the function is from a newer vulkan SDK. Installing the latest SDK and re-building the project fixed the issue for me, while using shaderc 0.7.4 (it's use was introduced in 0.7.3)
    Daniel Borges
    @msklywenn
    random question because I'm new to rust: is there a particular reason why vulkano::pipeline::graphics::builder::GraphicsPipelineBuilder::render_pass and the not deprecated other functions take self instead of mut self? also, all members are copied one by one, wouldn't it be the same to write GraphicsPipelineBuilder { subpass: Some(subpass), ..self } ?
    Austin Johnson
    @AustinJ235
    Hi one of the vulkano-rs owners here. We'll be moving chat discussions to Discord. If there is still interest in using a matrix client let us know we can still setup a bridge. https://discord.gg/bncB9W2VDV