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

Method colorDecl

src/OpenColorIO/GpuShaderUtils.cpp:427–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427std::string GpuShaderText::colorDecl(const std::string & name) const
428{
429 if (name.empty())
430 {
431 throw Exception("GPU variable name is empty.");
432 }
433
434 return (m_lang==LANGUAGE_OSL_1 ? "color" : float3Keyword()) + " " + name;
435}
436
437void GpuShaderText::declareVarConst(const std::string & name, float v)
438{

Callers 11

Add_MidsFwd_ShaderFunction · 0.80
Add_MidsRev_ShaderFunction · 0.80
Add_WhiteBlackPre_ShaderFunction · 0.80
Add_WBFwd_ShaderFunction · 0.80
Add_WBRev_ShaderFunction · 0.80
Add_WhiteBlackRev_ShaderFunction · 0.80
Add_SContrastFwd_ShaderFunction · 0.80
Add_SContrastRev_ShaderFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected