Questions tagged [metal]
For questions about the Metal graphics/compute API.
26 questions
0 votes
0 answers
61 views
Single vs Multiple Command Buffers for Render to Texture in Metal: Which is Better?
When should you use single command buffer vs multiple command buffers for Render to Texture (RTT) in Metal? I am implementing a Render to Texture (RTT) technique in Metal, and I’ve come across two ...
1 vote
1 answer
1k views
Is it possible to fill in Stencil Buffer programmatically via fragment shader?
I've never worked with stencil buffers, but I'm researching if it is the right tool for my task. Basically I don't understand yet if stencil buffer can only be filled in by some hardcoded rules during ...
0 votes
0 answers
69 views
Raytracing Diffuse Function not Working as Expected
I am trying to write a raytracing renderer using compute shaders in Metal. My implementation is based off of Peter Shirley's Raytracing in One Weekend: https://raytracing.github.io/books/...
0 votes
0 answers
80 views
Why is my texture stretched from 1 row of pixels? Metal/Swift
I have the following code below, and it generates the following render. I am using a texture test image, and it looks like its just taking the bottom row of pixels of that image and repeating then. It ...
1 vote
0 answers
442 views
Is OpenGL to Metal translation layer plausible?
I am not sure if I understood it correctly, but OpenGL is high-level like Java and Metal is low-level like Assembly, aren't they? Apple seems to have abandoned OpenGL in favour of Metal, but there ...
-1 votes
1 answer
183 views
When do people need to work directly with a graphical API (eg: Direct3D) instead of using already made software?
I had this doubt in my head for several months and have been unable to find an answer anywhere on internet. I know what OpenGL, DirectX, Vulkan, Metal, etc... are, I already know what they are used ...
2 votes
2 answers
3k views
FXAA vs MSAA on modern hardware
looking for suggestion whether it is worth implementing a post process FXAA pass on modern mobile GPU's (mainly looking at apple A Series chip), or should i simply use the MSAA. Did a basic test with ...
2 votes
1 answer
1k views
How to capture frames in a MacOS MTKView for recording to a video
I have created a 3D model of a local outdoor performance space and I have an app that uses Metal on MacOS 10.14.2 to display the model. I want to create an animation by flying the camera around the ...