Skip to content

Commit

Permalink
vulkano update + examples fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Letronix624 committed Apr 3, 2024
1 parent 721c695 commit 8939678
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion examples/demo_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ pub fn main() {

// Render UI
// Acquire swapchain future
match renderer.acquire(|_| {}) {
match renderer
.acquire(Some(std::time::Duration::from_millis(10)), |_| {})
{
Ok(future) => {
let after_future = gui
.draw_on_image(future, renderer.swapchain_image_view());
Expand Down
4 changes: 3 additions & 1 deletion examples/minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ pub fn main() {
});
// Render UI
// Acquire swapchain future
match renderer.acquire(|_| {}) {
match renderer
.acquire(Some(std::time::Duration::from_millis(10)), |_| {})
{
Ok(future) => {
// Render gui
let after_future =
Expand Down
4 changes: 3 additions & 1 deletion examples/multisample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ pub fn main() {
});
// Render
// Acquire swapchain future
match renderer.acquire(|_| {}) {
match renderer
.acquire(Some(std::time::Duration::from_millis(10)), |_| {})
{
Ok(future) => {
// Render
let after_future = pipeline.render(
Expand Down
4 changes: 3 additions & 1 deletion examples/paint_callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ pub fn main() {
});
// Render UI
// Acquire swapchain future
match renderer.acquire(|_| {}) {
match renderer
.acquire(Some(std::time::Duration::from_millis(10)), |_| {})
{
Ok(future) => {
// Render gui
let after_future =
Expand Down
4 changes: 3 additions & 1 deletion examples/subpass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ pub fn main() {
});

// Acquire swapchain future
match renderer.acquire(|_| {}) {
match renderer
.acquire(Some(std::time::Duration::from_millis(10)), |_| {})
{
Ok(future) => {
// Render gui
let after_future = gui_pipeline.render(
Expand Down
4 changes: 3 additions & 1 deletion examples/wholesome/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ pub fn main() {
});
// Render UI
// Acquire swapchain future
match renderer.acquire(|_| {}) {
match renderer
.acquire(Some(std::time::Duration::from_millis(10)), |_| {})
{
Ok(future) => {
// Draw scene
let after_scene_draw =
Expand Down

0 comments on commit 8939678

Please sign in to comment.