Fix stages for memory barriers in the examples

This commit is contained in:
Maik Klein 2017-12-12 11:51:55 +01:00
parent f07af40a6c
commit 139dc2aa3b
2 changed files with 6 additions and 6 deletions

View file

@ -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(),
&[],
&[],

View file

@ -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(),
&[],
&[],