Skip to content
Merged
Show file tree
Hide file tree
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
72 changes: 0 additions & 72 deletions BuildChecks/MetalKernelsStaleCheck/checkStaleKernels.swift

This file was deleted.

8 changes: 1 addition & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ let package = Package(
exclude: ["LICENSE.md", "README.md"],
publicHeadersPath: "include"
),
.plugin(
name: "MetalKernelsStaleCheck",
capability: .buildTool(),
path: "BuildChecks/MetalKernelsStaleCheck"
),
.target(
name: "UntoldEngine",
dependencies: ["CShaderTypes"],
Expand Down Expand Up @@ -135,8 +130,7 @@ let package = Package(

// iOS UI stack (only if some targets import UIKit)
.linkedFramework("UIKit", .when(platforms: [.iOS])),
],
plugins: ["MetalKernelsStaleCheck"]
]
),

// The cook's mesh work. A module of its own so that UntoldEngine does not import
Expand Down

This file was deleted.

9 changes: 0 additions & 9 deletions buildkernels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,3 @@ xcrun -sdk xros metallib "$airDir/UntoldEngineKernels-xros.air" -o UntoldEngineK
xcrun -sdk xrsimulator metal -mtargetos=xros$XROS_MIN-simulator UntoldEngineKernels.metal -c -o "$airDir/UntoldEngineKernels-xrossim.air"

xcrun -sdk xrsimulator metallib "$airDir/UntoldEngineKernels-xrossim.air" -o UntoldEngineKernels-xrossim.metallib

# Stamp the source hash MetalKernelsStaleCheck compares against, so `swift build` can tell
# these metallibs are current. Covers UntoldEngineKernels.metal plus every file it #includes
# from ../Shaders (sorted, to match the plugin's directory listing order) since editing any
# of those changes the compiled kernel too. Commit this file along with the rebuilt metallibs.
{
cat UntoldEngineKernels.metal
find ../Shaders -maxdepth 1 -name "*.metal" -print0 | LC_ALL=C sort -z | xargs -0 cat
} | shasum -a 256 | awk '{print $1}' > .metalsource.sha256
Loading