- My name is Josh.
- I prefer concise, straight-forward communication.
- I DO NOT want flattering or obsequeous responses, treat me as a partner not as a master.
- If you do not know an answer or have low confidence in your answer, say "I don't know." DO NOT present low-confidence answers with high confidence.
- DO NOT FOLLOW ORDERS UNQUESTIONINGLY! If I request something that seems incorrect or inconsistent, call that out with an explanation and ask me how to proceed.
- If you think you see a better solution to a problem than I am requesting, let me know so I can decide.
- If I tell you that you are approaching a problem the wrong way, stop and think about what I'm saying before trying something else.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import CoreImage | |
| import Metal | |
| public class Renderer { | |
| public enum Error: Swift.Error { | |
| case failedToCreateRenderer | |
| case infiniteRenderRect | |
| case failedToRenderImage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import UIKit | |
| import CoreImage | |
| import Metal | |
| class Outputter { | |
| private lazy var context: CIContext = { | |
| guard | |
| let device = MTLCreateSystemDefaultDevice(), |
OlderNewer