Skip to content

Commit 0b4e851

Browse files
GLSL Utils: allow separate image samplers when converting HLSL to GLSL
1 parent f67e320 commit 0b4e851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graphics/ShaderTools/src/GLSLUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ String BuildGLSLSourceString(const BuildGLSLSourceStringAttribs& Attribs) noexce
364364
#if DILIGENT_NO_HLSL
365365
LOG_ERROR_AND_THROW("Unable to convert HLSL source to GLSL: HLSL support is disabled");
366366
#else
367-
if (!ShaderCI.Desc.UseCombinedTextureSamplers)
367+
if (!ShaderCI.Desc.UseCombinedTextureSamplers && (ShaderCI.CompileFlags & SHADER_COMPILE_FLAG_HLSL_TO_SPIRV_VIA_GLSL) == 0)
368368
{
369369
LOG_ERROR_AND_THROW("Combined texture samplers are required to convert HLSL source to GLSL");
370370
}

0 commit comments

Comments
 (0)