We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67e320 commit 0b4e851Copy full SHA for 0b4e851
Graphics/ShaderTools/src/GLSLUtils.cpp
@@ -364,7 +364,7 @@ String BuildGLSLSourceString(const BuildGLSLSourceStringAttribs& Attribs) noexce
364
#if DILIGENT_NO_HLSL
365
LOG_ERROR_AND_THROW("Unable to convert HLSL source to GLSL: HLSL support is disabled");
366
#else
367
- if (!ShaderCI.Desc.UseCombinedTextureSamplers)
+ if (!ShaderCI.Desc.UseCombinedTextureSamplers && (ShaderCI.CompileFlags & SHADER_COMPILE_FLAG_HLSL_TO_SPIRV_VIA_GLSL) == 0)
368
{
369
LOG_ERROR_AND_THROW("Combined texture samplers are required to convert HLSL source to GLSL");
370
}
0 commit comments