Camera and editor improvements

This commit is contained in:
Ilya Laktyushin
2023-06-12 16:10:44 +04:00
parent ceaa808fad
commit fc999d8042
3 changed files with 35 additions and 10 deletions

View File

@@ -273,7 +273,7 @@ final class VideoInputPass: DefaultRenderPass {
textureDescriptor.textureType = .type2D
textureDescriptor.width = outputWidth
textureDescriptor.height = outputHeight
textureDescriptor.pixelFormat = .bgra8Unorm
textureDescriptor.pixelFormat = self.pixelFormat
textureDescriptor.storageMode = .private
textureDescriptor.usage = [.shaderRead, .shaderWrite, .renderTarget]
if let texture = device.makeTexture(descriptor: textureDescriptor) {