Various improvements

This commit is contained in:
Ilya Laktyushin
2025-11-07 14:13:09 +04:00
parent a05ef5e022
commit 22945ebb31
22 changed files with 662 additions and 363 deletions

View File

@@ -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?