annotate opencl/c/cl_ext.d @ 3:c78ffc9a7434 default tip

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