Questions tagged [metal]

Metal is Apple's proprietary hardware-accelerated graphics API for macOS, iOS and tvOS.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

One DeviceContext per Material?

In D3D11, we have a DeviceContext, which represents the Renderpipeline. In Metal, we have a RenderPipelineState. In Metal, I cache the RenderPipelineState, it is the abstraction of a "material". Is ...
0
votes
0answers
23 views

Per-frame buffer management in DirectX 11

My buffer management when using the Metal API had me use a per-frame buffer cache to manage the buffers that were still in flight and could not be used. The Metal API is very explicit about when a ...
1
vote
1answer
89 views

How to Render two or more images on video frame in same draw call using metal

I'm new bee to graphics programming and i have an existing code base which basically takes frame from video and passes it to metal shader where effects (like colour changes) happens. Whats currently ...
1
vote
1answer
300 views

How do I get a Metal texture ID to render to it with Ogre?

I looked in the documentation, but I don't know how to get the texture ID. ...
3
votes
0answers
123 views

Are GPU drivers hand optimized for specific games using low-level APIs?

The GPU drivers often have slightly different behavior depending on game or program, which is using them. It optimizes performance, bypasses bugs and improves overall experience in popular games, ...
2
votes
2answers
76 views

How do I use delta time time-stepping in a triple-buffering scenario?

I am creating a graphics application in Metal. One of the things we are suggested to do is to use triple buffers in order to allow for the GPU and CPU to work more in parallel. Essentially instead of ...
1
vote
0answers
165 views

Using a MTLTexture as the environment map of a SCNScene

I want to set a MTLTexture object as the environment map of a scene, as it seems to be possible according to the documentation. I can set the environment map to be ...
2
votes
2answers
400 views

IOS very simple 2d engine/api rendering showdown [closed]

So after taking some time running through a course, I believe I have enough experience with referring back to the course how to make the game I wish to all apart from one thing. How to draw the game ...
1
vote
1answer
493 views

What is the shader format for Metal shaders shipped with iOS applications?

I am interested in analyzing existing shaders implemented using Apple's Metal framework. From my previous experience on other platforms with OpenGL, I have found that applications sometimes bundle ...
1
vote
1answer
2k views

How Apple Metal API distinguishes uniforms from vertices buffers?

I am not sure how metal distinguishes uniforms from vertices buffers? As far as I know code for passing uniforms in buffers are the same like for vertices: ...