/* * Copyright (C) 2018-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ R"===( __kernel void CopyImageToImage2d( __read_only image2d_t input, __write_only image2d_t output, int4 srcOffset, int4 dstOffset) { const int x = get_global_id(0); const int y = get_global_id(1); const int2 srcCoord = (int2)(x, y) + (int2)(srcOffset.x, srcOffset.y); const int2 dstCoord = (int2)(x, y) + (int2)(dstOffset.x, dstOffset.y); const uint4 c = read_imageui(input, srcCoord); write_imageui(output, dstCoord, c); } )==="