2
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2008-2009 The Khronos Group Inc.
|
|
3 *
|
|
4 * Permission is hereby granted, free of charge, to any person obtaining a
|
|
5 * copy of this software and/or associated documentation files (the
|
|
6 * "Materials"), to deal in the Materials without restriction, including
|
|
7 * without limitation the rights to use, copy, modify, merge, publish,
|
|
8 * distribute, sublicense, and/or sell copies of the Materials, and to
|
|
9 * permit persons to whom the Materials are furnished to do so, subject to
|
|
10 * the following conditions:
|
|
11 *
|
|
12 * The above copyright notice and this permission notice shall be included
|
|
13 * in all copies or substantial portions of the Materials.
|
|
14 *
|
|
15 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
21 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
|
22 ******************************************************************************/
|
|
23
|
|
24 /* $Revision: 10424 $ on $Date: 2010-02-17 14:34:49 -0800 (Wed, 17 Feb 2010) $ */
|
|
25
|
3
|
26 module opencl.c.cl_ext;
|
2
|
27
|
|
28 extern(C):
|
|
29
|
|
30 // cl_khr_fp64 extension - no extension #define since it has no functions
|
|
31 enum
|
|
32 {
|
|
33 CL_DEVICE_DOUBLE_FP_CONFIG = 0x1032,
|
|
34
|
|
35
|
|
36 // cl_khr_fp16 extension - no extension #define since it has no functions
|
|
37 CL_DEVICE_HALF_FP_CONFIG = 0x1033,
|
|
38 }
|
|
39
|
|
40 // cl_khr_icd extension
|
|
41 version = cl_khr_icd;
|
|
42
|
|
43 enum
|
|
44 {
|
|
45 // cl_platform_info
|
|
46 CL_PLATFORM_ICD_SUFFIX_KHR = 0x0920,
|
|
47
|
|
48 // Additional Error Codes
|
|
49 CL_PLATFORM_NOT_FOUND_KHR = -1001,
|
|
50 }
|
|
51
|
|
52 cl_int clIcdGetPlatformIDsKHR(
|
|
53 cl_uint num_entries,
|
|
54 cl_platform_id* platforms,
|
|
55 cl_uint* num_platforms
|
|
56 ); |