On Mon 09-Jan 2:45, Trass3r wrote:
Ok, so when i try to compile it says
src\opencl\c\cl_d3d10.d(88): Error: undefined identifier UINT
src\opencl\c\cl_d3d10.d(96): Error: undefined identifier UINT
and upon changing those to uint I get
src\opencl\c\cl_d3d11.d(77): Error: undefined identifier ID3D11Buffer
src\opencl\c\cl_d3d11.d(84): Error: undefined identifier ID3D11Texture2D
src\opencl\c\cl_d3d11.d(91): Error: undefined identifier ID3D11Texture3D
What am I missing?
Well the DirectX stuff isn't tested at all.
I always compile with rdmd so these modules aren't compiled.
The uint errors are small cases I overlooked.
The rest is obvious: cl4d knows nothing about DirectX, so you need a
binding.
Maybe I should just turn these into void* to get rid of the errors, but
then you loose type safety, hmm.
Well, I resorted to using bud and managed to get the vectorAdd example
to compile, but when I run I get this error:
AMD Accelerated Parallel Processing
Advanced Micro Devices, Inc.
OpenCL 1.1 AMD-APP (831.4)
FULL_PROFILE
cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
cl_khr_d3d10_sharing
Barts
Advanced Micro Devices, Inc.
CAL 1.4.1646 (VM)
OpenCL 1.1 AMD-APP (831.4)
FULL_PROFILE
Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
GenuineIntel
2.0
OpenCL 1.1 AMD-APP (831.4)
FULL_PROFILE
Warnings being treated as errors
C:\Users\abc\AppData\Local\Temp\OCLA2DA.tmp.cl(1): error: unrecognized
character escape sequence
#line 35 "src\main.d"
^
1 error detected in the compilation of
"C:\Users\abc\AppData\Local\Temp\OCLA2DA.tmp.cl".
Internal error: clc compiler invocation failed.
core.exception.AssertError@src\opencl\kernel.d(196): _object is null
----------------
42A6A8
42A51F
4039CD
40EE7C
40EEC0
40EAB7
4AC3A9
----------------
Is this some kind of \ vs / bug?