From 680e309f07bfb7d9a012e3f8690acf6d2dfdbd36 Mon Sep 17 00:00:00 2001 From: Andy Stanton Date: Fri, 14 Jun 2024 00:19:43 +0100 Subject: [PATCH] Add padding back in metal params --- .../SPMFractalNoise/metal/FractalNoiseMetalNoiseShader.swift | 1 + Tests/SPMFractalNoiseTests/SPMFractalNoiseTests.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/SPMFractalNoise/metal/FractalNoiseMetalNoiseShader.swift b/Sources/SPMFractalNoise/metal/FractalNoiseMetalNoiseShader.swift index 20ed85b..23cf16c 100644 --- a/Sources/SPMFractalNoise/metal/FractalNoiseMetalNoiseShader.swift +++ b/Sources/SPMFractalNoise/metal/FractalNoiseMetalNoiseShader.swift @@ -177,6 +177,7 @@ public class FractalNoiseMetalShaderLoader { float coordinateScale; FractalNoiseMetalType noiseType; + int pad0; FractalNoiseMetalTypeParameters noiseTypeParameters; }; diff --git a/Tests/SPMFractalNoiseTests/SPMFractalNoiseTests.swift b/Tests/SPMFractalNoiseTests/SPMFractalNoiseTests.swift index 5f2fece..9c99060 100644 --- a/Tests/SPMFractalNoiseTests/SPMFractalNoiseTests.swift +++ b/Tests/SPMFractalNoiseTests/SPMFractalNoiseTests.swift @@ -20,7 +20,7 @@ final class SPMFractalNoiseTests: XCTestCase { startingAmplitude: 1, startingFrequency: 0.0025, coordinateScale: 0.5, - warpIterations: 4, + warpIterations: 3, warpScale: 200) var outputString = "P2\n\(imageSize) \(imageSize)\n255\n"