Comments (8)
eisterman@e940dbe this will help you
from vulkano-www.
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.
did you add 'vulkano-shaders = "0.16.0"' dependency in cargo.toml ?
from vulkano-www.
Yes it's there in the cargo.toml
from vulkano-www.
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.
@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.
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.
Okay. Thanx!
from vulkano-www.
Related Issues (20)
- Command buffer code in the guide doesn't work in vulkano-0.30
- Separate the windowing section into unresizable and resizable. HOT 1
- Update to version 0.31.0 HOT 3
- Translate to Chinese
- Buffer Creation API Out Of Date HOT 1
- Update Guide to 0.32 HOT 3
- vulkano.rs 503 Service unavailable error. HOT 2
- Couldn't compile the website (Rust 1.39+) HOT 2
- Couldn't compile the website (Docker) HOT 1
- Picture isn't showing
- Missing '&' HOT 1
- Possibly an Error in Guide HOT 1
- Fix typo in guide-buffer-creation.md
- 'Device extension "khr_storage_buffer_storage_class" required HOT 2
- Compute shader dispatch fails due to missing extension HOT 1
- vulkano 0.19 build failure in empty project HOT 3
- M1 Mac create instance failed HOT 2
- Mandelbrot set example fails HOT 2
- Outdated HOT 2
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 vulkano-www.