| 104 | } |
| 105 | |
| 106 | Status ApplyMask::BindArguments() { |
| 107 | kernel_.ResetBindingCounter(); |
| 108 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr())); |
| 109 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[1]->GetMemoryPtr())); |
| 110 | RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr())); |
| 111 | RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_)); |
| 112 | RETURN_IF_ERROR(kernel_.SetBytesAuto(int32_t( |
| 113 | GetMaskType(src_[0]->GetSizeWithDepth(), src_[1]->GetSizeWithDepth())))); |
| 114 | RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[0]->GetSizeWithDepth())); |
| 115 | RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[1]->GetSizeWithDepth())); |
| 116 | RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth())); |
| 117 | return OkStatus(); |
| 118 | } |
| 119 | |
| 120 | int3 ApplyMask::GetGridSize() const { |
| 121 | return int3(dst_[0]->Width(), dst_[0]->Height(), dst_[0]->Depth()); |
nothing calls this directly
no test coverage detected