diff --git a/examples/src/bin/texture.rs b/examples/src/bin/texture.rs index 902be28..e4ab27e 100644 --- a/examples/src/bin/texture.rs +++ b/examples/src/bin/texture.rs @@ -62,15 +62,14 @@ fn main() { ..Default::default() }]; - let subpasses = [vk::SubpassDescription::builder() + let subpass = vk::SubpassDescription::builder() .color_attachments(&color_attachment_refs) .depth_stencil_attachment(&depth_attachment_ref) - .pipeline_bind_point(vk::PipelineBindPoint::GRAPHICS) - .build()]; + .pipeline_bind_point(vk::PipelineBindPoint::GRAPHICS); let renderpass_create_info = vk::RenderPassCreateInfo::builder() .attachments(&renderpass_attachments) - .subpasses(&subpasses) + .subpasses(std::slice::from_ref(&subpass)) .dependencies(&dependencies); let renderpass = base diff --git a/examples/src/bin/triangle.rs b/examples/src/bin/triangle.rs index 5c5f69b..cc322fc 100644 --- a/examples/src/bin/triangle.rs +++ b/examples/src/bin/triangle.rs @@ -51,15 +51,14 @@ fn main() { ..Default::default() }]; - let subpasses = [vk::SubpassDescription::builder() + let subpass = vk::SubpassDescription::builder() .color_attachments(&color_attachment_refs) .depth_stencil_attachment(&depth_attachment_ref) - .pipeline_bind_point(vk::PipelineBindPoint::GRAPHICS) - .build()]; + .pipeline_bind_point(vk::PipelineBindPoint::GRAPHICS); let renderpass_create_info = vk::RenderPassCreateInfo::builder() .attachments(&renderpass_attachments) - .subpasses(&subpasses) + .subpasses(std::slice::from_ref(&subpass)) .dependencies(&dependencies); let renderpass = base diff --git a/examples/src/lib.rs b/examples/src/lib.rs index f93e797..9d5513b 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -294,13 +294,12 @@ impl ExampleBase { }; let priorities = [1.0]; - let queue_info = [vk::DeviceQueueCreateInfo::builder() + let queue_info = vk::DeviceQueueCreateInfo::builder() .queue_family_index(queue_family_index) - .queue_priorities(&priorities) - .build()]; + .queue_priorities(&priorities); let device_create_info = vk::DeviceCreateInfo::builder() - .queue_create_infos(&queue_info) + .queue_create_infos(std::slice::from_ref(&queue_info)) .enabled_extension_names(&device_extension_names_raw) .enabled_features(&features);