This question pertains to both wwdc21-10159 and wwdc20-10009.
Let's say I have a simple Core Image kernel that does some simple operation as shown below.
#include <metal_stdlib>
#include <CoreImage/CoreImage.h> // includes CIKernelMetalLib.h
using namespace metal;
extern "C" float4 HDRHighlight(coreimage::sample_t s, float time, coreimage::destination dest)
{
return float4(2.0, 0.0, 0.0, 1.0);
}
In my build rules, I have the appropriate command to compile and link the .ci.metal source into the ci.metallib library.
I can confirm internally in the resources that this library file is generated.
However, when I import the kernel using CIColorKernel in Swift, I am given an error that states the kernel function failed to load.
In the logs, I see that it says:
[api] reflect Function 'HDRHighlight' does not exist.
Fatal error: Unable to load the kernel.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hey everyone, I had a use case question about Apple CallKit.
Currently, I have a calling feature in the app where two users can join a single WebRTC room and speak to each other directly without a VOIP server handling the audio load.
I would like to use CallKit to allow one user to call the other when the app is killed. When a user accepts an incoming call it should open up the app and handover the actual speaking/voice functionality to the app.
Note that because I do not have a VOIP server, I don't have any VOIP links of sorts.
Would this be possible? Or is this an incorrect use case for CallKit?