metalkit Questions
2
Solved
I have a kernel that outputs a texture, and it is a valid MTLTexture object. I want to save it to a png file in the working directory of my project. How should this be done?
The texture format is ...
2
Solved
These are the two the blend-mode i used in OpenGL what is the conversion to the metal in IOS
glEnable(GL_BLEND);
glBlendFuncSeparate(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA,GL_ONE,GL_ONE_MINUS_SRC_A...
1
I am trying to create an imitation of the portrait mode in Apple's native camera.
The problem is, that applying the blur effect using CIImage with respect to depth data, is too slow for the live pr...
Threequarter asked 26/3, 2018 at 13:29
1
This question somewhat builds on this post, wherein the idea is to take the ARMeshGeometry from an iOS device with LiDAR scanner, calculate the texture coordinates, and apply the sampled camera fra...
1
I am trying to learn metal and since I am already familiar with C++, I am trying to do it using metal-cpp. I am not an experienced macOS developer but I have worked in Xcode in the past in projects...
Pederson asked 22/1, 2022 at 7:58
3
Solved
How to get programmatically the maximum texture size (width and height) with metal? with openGL i can do: glGetIntegerv(GL_MAX_TEXTURE_SIZE, ...) but how to do it with Metal ?
0
So I have a view and I am computing the amplitude of an audio file and then passing it to a view to graph it and it changes in real-time. The problem is that the graph gets so laggy after few secon...
Pastime asked 23/7, 2021 at 15:42
0
I'm trying to understand color within the context of a metal fragment (or compute) shader.
My understanding is that within the context of a metal shader any color values are always linear. Whatever...
0
I am total beginner in Swift & iOS, and I am trying to:
Visualise the depth map on the phone screen, instead of the actual video recording.
Save both the RGB and depth data stream.
I am curre...
0
I am new for Metal and ARkit. I started learning about Lidar and scene’s depth data to visualize the shape. Below is the link for the point cloud sample code provided by Apple Developers.
https://d...
Zolnay asked 28/7, 2020 at 12:52
1
Solved
I have the following function in Core Image Kernel Language and I need something equivalent in Metal Shading Language, but I have problem with destCoord , unpremultiply and premultiply functions.
k...
Khichabia asked 7/7, 2020 at 21:26
2
Solved
I'm trying to better understand the synchronization requirements when working with Metal Performance Shaders and an MTLBlitCommandEncoder.
I have an MTLCommandBuffer that is set up as follows:
...
Furze asked 24/8, 2018 at 15:29
1
I know that in SceneKit, you can enable a banner on the side of the SKView to look at real time frame rates and other useful debugging information. But what about MTKView? I don't seem to find such...
2
I created a 3D object using blender and exported it as an OBJ file and I tried to render it using Metal by following this http://metalbyexample.com/modern-metal-1 tutorial. But some of my 3D object...
1
Solved
In Metal shader, What is the purpose of declaring a variable like const constant Vertex *vertexArray [[buffer(0)]] (with const constant I mean)? why constant alone is not enough? also, what is the ...
Middleclass asked 23/11, 2019 at 17:41
1
Solved
In Metal what coordinate system to use inside shader (in and out)? And when we render to texture is it the same? With the z buffer also? Are there any inconsistencies? Finally what are the differen...
Hays asked 4/11, 2019 at 22:30
2
Solved
I'm trying to port some CIFilter from this source by using metal shading language for Core Image.
I have a palette of color composed by an array of RGB struct and I want to pass them as an argument...
Loosetongued asked 2/9, 2019 at 5:6
1
Solved
I am using Xcode 11 GM Seed (11A419c). When I run Metal code on iOS 13 simulator and try to access metal device created using MTLCreateSystemDefaultDevice(), it returns nil. How is Metal supposed t...
0
I have a series of UI Images (made from incoming jpeg Data from server) that I wish to render using MTKView. Problem is it is too slow compared to GLKView. There is lot of buffering and delay when ...
Ga asked 7/9, 2019 at 13:42
2
I am very new to the concept and use of shaders in SpriteKit.
I found this tutorial on how to render a Mandelbrot fractal with a custom shader file - Fractal.fsh - attached to a Color Sprite's Cus...
Battleship asked 18/12, 2018 at 7:51
2
Solved
Whenever I build a project that includes a metal shader to an x86_64 target (iOS simulator), I get a dependency analysis warning:
warning: no rule to process file '[File Path]/Shaders.metal' of ty...
Neural asked 16/9, 2017 at 13:34
1
Solved
I'm rendering a CIImage to MTKView and the image is smaller than the drawable.
let centered = image.transformed(by: CGAffineTransform(translationX: (view.drawableSize.width - image.extent.width) ...
Sherry asked 19/2, 2019 at 19:23
1
I would like to use a compute shader to modify my vertices before they are passed to the vertex shader. I can’t find any examples or explanations of this, except that it seems to be mentioned here:...
Sweettalk asked 29/12, 2018 at 13:54
1
Solved
While trying to apply a simple vignette filter to the raw camera feed of an iPhone6, with the help of Metal and Core Image, I see a lot of lag between the frames being processed and rendered in an ...
Crease asked 22/12, 2018 at 19:39
1
I try to set render pipeline and MTKView color attachment pixel format of MTLPixelFormatRGBA16Float.
However, it seem same with MTLPixelFormatBGRA8Unorm_sRGB.
I just want to make the render color...
Physicochemical asked 13/7, 2018 at 3:54
1 Next >
© 2022 - 2025 — McMap. All rights reserved.