HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cl_layer.h
Go to the documentation of this file.
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
25 extern "C" {
26 #endif
27 
30 #define CL_LAYER_API_VERSION 0x4240
31 #define CL_LAYER_API_VERSION_100 100
32 
34 clGetLayerInfo(cl_layer_info param_name,
35  size_t param_value_size,
36  void *param_value,
37  size_t *param_value_size_ret);
38 
39 typedef 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 
46 clInitLayer(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 
51 typedef cl_int
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 */
uint32_t cl_uint
Definition: cl_platform.h:261
CL_API_ENTRY cl_int CL_API_CALL clGetLayerInfo(cl_layer_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret)
cl_int(CL_API_CALL * pfn_clInitLayer)(cl_uint num_entries, const cl_icd_dispatch *target_dispatch, cl_uint *num_entries_ret, const cl_icd_dispatch **layer_dispatch_ret)
Definition: cl_layer.h:52
cl_uint cl_layer_info
Definition: cl_layer.h:28
cl_int(CL_API_CALL * pfn_clGetLayerInfo)(cl_layer_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret)
Definition: cl_layer.h:40
int32_t cl_int
Definition: cl_platform.h:260
#define CL_API_ENTRY
Definition: cl_platform.h:38
CL_API_ENTRY cl_int CL_API_CALL clInitLayer(cl_uint num_entries, const cl_icd_dispatch *target_dispatch, cl_uint *num_entries_ret, const cl_icd_dispatch **layer_dispatch_ret)
#define CL_API_CALL
Definition: cl_platform.h:41
cl_uint cl_layer_api_version
Definition: cl_layer.h:29