Skip to content

Commit 31f7d05

Browse files
ShaderVk: fixed entry point debug assert
1 parent 0b4e851 commit 31f7d05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ void ShaderVkImpl::Initialize(const ShaderCreateInfo& ShaderCI,
236236
ShaderCI.LoadConstantBufferReflection,
237237
m_EntryPoint //
238238
};
239-
VERIFY_EXPR(ShaderCI.ByteCode != nullptr || m_EntryPoint == ShaderCI.EntryPoint);
239+
VERIFY_EXPR(ShaderCI.ByteCode != nullptr || m_EntryPoint == ShaderCI.EntryPoint ||
240+
(m_EntryPoint == "main" && (ShaderCI.CompileFlags & SHADER_COMPILE_FLAG_HLSL_TO_SPIRV_VIA_GLSL) != 0));
240241
m_pShaderResources.reset(static_cast<SPIRVShaderResources*>(pRawMem.release()), STDDeleterRawMem<SPIRVShaderResources>(Allocator));
241242

242243
if (LoadShaderInputs && m_pShaderResources->IsHLSLSource())

0 commit comments

Comments
 (0)