| 440 | } |
| 441 | |
| 442 | void 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). |
no outgoing calls
no test coverage detected