summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-04 23:21:24 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-04 23:21:24 +0000
commit19dcf476e8f9b079191bd43ee8da9e9cfe5e3e64 (patch)
tree4ebd90768fbcd8c6f5dda8f48e8558f59bf4a262 /Graphics/GraphicsEngineVulkan
parentFixed few issues with 3D texture views in GL and VK (diff)
downloadDiligentCore-19dcf476e8f9b079191bd43ee8da9e9cfe5e3e64.tar.gz
DiligentCore-19dcf476e8f9b079191bd43ee8da9e9cfe5e3e64.zip
Corrected depth-related GLSL definitions for Vulkan case
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp
index e875a923..264f695c 100644
--- a/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp
@@ -43,7 +43,7 @@ ShaderVkImpl::ShaderVkImpl(IReferenceCounters* pRefCounters, RenderDeviceVkImpl*
m_StaticResCache(ShaderResourceCacheVk::DbgCacheContentType::StaticShaderResources),
m_StaticVarsMgr(*this)
{
- auto GLSLSource = BuildGLSLSourceString(CreationAttribs, TargetGLSLCompiler::glslang);
+ auto GLSLSource = BuildGLSLSourceString(CreationAttribs, TargetGLSLCompiler::glslang, "#define TARGET_API_VULKAN 1\n");
m_SPIRV = GLSLtoSPIRV(m_Desc.ShaderType, GLSLSource.c_str());
if(m_SPIRV.empty())
{