brintos

brintos / llvm-project-archived public Read only

0
0
Text · 708 B · 6929d12 Raw
18 lines · plain
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#include <clc/opencl/image/image.h>10 11_CLC_OVERLOAD _CLC_DEF int2 get_image_dim(image2d_t image) {12  return (int2)(get_image_width(image), get_image_height(image));13}14_CLC_OVERLOAD _CLC_DEF int4 get_image_dim(image3d_t image) {15  return (int4)(get_image_width(image), get_image_height(image),16                get_image_depth(image), 0);17}18