| 425 | } |
| 426 | |
| 427 | std::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 | |
| 437 | void GpuShaderText::declareVarConst(const std::string & name, float v) |
| 438 | { |
no test coverage detected