Various improvements

This commit is contained in:
Ilya Laktyushin
2024-02-29 01:36:56 +04:00
parent 5ce85e7b75
commit 64eaaae4fd
13 changed files with 474 additions and 62 deletions

View File

@@ -42,6 +42,13 @@ final class UniversalTextureSource: TextureSource {
)
}
var mainImage: UIImage? {
if let mainInput = self.mainInputContext?.input, case let .image(image) = mainInput {
return image
}
return nil
}
func setMainInput(_ input: Input) {
guard let renderTarget = self.renderTarget else {
return