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:
parent
b79ce7af8a
commit
3a712b766e
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user