Debian Codegraph @

shared/source/built_ins/kernels/copy_image_to_image1d.builtin_kernel

raw
1 /*
2 * Copyright (C) 2018-2021 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 R"===(
9 __kernel void CopyImageToImage1d(
10 __read_only image1d_t input,
11 __write_only image1d_t output,
12 int4 srcOffset,
13 int4 dstOffset) {
14 const int x = get_global_id(0);
15
16 const int srcCoord = x + srcOffset.x;
17 const int dstCoord = x + dstOffset.x;
18 const uint4 c = read_imageui(input, srcCoord);
19 write_imageui(output, dstCoord, c);
20 }
21 )==="