Commit 4c5f1ef3 authored by Jesse Natalie's avatar Jesse Natalie
Browse files

microsoft/clc: Add a test for compiling a kernel with a read-write image

Reviewed-by: Enrico Galli's avatarEnrico Galli <>
Part-of: <!10163>
parent 6126dd29
Pipeline #370664 waiting for manual action with stages
......@@ -1566,6 +1566,18 @@ TEST_F(ComputeTest, image_two_reads)
TEST_F(ComputeTest, image_read_write)
const char *kernel_source =
R"(__kernel void main_test(read_write image2d_t image)
int2 coords = (int2)(get_global_id(0), get_global_id(1));
write_imagef(image, coords, read_imagef(image, coords) + (float4)(1.0f, 1.0f, 1.0f, 1.0f));
Shader shader = compile(std::vector<const char*>({ kernel_source }), { "-cl-std=cl3.0" });
TEST_F(ComputeTest, sampler)
const char* kernel_source =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment