mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -21,19 +21,6 @@ public final class VideoPixelBuffer {
|
||||
}
|
||||
}
|
||||
|
||||
final class RenderingContext {
|
||||
let device: MTLDevice
|
||||
let commandBuffer: MTLCommandBuffer
|
||||
|
||||
init(
|
||||
device: MTLDevice,
|
||||
commandBuffer: MTLCommandBuffer
|
||||
) {
|
||||
self.device = device
|
||||
self.commandBuffer = commandBuffer
|
||||
}
|
||||
}
|
||||
|
||||
protocol RenderPass: AnyObject {
|
||||
func setup(device: MTLDevice, library: MTLLibrary)
|
||||
func process(input: MTLTexture, device: MTLDevice, commandBuffer: MTLCommandBuffer) -> MTLTexture?
|
||||
|
||||
Reference in New Issue
Block a user