Please provide a minimal reproduction of your issue in a repo when asking for help on a specific problem.
cargo init
), added vulkano, vulkano-win, vulkano-shaders, winit
into cargo.toml
and copied triangle.rs
as main.rs
and it doesn't compile (cannot find vulkano::pipeline::input_assembly::InputAssemblyState) and few other tokens.
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`
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
.)
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?
@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.
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
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
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 }
?