17 #ifndef __OPENCL_CL_DX9_MEDIA_SHARING_H
18 #define __OPENCL_CL_DX9_MEDIA_SHARING_H
29 #define cl_khr_dx9_media_sharing 1
37 #pragma warning( push )
38 #pragma warning( disable : 4201 )
39 #pragma warning( disable : 5105 )
45 #pragma warning( pop )
48 typedef struct _cl_dx9_surface_info_khr
50 IDirect3DSurface9 *resource;
52 } cl_dx9_surface_info_khr;
59 #define CL_INVALID_DX9_MEDIA_ADAPTER_KHR -1010
60 #define CL_INVALID_DX9_MEDIA_SURFACE_KHR -1011
61 #define CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR -1012
62 #define CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR -1013
65 #define CL_ADAPTER_D3D9_KHR 0x2020
66 #define CL_ADAPTER_D3D9EX_KHR 0x2021
67 #define CL_ADAPTER_DXVA_KHR 0x2022
70 #define CL_PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR 0x2023
71 #define CL_ALL_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR 0x2024
74 #define CL_CONTEXT_ADAPTER_D3D9_KHR 0x2025
75 #define CL_CONTEXT_ADAPTER_D3D9EX_KHR 0x2026
76 #define CL_CONTEXT_ADAPTER_DXVA_KHR 0x2027
79 #define CL_MEM_DX9_MEDIA_ADAPTER_TYPE_KHR 0x2028
80 #define CL_MEM_DX9_MEDIA_SURFACE_INFO_KHR 0x2029
83 #define CL_IMAGE_DX9_MEDIA_PLANE_KHR 0x202A
86 #define CL_COMMAND_ACQUIRE_DX9_MEDIA_SURFACES_KHR 0x202B
87 #define CL_COMMAND_RELEASE_DX9_MEDIA_SURFACES_KHR 0x202C
94 cl_dx9_media_adapter_type_khr * media_adapter_type,
95 void * media_adapters,
96 cl_dx9_media_adapter_set_khr media_adapter_set,
104 cl_dx9_media_adapter_type_khr adapter_type,
112 const cl_mem * mem_objects,
113 cl_uint num_events_in_wait_list,
120 const cl_mem * mem_objects,
121 cl_uint num_events_in_wait_list,
129 #define cl_intel_dx9_media_sharing 1
135 #define CL_INVALID_DX9_DEVICE_INTEL -1010
136 #define CL_INVALID_DX9_RESOURCE_INTEL -1011
137 #define CL_DX9_RESOURCE_ALREADY_ACQUIRED_INTEL -1012
138 #define CL_DX9_RESOURCE_NOT_ACQUIRED_INTEL -1013
141 #define CL_D3D9_DEVICE_INTEL 0x4022
142 #define CL_D3D9EX_DEVICE_INTEL 0x4070
143 #define CL_DXVA_DEVICE_INTEL 0x4071
146 #define CL_PREFERRED_DEVICES_FOR_DX9_INTEL 0x4024
147 #define CL_ALL_DEVICES_FOR_DX9_INTEL 0x4025
150 #define CL_CONTEXT_D3D9_DEVICE_INTEL 0x4026
151 #define CL_CONTEXT_D3D9EX_DEVICE_INTEL 0x4072
152 #define CL_CONTEXT_DXVA_DEVICE_INTEL 0x4073
155 #define CL_MEM_DX9_RESOURCE_INTEL 0x4027
156 #define CL_MEM_DX9_SHARED_HANDLE_INTEL 0x4074
159 #define CL_IMAGE_DX9_PLANE_INTEL 0x4075
162 #define CL_COMMAND_ACQUIRE_DX9_OBJECTS_INTEL 0x402A
163 #define CL_COMMAND_RELEASE_DX9_OBJECTS_INTEL 0x402B
169 cl_dx9_device_source_intel dx9_device_source,
171 cl_dx9_device_set_intel dx9_device_set,
178 cl_dx9_device_source_intel dx9_device_source,
180 cl_dx9_device_set_intel dx9_device_set,
183 cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_1;
189 IDirect3DSurface9* resource,
197 IDirect3DSurface9* resource,
200 cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1;
206 const cl_mem* mem_objects,
207 cl_uint num_events_in_wait_list,
214 const cl_mem* mem_objects,
215 cl_uint num_events_in_wait_list,
224 cl_uint num_events_in_wait_list,
232 cl_uint num_events_in_wait_list,
239 #define cl_intel_sharing_format_query_dx9 1
250 D3DFORMAT* dx9_formats,
251 cl_uint* num_surface_formats) ;
260 D3DFORMAT* dx9_formats,
261 cl_uint* num_surface_formats) ;
struct _cl_device_id * cl_device_id
struct _cl_context * cl_context
cl_uint cl_mem_object_type
struct _cl_platform_id * cl_platform_id
struct _cl_event * cl_event
struct _cl_command_queue * cl_command_queue