Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/OpenColorIO/GpuShaderUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ std::string GpuShaderText::declareVarStr(const std::string & name, float v)
std::string GpuShaderText::vectorCompareExpression(const std::string& lhs, const std::string& op, const std::string& rhs)
{
std::string ret = lhs + " " + op + " " + rhs;
if(m_lang == GPU_LANGUAGE_MSL_2_0)
// MSL and HLSL do not allow vector bool in if-conditions: wrap with any().
if(m_lang == GPU_LANGUAGE_MSL_2_0 || m_lang == GPU_LANGUAGE_HLSL_SM_5_0)
{
ret = "any( " + ret + " )";
}
Expand Down