From 139dc2aa3b6f816cc08512a8d92574e042471ac2 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Tue, 12 Dec 2017 11:51:55 +0100 Subject: [PATCH] Fix stages for memory barriers in the examples --- examples/src/bin/texture.rs | 8 ++++---- examples/src/lib.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/src/bin/texture.rs b/examples/src/bin/texture.rs index 956cb7f..7ff077b 100644 --- a/examples/src/bin/texture.rs +++ b/examples/src/bin/texture.rs @@ -414,8 +414,8 @@ fn main() { }, }; device.cmd_pipeline_barrier(texture_command_buffer, - vk::PIPELINE_STAGE_TOP_OF_PIPE_BIT, - vk::PIPELINE_STAGE_TOP_OF_PIPE_BIT, + vk::PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, + vk::PIPELINE_STAGE_TRANSFER_BIT, vk::DependencyFlags::empty(), &[], &[], @@ -462,8 +462,8 @@ fn main() { }, }; device.cmd_pipeline_barrier(texture_command_buffer, - vk::PIPELINE_STAGE_TOP_OF_PIPE_BIT, - vk::PIPELINE_STAGE_TOP_OF_PIPE_BIT, + vk::PIPELINE_STAGE_TRANSFER_BIT, + vk::PIPELINE_STAGE_FRAGMENT_SHADER_BIT, vk::DependencyFlags::empty(), &[], &[], diff --git a/examples/src/lib.rs b/examples/src/lib.rs index c93cc60..f8229cf 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -521,8 +521,8 @@ impl ExampleBase { }, }; device.cmd_pipeline_barrier(setup_command_buffer, - vk::PIPELINE_STAGE_TOP_OF_PIPE_BIT, - vk::PIPELINE_STAGE_TOP_OF_PIPE_BIT, + vk::PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, + vk::PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, vk::DependencyFlags::empty(), &[], &[],