| 170 | } |
| 171 | |
| 172 | Status Add::BindArguments(CLKernel* kernel) { |
| 173 | for (int i = 1; i < src_depthes_.size(); ++i) { |
| 174 | RETURN_IF_ERROR(kernel->SetMemoryAuto(src_[i]->GetMemoryPtr())); |
| 175 | } |
| 176 | if (HasTexture2DStorageType(definition_)) { |
| 177 | float inv_divisor = 1.0f / static_cast<float>(dst_depth_); |
| 178 | RETURN_IF_ERROR(kernel->SetBytesAuto(inv_divisor)); |
| 179 | } |
| 180 | return OkStatus(); |
| 181 | } |
| 182 | |
| 183 | Status Add::Compile(const CreationContext& creation_context) { |
| 184 | const auto code = |
nothing calls this directly
no test coverage detected