summaryrefslogtreecommitdiff
path: root/amdgpu/lib/image/get_image_channel_data_type.cl
diff options
context:
space:
mode:
Diffstat (limited to 'amdgpu/lib/image/get_image_channel_data_type.cl')
-rw-r--r--amdgpu/lib/image/get_image_channel_data_type.cl13
1 files changed, 13 insertions, 0 deletions
diff --git a/amdgpu/lib/image/get_image_channel_data_type.cl b/amdgpu/lib/image/get_image_channel_data_type.cl
new file mode 100644
index 0000000..2a2478f
--- /dev/null
+++ b/amdgpu/lib/image/get_image_channel_data_type.cl
@@ -0,0 +1,13 @@
+#include <clc/clc.h>
+
+_CLC_DECL int __clc_get_image_channel_data_type_2d(image2d_t);
+_CLC_DECL int __clc_get_image_channel_data_type_3d(image3d_t);
+
+_CLC_OVERLOAD _CLC_DEF int
+get_image_channel_data_type(image2d_t image) {
+ return __clc_get_image_channel_data_type_2d(image);
+}
+_CLC_OVERLOAD _CLC_DEF int
+get_image_channel_data_type(image3d_t image) {
+ return __clc_get_image_channel_data_type_3d(image);
+}