MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / castToBool

Method castToBool

src/OpenColorIO/GpuShaderUtils.cpp:1382–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1380}
1381
1382std::string GpuShaderText::castToBool(const std::string& v) const
1383{
1384 if (m_lang == GPU_LANGUAGE_GLSL_VK_4_6)
1385 {
1386 return "bool(" + v + ")";
1387 }
1388 return v;
1389}
1390
1391
1392std::string BuildResourceName(GpuShaderCreatorRcPtr & shaderCreator, const std::string & prefix,

Callers 6

AddGCForwardShaderFunction · 0.80
AddGCInverseShaderFunction · 0.80
AddGCForwardShaderFunction · 0.80
AddGCInverseShaderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected