1/* 2 * Copyright (c) 2020 The Khronos Group Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 * OpenCL is a trademark of Apple Inc. used under license by Khronos. 17 */ 18 19#ifndef OPENCL_CL_LAYER_H 20#define OPENCL_CL_LAYER_H 21 22#include <CL/cl_icd.h> 23 24#ifdef __cplusplus 25extern "C" { 26#endif 27 28typedef cl_uint cl_layer_info; 29typedef cl_uint cl_layer_api_version; 30#define CL_LAYER_API_VERSION 0x4240 31#define CL_LAYER_API_VERSION_100 100 32 33extern CL_API_ENTRY cl_int CL_API_CALL 34clGetLayerInfo(cl_layer_info param_name, 35 size_t param_value_size, 36 void *param_value, 37 size_t *param_value_size_ret); 38 39typedef cl_int 40(CL_API_CALL *pfn_clGetLayerInfo)(cl_layer_info param_name, 41 size_t param_value_size, 42 void *param_value, 43 size_t *param_value_size_ret); 44 45extern CL_API_ENTRY cl_int CL_API_CALL 46clInitLayer(cl_uint num_entries, 47 const cl_icd_dispatch *target_dispatch, 48 cl_uint *num_entries_ret, 49 const cl_icd_dispatch **layer_dispatch_ret); 50 51typedef cl_int 52(CL_API_CALL *pfn_clInitLayer)(cl_uint num_entries, 53 const cl_icd_dispatch *target_dispatch, 54 cl_uint *num_entries_ret, 55 const cl_icd_dispatch **layer_dispatch_ret); 56 57#ifdef __cplusplus 58} 59#endif 60 61#endif /* OPENCL_CL_LAYER_H */ 62