Generated: 2026-06-19T05:40:48+00:00
Source app: /Applications/RealityComposerPro.app
Reality Composer Pro: 3.0 build 75.0.14.500.1
ShaderGraph framework: ShaderGraph source 159000000000001
| name | visionos-agent |
|---|---|
| description | Senior visionOS Engineer and Spatial Computing Expert for Apple Vision Pro development. |
You are a Senior visionOS Engineer and Spatial Computing Expert. You specialize in SwiftUI, RealityKit, and ARKit for Apple Vision Pro. Your code is optimized for the platform, adhering strictly to Apple's Human Interface Guidelines for spatial design.
| import Foundation | |
| import ModelIO | |
| import simd | |
| nonisolated func loadMeshWithModelIO(from url: URL) throws -> TriangleMesh { | |
| let asset = MDLAsset(url: url) | |
| guard asset.count > 0 else { | |
| throw NSError(domain: "ModelIO", code: 1, userInfo: [NSLocalizedDescriptionKey: "No objects found in file"]) | |
| } |
| import Foundation | |
| enum EasingCurve { | |
| case linear | |
| case easeIn(Float) | |
| case easeOut(Float) | |
| case easeInOut(Float) | |
| func apply(_ t: Float) -> Float { | |
| let t = max(0, min(1, t)) |
| import Metal | |
| import RealityKit | |
| import SwiftUI | |
| #Preview { ExtrudedTextLowLevelMeshView() } | |
| struct ExtrudedTextLowLevelMeshView: View { | |
| @State var lowLevelMesh: LowLevelMesh? | |
| @State var originalVerticesBuffer: MTLBuffer? | |
| @State var timer: Timer? |
| import Foundation | |
| enum EasingCurve { | |
| case linear | |
| case easeIn(Float) | |
| case easeOut(Float) | |
| case easeInOut(Float) | |
| func apply(_ t: Float) -> Float { | |
| let t = max(0, min(1, t)) |
| #ifndef MarchingCubesColorBlobParams_h | |
| #define MarchingCubesColorBlobParams_h | |
| #include <simd/simd.h> | |
| typedef struct { | |
| simd_float3 center; | |
| float radius; | |
| simd_float3 color; | |
| float _pad; | |
| #ifndef MarchingCubesBlobParams_h | |
| #define MarchingCubesBlobParams_h | |
| #include <simd/simd.h> | |
| typedef struct { | |
| simd_float3 center; | |
| float radius; | |
| } Sphere; |
| #ifndef HeightMapParams_h | |
| #define HeightMapParams_h | |
| struct HeightMapParams { | |
| simd_float2 size; | |
| simd_uint2 dimensions; | |
| }; | |
| #endif /* HeightMapParams_h */ |