Skip to content

Commit 5952664

Browse files
committed
[OpenCL] Add CLK_UNORM_INT_101010_2 channel type
This new channel data type was added in OpenCL C 3.0.
1 parent 185739a commit 5952664

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Headers/opencl-c-base.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ typedef enum memory_order
474474
#define CLK_HALF_FLOAT 0x10DD
475475
#define CLK_FLOAT 0x10DE
476476
#define CLK_UNORM_INT24 0x10DF
477+
#if __OPENCL_C_VERSION__ >= CL_VERSION_3_0
478+
#define CLK_UNORM_INT_101010_2 0x10E0
479+
#endif // __OPENCL_C_VERSION__ >= CL_VERSION_3_0
477480

478481
// Channel order, numbering must be aligned with cl_channel_order in cl.h
479482
//

0 commit comments

Comments
 (0)