| 202 | GlProgram::~GlProgram() { Invalidate(); } |
| 203 | |
| 204 | Status GlProgram::SetParameter(const Variable& param) { |
| 205 | GLint uniform_location; |
| 206 | RETURN_IF_ERROR(TFLITE_GPU_CALL_GL(glGetUniformLocation, &uniform_location, |
| 207 | id_, param.name.c_str())); |
| 208 | return absl::visit(ParameterSetter{id_, uniform_location}, param.value); |
| 209 | } |
| 210 | |
| 211 | Status GlProgram::Dispatch(const uint3& workgroups) const { |
| 212 | if (workgroups.x == 0 || workgroups.y == 0 || workgroups.z == 0) { |
no test coverage detected