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
Great series of short articles introducing Apple's Metal framework.
var body: some View { | |
RealityView { content in | |
// Create the sphere entity | |
guard let gooey = try? await Entity(named: "Gooey", in: realityKitContentBundle) else { | |
fatalError("Cannot load model") | |
} | |
if let sphere = gooey.findEntity(named: "Sphere") { | |
if let modelComponent = sphere.components[ModelComponent.self] { | |
let materials = modelComponent.materials |
// | |
// ContentView.swift | |
// SphereTest | |
// | |
// | |
import SwiftUI | |
import RealityKit | |
struct ContentView: View { |
/** | |
* Simple morse code translation up to 3 levels deep with uncertainty allowance | |
* | |
* @example | |
* // returns [ 'K', 'O' ] | |
* node morsecode.js '-?-' | |
* | |
* @param {String} input Morse code string containing '-', '.' and '?' characters | |
* @returns {String[]} Array of possible value outcomes | |
* |