Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Tests/UntoldEditorTests/EditorRenderPipeLinesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,23 @@ final class EditorRenderPipeLinesTests: XCTestCase {
}

func test_EditorDefaultPipeLines_canInitializeAllPipelines() {
// This test verifies that all pipelines in EditorDefaultPipeLines can be initialized
// This test verifies that all pipelines in EditorDefaultPipeLines can be initialized.
// .lightTile is nil on devices without tile-shading support (the simulator, GPUs
// before Apple family 4, or CI's paravirtualized GPU) — that's expected engine
// behavior, not a failure, so it's excluded the same way UntoldEngine's own
// TileLightStageTests skip via `tileShadingAvailable`.
let tileShadingAvailable = renderInfo.device?.supportsFamily(.apple4) == true
&& renderInfo.device?.name.localizedCaseInsensitiveContains("paravirtual") == false

// Act
let pipelines = EditorDefaultPipeLines()
var allSuccessful = true
var failedPipelines: [String] = []

for (type, initBlock) in pipelines {
if type == .lightTile, !tileShadingAvailable {
continue
}
if let pipeline = initBlock() {
if !pipeline.success {
allSuccessful = false
Expand Down
Loading