mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-26 06:42:33 +08:00
feature: add FillImage1dBuffer built-in kernel
Resolves: NEO-13984, HSD-18041422852 Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ff7bfc8b6e
commit
ef52479ce4
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (C) 2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
R"===(
|
||||
__kernel void FillImage1dBuffer(
|
||||
__write_only image1d_buffer_t output,
|
||||
uint4 color,
|
||||
int4 dstOffset) {
|
||||
const int x = get_global_id(0);
|
||||
|
||||
const int dstCoord = x + dstOffset.x;
|
||||
write_imageui(output, dstCoord, color);
|
||||
}
|
||||
)==="
|
||||
Reference in New Issue
Block a user