[Metal] Render to Texture
버텍스 let vertexData:[Float] = [ -1.0, -1.0, 0.0, 1.0, 1.0, -1.0, 1.0, 1.0, -1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, ] 버퍼 let size = vertexData.count * MemoryLayout.size // var vertexBuffer:MTLBuffer vertexBuffer = device.makeBuffer(bytes: vertexData, length: size) vertexBuffer.label = "VertexBuffer" 렌더타겟용 텍스처 생성 렌더링에 사용할 텍스처는 MTKTextureLoader 등으로 별로 생성 let texDescriptor = MTLTextureDescriptor() t..