Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/dxvk/dxvk_barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,22 @@ namespace dxvk {
return false;
}

/**
* \brief Checks whether there are barriers using any of the given access flags
* \returns \c true if any barriers use the given source access flags
*/
bool hasPendingAccess(VkAccessFlags2 access) const {
if (m_memoryBarrier.srcAccessMask & access)
return true;

for (const auto& b : m_imageBarriers) {
if (b.srcAccessMask & access)
return true;
}

return false;
}

private:

DxvkCmdBuffer m_cmdBuffer;
Expand Down
Loading