Debian Codegraph @

shared/source/built_ins/kernels/fill_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 FillImage1d(
10 __write_only image1d_t output,
11 uint4 color,
12 int4 dstOffset) {
13 const int x = get_global_id(0);
14
15 const int dstCoord = x + dstOffset.x;
16 write_imageui(output, dstCoord, color);
17 }
18 )==="