Code Monkey home page Code Monkey logo

Comments (8)

sivese avatar sivese commented on May 27, 2024

eisterman@e940dbe this will help you

from vulkano-www.

kunalmohan avatar kunalmohan commented on May 27, 2024

I got another error along with the previous one this time:

error[E0560]: struct `vulkano::device::extensions::DeviceExtensions` has no field named `khr_storage_buffer_storage_class`
   --> src/main.rs:187:31
    |
187 |             &DeviceExtensions{khr_storage_buffer_storage_class:true, ..DeviceExtensions::none()},
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `vulkano::device::extensions::DeviceExtensions` does not have this field
    |
    = note: available fields are: `khr_swapchain`, `khr_display_swapchain`, `khr_sampler_mirror_clamp_to_edge`, `khr_maintenance1`, `khr_get_memory_requirements2` ... and 4 others

from vulkano-www.

sivese avatar sivese commented on May 27, 2024

did you add 'vulkano-shaders = "0.16.0"' dependency in cargo.toml ?

from vulkano-www.

kunalmohan avatar kunalmohan commented on May 27, 2024

Yes it's there in the cargo.toml

from vulkano-www.

eisterman avatar eisterman commented on May 27, 2024

What version of vulkano are you using?
Now at the v0.17 there isn't the device::extensions submodule, but DeviceExtension are directly in the vulkano::device module, so i'm thinking you're using an old version of the crate.

#74 is a pull request i've maded some time ago for fix the website, but nobody have confirmed or commented the fix

from vulkano-www.

kunalmohan avatar kunalmohan commented on May 27, 2024

@eisterman Yes, I was using v0.13 as mentioned in the tutorial. Upgrading to v0.17 gives two different errors:

error[E0061]: this function takes 4 parameters but 3 parameters were supplied
   --> src/main.rs:195:23
    |
195 |       let data_buffer = CpuAccessibleBuffer::from_iter(device.clone(), BufferUsage::all(),
    |  _______________________^
196 | |                                                     data_iter).expect("failed to create buffer");
    | |______________________________________________________________^ expected 4 parameters

error[E0061]: this function takes 1 parameter but 2 parameters were supplied
   --> src/main.rs:221:24
    |
221 |     let set = Arc::new(PersistentDescriptorSet::start(compute_pipeline.clone(), 0)
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter

I found that CpuAccessibleBuffer now accepts host_cached parameter, so I just passed a true value (though I am not sure what would be better). PersistentDescriptorSet accepts only Arc as parameter, which I am not sure how to create from compute_pipeline.

Also, do you recommend to follow the tutorial using the latest version of vulkano? Or have there been major changes in the crate since the tutorial was written?

from vulkano-www.

eisterman avatar eisterman commented on May 27, 2024

There have been breaking changes in almost every version change.
Actually at the moment my advice is to use 0.16 and to follow the code of this pull request, which I had verified to work: https://github.com/eisterman/vulkano-www/tree/patch-1/examples

from vulkano-www.

kunalmohan avatar kunalmohan commented on May 27, 2024

Okay. Thanx!

from vulkano-www.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.