Skip to content

Commit

Permalink
BuildGLSLSourceString: throw exception in case of HLSL to GLSL conver…
Browse files Browse the repository at this point in the history
…sion failure
  • Loading branch information
TheMostDiligent committed Oct 23, 2023
1 parent 84f9ec9 commit a5e20cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Graphics/ShaderTools/src/GLSLUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,10 @@ String BuildGLSLSourceString(const ShaderCreateInfo& ShaderCI,
// (search for "Input Layout Qualifiers" and "Output Layout Qualifiers").
Attribs.UseInOutLocationQualifiers = DeviceInfo.Features.SeparablePrograms;
auto ConvertedSource = Converter.Convert(Attribs);

if (ConvertedSource.empty())
{
LOG_ERROR_AND_THROW("Failed to convert HLSL source to GLSL");
}
GLSLSource.append(ConvertedSource);
#endif
}
Expand Down

0 comments on commit a5e20cc

Please sign in to comment.