Debian Codegraph @

shared/source/built_ins/kernels/fill_image3d.builtin_kernel

raw
1 /*
2 * Copyright (C) 2018-2021 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 R"===(
9 #pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable
10
11 __kernel void FillImage3d(
12 __write_only image3d_t output,
13 uint4 color,
14 int4 dstOffset) {
15 const int x = get_global_id(0);
16 const int y = get_global_id(1);
17 const int z = get_global_id(2);
18
19 const int4 dstCoord = (int4)(x, y, z, 0) + dstOffset;
20 write_imageui(output, dstCoord, color);
21 }
22 )==="