swift: Linux Support

This commit is contained in:
2025-06-16 07:14:26 +10:00
parent fbce9754d7
commit 340448cf4c
12 changed files with 53 additions and 43 deletions

View File

@@ -72,7 +72,7 @@ struct Lesson8: AppDelegate
var idxBuffer: OpaquePointer? = nil
var samplers = [OpaquePointer?](repeating: nil, count: 3)
var texture: OpaquePointer? = nil
var projection: matrix_float4x4 = .init(1.0)
var projection: simd_float4x4 = .init(1.0)
struct Light { let ambient: SIMD4<Float>, diffuse: SIMD4<Float>, position: SIMD4<Float> }