Skip to content

Commit

Permalink
feat: transparent render target
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulghost authored Jul 4, 2024
1 parent 4508068 commit db11f29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/ColorfulX/MetalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import MetalKit
metalLayer.device = metalDevice
metalLayer.pixelFormat = .bgra8Unorm
metalLayer.framebufferOnly = false
metalLayer.isOpaque = false
self.metalLayer = metalLayer

super.init(frame: .zero)
Expand Down Expand Up @@ -222,6 +223,7 @@ import MetalKit
metalLayer.device = metalDevice
metalLayer.pixelFormat = .bgra8Unorm
metalLayer.framebufferOnly = false
metalLayer.isOpaque = false
self.metalLayer = metalLayer

super.init(frame: .zero)
Expand Down

0 comments on commit db11f29

Please sign in to comment.