Why is the triangle being rendered with rough edges and not smooth edges? Metal, Swift, Xcode
问题 I am using this code to render the "Hello Triangle" triangle. On my iPhone, though, the triangle has very rough edges, not smooth edges, like in the example. import UIKit import Metal import MetalKit import simd class MBEMetalView: UIView { // // // // // MAIN // // // // // var metalDevice: MTLDevice! = nil var metalLayer: CAMetalLayer! = nil var commandQueue: MTLCommandQueue! = nil var vertexBuffer: MTLBuffer! = nil var pipelineState: MTLRenderPipelineState! = nil var displayLink: