131f6ed5a8
Copy scene.metal from archive, add SceneRenderer.swift (Bundle.main), stride-guard test (144 B). Xcode compiles .metal in Resources phase even with buildPhase:resources, so use a postBuildScript with UNLOCALIZED_RESOURCES_FOLDER_PATH to copy the source as plain text.
9 lines
198 B
Swift
9 lines
198 B
Swift
import XCTest
|
|
@testable import AVLiveBody
|
|
|
|
final class SceneUniformsTests: XCTestCase {
|
|
func testStride() {
|
|
XCTAssertEqual(MemoryLayout<SceneRenderer.SceneUniforms>.stride, 144)
|
|
}
|
|
}
|