Camera and media editor improvements

This commit is contained in:
Ilya Laktyushin
2023-05-12 21:14:19 +04:00
96 changed files with 8029 additions and 3232 deletions

View File

@@ -210,6 +210,7 @@ final class ShutterBlobView: MTKView, MTKViewDelegate {
self.backgroundColor = .clear
self.framebufferOnly = true
self.colorPixelFormat = .bgra8Unorm
self.displayLink = SharedDisplayLinkDriver.shared.add { [weak self] in
self?.tick()
@@ -346,9 +347,10 @@ final class ShutterBlobView: MTKView, MTKViewDelegate {
renderEncoder.drawPrimitives(type: .triangle, vertexStart: 0, vertexCount: 6, instanceCount: 1)
renderEncoder.endEncoding()
commandBuffer.present(drawable)
drawable.present()
//commandBuffer.present(drawable)
commandBuffer.commit()
commandBuffer.waitUntilScheduled()
}
override func layoutSubviews() {