1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[dxvk] Introduce accessMemory for barrier tracking

This commit is contained in:
Philip Rebohle 2021-09-21 14:05:15 +02:00
parent b79ce7af8a
commit 3a712b766e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 20 additions and 1 deletions

View File

@ -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,

View File

@ -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,