diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-08-23 05:07:04 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-08-23 05:07:04 +0000 |
| commit | 3bbcf1d7ebfc83ed84e7297a1a7c5086385f2cb8 (patch) | |
| tree | 092e218d3a736e684a78641c32e6b56f6b7e4f37 /Graphics/GraphicsEngineVulkan | |
| parent | Updated description of USAGE_UNIFIED enum value (diff) | |
| download | DiligentCore-3bbcf1d7ebfc83ed84e7297a1a7c5086385f2cb8.tar.gz DiligentCore-3bbcf1d7ebfc83ed84e7297a1a7c5086385f2cb8.zip | |
Minor updates in DeviceContextVkImpl::UnmapBuffer
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index 2221b6b9..f9328d0a 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -1494,13 +1494,13 @@ void DeviceContextVkImpl::UnmapBuffer(IBuffer* pBuffer, MAP_TYPE MapType) if (MapType == MAP_READ) { - // We are currently using cache-coherent memory, so there is no need to invalidated mapped range + // We are currently using host-cached memory, so there is no need to invalidated mapped range } else if (MapType == MAP_WRITE) { - if (BuffDesc.Usage == USAGE_STAGING) + if (BuffDesc.Usage == USAGE_STAGING || BuffDesc.Usage == USAGE_UNIFIED) { - // We are currently using cache-coherent memory, so there is no need to flush mapped range + // We are currently using host-coherent memory, so there is no need to flush mapped range } else if (BuffDesc.Usage == USAGE_DYNAMIC) { |
