vulkano-rs / vulkano

Safe and rich Rust wrapper around the Vulkan API
Apache License 2.0
4.48k stars 433 forks source link

Examples Fail to Build Outside of the Vulkano Project #2472

Closed KalevGonvick closed 6 months ago

KalevGonvick commented 6 months ago

Issue

Taking any example from 0.34.1 Vulcano into an isolated project will not compile because of missing dependencies. Specifically with RecordingCommandBuffer and CommandBufferBeginInfo. I tested triangle and basic-compute-shader, but I assume any example that uses these dependencies will fail.

Building and running the examples within the Vulkano project works correctly. The issue only happens when you try to use the same structs in another project using Vulkano as a dependency. Also, going back to version 0.33.0 of Vulkano the example code has no issues building and running.

Rua commented 6 months ago

RecordingCommandBuffer and CommandBufferBeginInfo are not part of Vulkano 0.34.1. They are only in the unstable version that has not been released yet. You need to use the examples from the last release.

KalevGonvick commented 6 months ago

Ah, ok thanks for the quick response! I will stick with the last release version.