我有一个 Metal 片段着色器,返回一些带 alpha 通道的透明颜色,我想在 MTKView 下面显示一个 UIView,但是我得到的唯一背景结果是黑色和“错误噪声”。 MTLRenderPipelineDescriptor: pipelineStateDescriptor.isAlp...
我正在使用MTKView来绘制Metal内容。它的配置如下: mtkView = MTKView(frame: self.view.frame, device: device) mtkView.colorPixelFormat = .bgra8Unorm mtkView.delegate =...