Texture2D can save images with a transparent background. In Texture2D, a separate alpha channel is typically used to describe the transparency of background pixels. In Metal’s fragment shader, colors and alpha values of each pixel can be obtained by sampling the texture, and they can be used for subsequent processing.
Category: Apple
In Metal Shader, you can replace the color you want to make transparent by comparing it with a literal color using the texture2d and its sampling coordinates passed to the fragment shader.
AVCaptureMovieFileOutput and AVAssetWriter are both APIs for recording video on iOS / Mac devices, are both int AVFoundation, but they have some differences.
My Mac is a MacBook M1Max, and I have encountered a sporadic problem in the past few months. The headphone volume is expected, but the built-in speaker volume is very low, and it is entirely inaudible. After restarting the Mac, it will be completely back to normal.
Lately, Apple announced the M1 chip, releasing the M1, or Arm, versions of the three machines, the Macbook Air, Macbook PRO 13, and Mac mini. Apple called the M1 chip Apple Silicon.
In fact, as developers, we knew about this much earlier. Then we also got our hands on the DTK to test the compatibility of the ARM CPU for Macs and Mac OS and our own Mac software.
This year Apple’s iPhone 12 flagship model comes with LIDAR. Many people have actually heard of LIDAR, and Apple’s press conference also mentioned it, but I actually found that many people don’t understand what it’s all about.