Great series of short articles introducing Apple's Metal framework.
- 2022-04-01: Day 1: Devices
- 2022-04-02: Day 2: Buffers
- 2022-04-03: Day 3: Commands
- 2022-04-04: Day 4: MTKView
- 2022-04-05: Day 5: Shaders
- 2022-04-06: Day 6: Pipelines
| /// A way to handle unknown enum cases semi transparently | |
| struct Raw<T>: RawRepresentable where T: RawRepresentable { | |
| let rawValue: T.RawValue | |
| private var value: T? { | |
| .init(rawValue: rawValue) | |
| } | |
| init(rawValue: T.RawValue) { | |
| self.rawValue = rawValue |
Great series of short articles introducing Apple's Metal framework.