mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 14:33:04 +08:00
Change-Id: Ib370167a3997ce2e019c59b2f1118055f9c00e29 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
20 lines
399 B
Plaintext
20 lines
399 B
Plaintext
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
R"===(
|
|
__kernel void FillImage2d(
|
|
__write_only image2d_t output,
|
|
uint4 color,
|
|
int4 dstOffset) {
|
|
const int x = get_global_id(0);
|
|
const int y = get_global_id(1);
|
|
|
|
const int2 dstCoord = (int2)(x, y) + (int2)(dstOffset.x, dstOffset.y);
|
|
write_imageui(output, dstCoord, color);
|
|
}
|
|
)==="
|