| 503 | } |
| 504 | |
| 505 | std::string Program::infoLog() const |
| 506 | { |
| 507 | GLint length = get(GL_INFO_LOG_LENGTH); |
| 508 | |
| 509 | if (length == 0) |
| 510 | return std::string(); |
| 511 | |
| 512 | std::vector<char> log(length); |
| 513 | |
| 514 | glGetProgramInfoLog(id(), length, &length, log.data()); |
| 515 | |
| 516 | return std::string(log.data(), length); |
| 517 | } |
| 518 | |
| 519 | void Program::dispatchCompute(const glm::uvec3 & numGroups) |
| 520 | { |