I'm trying to understand the MPSGraph api. Why does the following code failing to change the value of var after the second run call? Output: ...
I'm trying to understand the MPSGraph api. Why does the following code failing to change the value of var after the second run call? Output: ...
I've seen a lot of other's online tutorial that are able to achieve 0.0X seconds mark on filtering an image. Meanwhile my code here took 1.09 seconds ...
What is the fastest way we can count how many transparent pixels exist in CIImage/UIImage? For example: My first thought, if we speak about effici ...
In an application I'm working on that uses a traditional Metal rendering loop, I periodically need to copy a lot of image data from IOSurfaces to MTLT ...
I'm trying to run a Metal compute shader on an array of arrays. I thought that because we use pointers to provide arrays to the shader, the logical so ...
Let's say I have a matrix, and I want to compute sin() on all elements. How do I do that with metal performance shaders? Do I write some new kernel ...
I am particularly interested in matrix multiplication using Metal Performance Shaders, but answers about other frameworks are also fine. Matrix multi ...
I am trying to generate some random integer data for my app with the GPU using MPSMatrixRandom, and I have two questions. What is the difference b ...
how can I calculate mean and variance value of an image with 16 channels using Metal ? I want to calculate mean and variance value of different chann ...
I have a Metal shader that processes an iPad Pro video frame to generate a (non-displayed) RGBA32Float image in a color attachment. That texture is th ...
I'm working on GPU algorithm which does heavy math calculations, mostly related to matrices and vectors. Although I have good numbers in terms of proc ...
I've got a custom CIFilter, implemented using a subclass of CIImageProcessorKernel. The kernel itself is very simple: This works fine, in that it p ...
Is there any public document that clearly states CoreML's strategy for GPU device placement when running inference models on macOS? How does it decide ...
I'm trying to do histogram equalization using MPSImageHistogramEqualization on iOS but it ends up throwin an assertion I do not understand. Here is my ...
I am drawing in an MTKView using The thing is I don't if it is possible to set loadAction and clear color of this render pass descriptor. Is the d ...
I am trying to write a Metal compute shader for converting from RGB to YUV, but am getting build errors. The last line, i.e. write to textureCbCr t ...
Within our iOS app, we are using custom filters using Metal (CIKernel/CIColorKernel wrappers). Let's assume we have a 4K video and a custom video com ...
What happens if MPSCNNConvolutionDataSource protocol's load method return false? Will system throw error or the convolution layer just fails silently? ...
I created a custom CIKernel in Metal. This is useful because it is close to real-time. I am avoiding any cgcontext or cicontext that might lag in real ...
I am trying to use MPSImageIntegral to calculate the sum of some elements in an MTLTexture. This is what I'm doing: std::vector<float> integral ...