Hello,
I'm investigating the possiblility to use swift and Metal, to create a simulator of a embedded device.
I searched the net, and I found a lot of information about calling plain C functions in some swift code. But I haven't found any information about the inverse way. How to access a swift function in plain C code.
With Objective-C, I just created a C compatible header file, and used an objective-C body to do the work.
Does anybody know how I can access a swift function instead.
PS. The main source code used, is written in plain C, not C++ or objective-C. Because it also needs to run on a custom device. The purpose of my question is that I want swift to initialize the metal framework, creating shaders and supply a simulator interface.
Thanks,
Peter