diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-10-25 07:24:36 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-10-25 07:24:36 +0000 |
| commit | 8c483ffc69f999423dd4e4d385bbe4b7e697ab45 (patch) | |
| tree | e7e8a842d14f573cb2f2c08cb7ad325691a3049e /Graphics/GraphicsEngineVulkan | |
| parent | Fixed mipmap generation in D3D12 backend; added EngineD3D12CreateInfo::Enable... (diff) | |
| download | DiligentCore-8c483ffc69f999423dd4e4d385bbe4b7e697ab45.tar.gz DiligentCore-8c483ffc69f999423dd4e4d385bbe4b7e697ab45.zip | |
Fixed few clang warnings
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp b/Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp index cc9ae36f..112c0bf3 100644 --- a/Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp +++ b/Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp @@ -216,7 +216,7 @@ namespace Diligent DEV_CHECK_ERR(ViewDesc.NumMipLevels > 1, "Number of mip levels in the view must be greater than 1"); DEV_CHECK_ERR(OriginalState != RESOURCE_STATE_UNDEFINED, "Attempting to generate mipmaps for texture '", TexDesc.Name, "' which is in RESOURCE_STATE_UNDEFINED state ." - "This is not expected in Vulkan backend as textures are transition to a defined state when created."); + "This is not expected in Vulkan backend as textures are transition to a defined state when created."); (void)OriginalState; const auto& FmtAttribs = GetTextureFormatAttribs(ViewDesc.Format); VkImageSubresourceRange SubresRange = {}; diff --git a/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp index e5fa302d..b74d4f60 100644 --- a/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp @@ -767,7 +767,7 @@ void TextureVkImpl::InvalidateStagingRange(VkDeviceSize Offset, VkDeviceSize Siz InvalidateRange.offset = m_StagingDataAlignedOffset + Offset; InvalidateRange.size = Size; auto err = LogicalDevice.InvalidateMappedMemoryRanges(1, &InvalidateRange); - DEV_CHECK_ERR(err == VK_SUCCESS, "Failed to invalidated mapped texture memory range"); + DEV_CHECK_ERR(err == VK_SUCCESS, "Failed to invalidated mapped texture memory range"); (void)err; } } |
