Questions tagged [ciwarpkernel]
3 questions
1
vote
1 answer
How to pass arguments to Metal CIWarpKernel?
I have a simple Metal CIWarpKernel:
float2 MyWarp(destination dest, float offset)
{
return float2(dest.coord().x + offset, dest.coord().y);
}
and:
class MyWarpFilter : CIFilter
{
var inputImage: CIImage?
var inputOffset:…

meaning-matters
- 21,929
- 10
- 82
- 142
1
vote
0 answers
Clear color in CIWarpKernel
I have a warp kernel, that I want to be able to return clear color for some coordinates, similar to a discardFragment in fragment shaders.
If I just return the coordinates that are outside the image extent it works as expected when rendered to a…

Dannie P
- 4,464
- 3
- 29
- 48
1
vote
0 answers
Pinching image on edges as a custom CIWarpKernel does not produces results as expected
I have developed a custom CIWarpKernel which is the transposition of my Numbers model design as follows:
The cell for positive y is: SIN($A2×PI()÷2)×(−COS(B$1×PI())×($A2+1)÷$W$3+SIN($A2 ×PI()÷2)) where $A2 is y, B$1 is x and $W$3 is the center…

Stéphane de Luca
- 12,745
- 9
- 57
- 95