| 
                    cl_int
                    
                        clGetContextInfo
                    
                ( | cl_context context , | 
| cl_context_info param_name , | |
| size_t param_value_size , | |
| void *param_value , | |
| size_t
                     *param_value_size_ret ) | 
context  
            Specifies the OpenCL context being queried.
 param_name  
            
                        An enumeration constant that specifies the information to query.
                        The valid values for param_name are:
                    
| cl_context_info | Return Type | Information returned in param_value | 
|---|---|---|
| CL_CONTEXT_REFERENCE_COUNT | cl_uint | Return the contextreference count. The reference
                              count returned should be considered immediately stale. It is
                              unsuitable for general use in applications. This feature is
                              provided for identifying memory leaks. | 
| CL_CONTEXT_NUM_DEVICES | cl_uint | Return the number of devices in context. | 
| CL_CONTEXT_DEVICES | cl_device_id[] | Return the list of devices in context. | 
| CL_CONTEXT_PROPERTIES | cl_context_- properties[] | Return the propertiesargument specified in
                              clCreateContext
                              or
                              clCreateContextFromType.If the   If the  | 
| CL_CONTEXT_D3D10_PREFER_-
SHARED_RESOURCES_KHR | cl_bool | If the
                              cl_khr_d3d10_sharing
                              extension is enabled, returns CL_TRUEif Direct3D 10 resources created as shared by
                              settingMiscFlagsto includeD3D10_RESOURCE_MISC_SHAREDwill perform faster
                              when shared with OpenCL, compared with resources which have not
                              set this flag. Otherwise returnsCL_FALSE. | 
| CL_CONTEXT_D3D11_PREFER_-
SHARED_RESOURCES_KHR | cl_bool | If the cl_khr_d3d11_sharing 
                              extension is enabled, returns CL_TRUEif Direct3D 11 resources created
                              as shared by settingMiscFlagsto includeD3D11_RESOURCE_MISC_SHAREDwill perform faster
                              when shared with OpenCL, compared with resources which have not
                              set this flag. Otherwise returnsCL_FALSE. | 
param_value
                
            
                         A pointer to memory where the appropriate result being queried is returned.
                         If param_value is NULL, it is ignored.
                    
param_value_size
                
            
                      Specifies the size in bytes of memory
                      pointed to by param_value.  This size must be greater
                      than or equal to the size of return type as described in the table above.
                    
param_value_size_ret
                
            
                      Returns the actual size in bytes
                      of data being queried by param_value. If
                      param_value_size_ret is NULL, it is ignored.
                    
Returns CL_SUCCESS if the function executed successfully, or one of the errors below:
context
                is not a valid context.
            param_name
              is not one of the supported values or if size in bytes specified by
              param_value_size is < size of return type as specified in the
              table above and param_value is not a NULL
              value.
             Copyright © 2007-2013 The Khronos Group Inc. 
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.
Copyright © 2007-2013 The Khronos Group Inc. 
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.