diff --git a/src/dxvk/dxvk_barrier.cpp b/src/dxvk/dxvk_barrier.cpp index 46d91cf3e..3cd525109 100644 --- a/src/dxvk/dxvk_barrier.cpp +++ b/src/dxvk/dxvk_barrier.cpp @@ -13,6 +13,19 @@ namespace dxvk { } + void DxvkBarrierSet::accessMemory( + VkPipelineStageFlags srcStages, + VkAccessFlags srcAccess, + VkPipelineStageFlags dstStages, + VkAccessFlags dstAccess) { + m_srcStages |= srcStages; + m_dstStages |= dstStages; + + m_srcAccess |= srcAccess; + m_dstAccess |= dstAccess; + } + + void DxvkBarrierSet::accessBuffer( const DxvkBufferSliceHandle& bufSlice, VkPipelineStageFlags srcStages, diff --git a/src/dxvk/dxvk_barrier.h b/src/dxvk/dxvk_barrier.h index 0b964fa8f..7b7226c42 100644 --- a/src/dxvk/dxvk_barrier.h +++ b/src/dxvk/dxvk_barrier.h @@ -19,7 +19,13 @@ namespace dxvk { DxvkBarrierSet(DxvkCmdBuffer cmdBuffer); ~DxvkBarrierSet(); - + + void accessMemory( + VkPipelineStageFlags srcStages, + VkAccessFlags srcAccess, + VkPipelineStageFlags dstStages, + VkAccessFlags dstAccess); + void accessBuffer( const DxvkBufferSliceHandle& bufSlice, VkPipelineStageFlags srcStages,