AnsweredAssumed Answered

D3D10 Sharing

Question asked by neverknovvsbestt on Jul 4, 2012
Latest reply on Jul 8, 2012 by neverknovvsbestt

I'm trying to use the d3d sharing extensions so that I can modify the values of a DirectX10 vertex buffer in an OpenCL kernel and then render the vertices using DirectX10.

 

I've confirmed that my device supports d3d10 sharing and currently can retrieve function pointers to the sharing functions for d3d10 and call them with no problem. I can also create an OpenCL buffer object from a DirectX10 buffer with no problem.

 

However, I'm having trouble compiling my kernel code with the pragma that enables the extension:

 

line 1: error: can't enable

          all OpenCL extensions or unrecognized OpenCL extension

  #pragma OPENCL EXTENSION cl_khr_d3d10_sharing : enable

                                                                                   ^

Is there a special way to compile programs that use extensions? Special build options?

 

Also, I'd like to point out that I'm using clGetDeviceIDs instead of clGetDeviceIdsFromD3D10KHR. Is this an issue? Under what circumstances would I want to use one over the other?

 

Thank you for your time

Outcomes