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

Method declareVar

src/OpenColorIO/GpuShaderUtils.cpp:442–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void GpuShaderText::declareVar(const std::string & name, float v)
443{
444 newLine() << declareVarStr(name, v) << ";";
445}
446
447// TODO: OSL: The method only solves the problem for constant float values. The code must also
448// support the in-place declarations (like res = t + vec3(...) for example).

Callers 3

GetCDLGPUShaderProgramFunction · 0.80
AddPropertyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected