summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-10-07 20:40:31 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-10-07 20:40:31 +0000
commitd46734f73d1c536633fae45c4650772577695c73 (patch)
treebeb89268b3b577df457cbaa2495bcffe7b9f0654 /Graphics/GraphicsEngineVulkan
parentAdded TextureFormatInfoExt::SampleCounts. Reworked texture format support que... (diff)
downloadDiligentCore-d46734f73d1c536633fae45c4650772577695c73.tar.gz
DiligentCore-d46734f73d1c536633fae45c4650772577695c73.zip
Replaced error messages wit warnings when accessing inactive shader stage through SRB
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp
index 18be6d30..b531493e 100644
--- a/Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp
@@ -107,7 +107,7 @@ IShaderVariable* ShaderResourceBindingVkImpl::GetVariable(SHADER_TYPE ShaderType
auto ResLayoutInd = m_ResourceLayoutIndex[ShaderInd];
if (ResLayoutInd < 0)
{
- LOG_ERROR("Unable to find mutable/dynamic variable '", Name, "': shader stage ", GetShaderTypeLiteralName(ShaderType), " is inactive");
+ LOG_WARNING_MESSAGE("Unable to find mutable/dynamic variable '", Name, "': shader stage ", GetShaderTypeLiteralName(ShaderType), " is inactive");
return nullptr;
}
return m_pShaderVarMgrs[ResLayoutInd].GetVariable(Name);
@@ -119,7 +119,7 @@ Uint32 ShaderResourceBindingVkImpl::GetVariableCount(SHADER_TYPE ShaderType) con
auto ResLayoutInd = m_ResourceLayoutIndex[ShaderInd];
if (ResLayoutInd < 0)
{
- LOG_ERROR("Unable to get the number of mutable/dynamic variables: shader stage ", GetShaderTypeLiteralName(ShaderType), " is inactive");
+ LOG_WARNING_MESSAGE("Unable to get the number of mutable/dynamic variables: shader stage ", GetShaderTypeLiteralName(ShaderType), " is inactive");
return 0;
}
return m_pShaderVarMgrs[ResLayoutInd].GetVariableCount();