summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-10-19 00:25:39 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-10-19 00:25:39 +0000
commitff88c0507d8e8d4571b00adb421557bca1f4ed48 (patch)
tree2382f8fad731dee624e2a1d6cb9f2f0ded6219b4 /Graphics/GraphicsEngineVulkan
parentFixed issues with alignment in linear allocator (diff)
downloadDiligentCore-ff88c0507d8e8d4571b00adb421557bca1f4ed48.tar.gz
DiligentCore-ff88c0507d8e8d4571b00adb421557bca1f4ed48.zip
Updated third-party modules; fixed compiler warnings
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp
index 7f726e69..33e0aa82 100644
--- a/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp
@@ -762,7 +762,7 @@ void ShaderResourceLayoutVk::VkResource::CacheTexelBuffer(IDeviceObject*
{
const auto& ViewDesc = pBufferViewVk->GetDesc();
const auto& BuffDesc = pBufferViewVk->GetBuffer()->GetDesc();
- if (!(BuffDesc.Mode == BUFFER_MODE_FORMATTED && ViewDesc.Format.ValueType != VT_UNDEFINED || BuffDesc.Mode == BUFFER_MODE_RAW))
+ if (!((BuffDesc.Mode == BUFFER_MODE_FORMATTED && ViewDesc.Format.ValueType != VT_UNDEFINED) || BuffDesc.Mode == BUFFER_MODE_RAW))
{
LOG_ERROR_MESSAGE("Error binding buffer view '", ViewDesc.Name, "' of buffer '", BuffDesc.Name, "' to shader variable '",
SpirvAttribs.Name, "' in shader '", ParentResLayout.GetShaderName(), "': formatted buffer view is expected.");