We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageLayout::Undefined
Running the triangle example using the same render pass configuration from https://github.com/KhronosGroup/Vulkan-Samples/blob/master/samples/api/hello_triangle/hello_triangle.cpp panics with the message:
thread 'main' panicked at 'assertion failed: !matches!(new_layout, ImageLayout :: Undefined | ImageLayout ::\n Preinitialized)'
Stacktrace points to:
vulkano/vulkano/src/command_buffer/commands/sync.rs
Lines 326 to 329 in 5c6bbe0
I've also tested version 0.29.0 and it works fine, so the regression was implemented after that release.
let render_pass = { use vulkano::image::{ImageLayout, SampleCount}; use vulkano::render_pass::{ AttachmentDescription, AttachmentReference, LoadOp, RenderPassCreateInfo, StoreOp, SubpassDependency, SubpassDescription, }; use vulkano::sync::{AccessFlags, PipelineStages}; let colour_attachment = AttachmentDescription { format: Some(swapchain.image_format()), samples: SampleCount::Sample1, load_op: LoadOp::Clear, store_op: StoreOp::Store, stencil_load_op: LoadOp::DontCare, stencil_store_op: StoreOp::DontCare, initial_layout: ImageLayout::Undefined, final_layout: ImageLayout::PresentSrc, ..Default::default() }; let colour_attachment_ref = AttachmentReference { attachment: 0, layout: ImageLayout::ColorAttachmentOptimal, ..Default::default() }; let subpass = SubpassDescription { color_attachments: vec![Some(colour_attachment_ref)], ..Default::default() }; let dep = SubpassDependency { source_subpass: None, destination_subpass: Some(0), source_stages: PipelineStages { color_attachment_output: true, ..PipelineStages::none() }, destination_stages: PipelineStages { color_attachment_output: true, ..PipelineStages::none() }, source_access: AccessFlags::none(), destination_access: AccessFlags { color_attachment_read: true, color_attachment_write: true, ..AccessFlags::none() }, ..Default::default() }; RenderPass::new( device.clone(), RenderPassCreateInfo { attachments: vec![colour_attachment], subpasses: vec![subpass], dependencies: vec![dep], ..Default::default() }, ) .unwrap() };
main.rs
let render_pass = ...
The text was updated successfully, but these errors were encountered:
Fix vulkano-rs#1894
012cc7b
Fix #1894 (#1908)
8420c2b
Successfully merging a pull request may close this issue.
Issue
Running the triangle example using the same render pass configuration from https://github.com/KhronosGroup/Vulkan-Samples/blob/master/samples/api/hello_triangle/hello_triangle.cpp panics with the message:
Stacktrace points to:
vulkano/vulkano/src/command_buffer/commands/sync.rs
Lines 326 to 329 in 5c6bbe0
I've also tested version 0.29.0 and it works fine, so the regression was implemented after that release.
Render pass creation snippet
System Info
main.rs
file that demonstrates the issue: https://github.com/vulkano-rs/vulkano/blob/master/examples/src/bin/triangle.rs but replace thelet render_pass = ...
statement with the above snippet (and fix some API breaking changes)The text was updated successfully, but these errors were encountered: