Skip to content

Commit

Permalink
One more synchronization hint fixes a hazard from image layout transi…
Browse files Browse the repository at this point in the history
…tion in orca_loader example
  • Loading branch information
johannesugb committed Jul 25, 2024
1 parent bef2d61 commit e42f89c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions auto_vk_toolkit/src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,8 @@ namespace avk
auto newRenderPass = context().create_renderpass(renderpassAttachments, {
// We only create one subpass here => create default dependencies as per specification chapter 8.1) Render Pass Creation:
avk::subpass_dependency{avk::subpass::external >> avk::subpass::index(0),
stage::color_attachment_output >> stage::early_fragment_tests | stage::late_fragment_tests | stage::color_attachment_output,
access::none >> access::color_attachment_read | access::color_attachment_write | access::depth_stencil_attachment_read | access::depth_stencil_attachment_write
stage::late_fragment_tests | stage::color_attachment_output >> stage::early_fragment_tests | stage::late_fragment_tests | stage::color_attachment_output,
access::depth_stencil_attachment_write >> access::color_attachment_read | access::color_attachment_write | access::depth_stencil_attachment_read | access::depth_stencil_attachment_write
},
avk::subpass_dependency{avk::subpass::index(0) >> avk::subpass::external,
stage::color_attachment_output >> stage::color_attachment_output,
Expand Down
2 changes: 1 addition & 1 deletion examples/orca_loader/source/orca_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ int main() // <== Starting point ==
auto composition = configure_and_compose(
avk::application_name("Auto-Vk-Toolkit Example: ORCA Loader"),
[](avk::validation_layers& config) {
//config.enable_feature(vk::ValidationFeatureEnableEXT::eSynchronizationValidation);
config.enable_feature(vk::ValidationFeatureEnableEXT::eSynchronizationValidation);
},
// Pass windows:
mainWnd,
Expand Down

0 comments on commit e42f89c

Please sign in to comment.