Skip to content

Commit

Permalink
Merge pull request #2422 from dboyan/fix-wait-events
Browse files Browse the repository at this point in the history
MVKCmdWaitEvents: end current encoder before encodeWait
  • Loading branch information
cdavis5e authored Jan 17, 2025
2 parents bd0a550 + bb66d2a commit 3803cc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MoltenVK/MoltenVK/Commands/MVKCmdPipeline.mm
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@

template <size_t N>
void MVKCmdWaitEvents<N>::encode(MVKCommandEncoder* cmdEncoder) {
cmdEncoder->endCurrentMetalEncoding();
for (MVKEvent* mvkEvt : _mvkEvents) {
mvkEvt->encodeWait(cmdEncoder->_mtlCmdBuffer);
}
Expand Down

0 comments on commit 3803cc9

Please sign in to comment.