AnsweredAssumed Answered

OpenCL DirectX10 Extensions

Question asked by neverknovvsbestt on Jul 2, 2012
Latest reply on Jul 3, 2012 by neverknovvsbestt

I'm relatively new to OpenCL and have been having no troubles with it up until I started to try to use the d3d10 sharing extension. Specifically I can't seem to get anything to compile...


Here is some info about my setup:


Graphics Card: ATI Mobility Radeon HD 4500/5100 Series

IDE: Visual Studio 2010


When I query the device for extensions here is what it returns:

"cl_khr_gl_sharing cl_amd_device_attribute_query cl_khr_d3d10_sharing "


I added this in my header:

#pragma OPENCL EXTENSION cl_khr_d3d10_sharing : enable

#include <CL/cl_d3d10.h>


When I compile my project (which simply references the function clCreateFromD3D10BufferKHR) I get the following output:

warning C4068: unknown pragma

error C3861: 'clCreateFromD3D10BufferKHR': identifier not found


Is there something else I need to do before I can use these extensions?