Skip to content

Commit

Permalink
Still problems in the multiple_queues example
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesugb committed Apr 22, 2024
1 parent 46c8020 commit 0269b32
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/multiple_queues/source/multiple_queues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ class multiple_queues_app : public avk::invokee
[&]() {
// A queue family ownership transfer consists of two distinct parts (as per specification 7.7.4. Queue Family Ownership Transfer):
// 2. Acquire exclusive ownership for the destination queue family
return sync::buffer_memory_barrier(vertexBuffer, stage::none + access::none >> stage::auto_stage + access::auto_access)

// TODO: Problem here vvv Why can't Auto-Vk find out stage and access in this case? It evaluates to none+none.
return sync::buffer_memory_barrier(vertexBuffer, stage::copy + access::transfer_write >> stage::auto_stages() + access::auto_accesses())
//return sync::buffer_memory_barrier(vertexBuffer, stage::copy + access::transfer_write >> stage::auto_stage + access::auto_access)
.with_queue_family_ownership_transfer(mGraphicsQueue->family_index(), mTransferQueues[j]->family_index());
}
),
Expand Down Expand Up @@ -269,7 +272,7 @@ int main() // <== Starting point ==
auto composition = configure_and_compose(
avk::application_name("Auto-Vk-Toolkit Example: Multiple Queues"),
[](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 0269b32

Please sign in to comment.