I’m learning metal-cpp & graphics. I’ve failed so many times learning it so I’d like to do it properly. I’m gonna study everyday for at least 30 mins. Hope I can be good at C++, graphics, and Metal graphics api!
What I learned for today:
- Chain in Metal program
- How a frame gets drawn?
Chain in Metal Program
- Device -> Command Queue -> Command Buffer -> Encoder -> Commit
How a frame gets drawn?
- Get a command buffer. This is a to-do list for the GPU.
- Start a render pass. This clears the screen to the clear color, which is red here.
- End the pass.
- Present. Show the result on screen.
- Commit. Send the to-do list to the GPU.