summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor <egor.yusov@gmail.com>2019-02-16 20:12:20 +0000
committerEgor <egor.yusov@gmail.com>2019-02-16 20:12:20 +0000
commita93c8f764724651c9fdfe059e20c7c714b355e9d (patch)
treed02fb7c46c10da1d38bfcd0c26616ac0ceca848a /Graphics/GraphicsEngineVulkan
parentAdded Sam_ComparsionLinearClamp to common states (diff)
downloadDiligentCore-a93c8f764724651c9fdfe059e20c7c714b355e9d.tar.gz
DiligentCore-a93c8f764724651c9fdfe059e20c7c714b355e9d.zip
Fixed GLES3.0 context on Android
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp
index b0058a8f..fef2d052 100644
--- a/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp
@@ -37,7 +37,9 @@
namespace Diligent
{
-ShaderVkImpl::ShaderVkImpl(IReferenceCounters* pRefCounters, RenderDeviceVkImpl* pRenderDeviceVk, const ShaderCreationAttribs& CreationAttribs) :
+ShaderVkImpl::ShaderVkImpl(IReferenceCounters* pRefCounters,
+ RenderDeviceVkImpl* pRenderDeviceVk,
+ const ShaderCreationAttribs& CreationAttribs) :
TShaderBase (pRefCounters, pRenderDeviceVk, CreationAttribs.Desc),
m_StaticResLayout (*this, pRenderDeviceVk->GetLogicalDevice()),
m_StaticResCache (ShaderResourceCacheVk::DbgCacheContentType::StaticShaderResources),
@@ -57,7 +59,7 @@ ShaderVkImpl::ShaderVkImpl(IReferenceCounters* pRefCounters, RenderDeviceVkImpl*
}
else
{
- auto GLSLSource = BuildGLSLSourceString(CreationAttribs, TargetGLSLCompiler::glslang, "#define TARGET_API_VULKAN 1\n");
+ auto GLSLSource = BuildGLSLSourceString(CreationAttribs, pRenderDeviceVk->GetDeviceCaps(), TargetGLSLCompiler::glslang, "#define TARGET_API_VULKAN 1\n");
m_SPIRV = GLSLtoSPIRV(m_Desc.ShaderType, GLSLSource.c_str(), static_cast<int>(GLSLSource.length()), CreationAttribs.ppCompilerOutput);
}