diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-07-04 23:21:24 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-07-04 23:21:24 +0000 |
| commit | 19dcf476e8f9b079191bd43ee8da9e9cfe5e3e64 (patch) | |
| tree | 4ebd90768fbcd8c6f5dda8f48e8558f59bf4a262 /Graphics/GraphicsEngineVulkan | |
| parent | Fixed few issues with 3D texture views in GL and VK (diff) | |
| download | DiligentCore-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.cpp | 2 |
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()) { |
