Skip to content

Commit a564315

Browse files
authored
Merge pull request #2 from eugenebokhan/alloy16
update for new alloy [make release]
2 parents 674ccf0 + 6ecadf9 commit a564315

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Sources/Encoders/EuclideanDistance.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ final class EuclideanDistance {
7474
let blockSize = BlockSize(width: blockSizeWidth,
7575
height: blockSizeHeight)
7676

77-
encoder.set(textures: [textureOne,
78-
textureTwo])
79-
encoder.set(blockSize, at: 0)
80-
encoder.set(threshold, at: 1)
77+
encoder.setTextures(textureOne,
78+
textureTwo)
79+
encoder.setValue(blockSize, at: 0)
80+
encoder.setValue(threshold, at: 1)
8181
encoder.setBuffer(resultBuffer,
8282
offset: 0,
8383
index: 2)

Sources/SnapshotTestCase.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ open class SnapshotTestCase: XCTestCase {
291291
threshold: configuration.comparisonPolicy.threshold,
292292
resultBuffer: distanceResultBuffer,
293293
in: commandBuffer)
294-
self.textureDifference(sourceTextureOne: texture,
295-
sourceTextureTwo: referenceTexture,
296-
destinationTexture: differenceTexture,
294+
self.textureDifference(sourceOne: texture,
295+
sourceTwo: referenceTexture,
296+
destination: differenceTexture,
297297
color: configuration.diffHighlightColor,
298298
threshold: configuration.comparisonPolicy.threshold,
299299
in: commandBuffer)

SwiftSnapshotTesting.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SwiftSnapshotTesting"
3-
s.version = "0.1.3"
3+
s.version = "0.1.4"
44

55
s.summary = "Swift Snapshot Testing"
66
s.homepage = "https://github.com/eugenebokhan/SwiftSnapshotTesting"
@@ -24,15 +24,15 @@ Pod::Spec.new do |s|
2424
device.source_files = "Sources/**/*.{swift,metal,h}"
2525
device.private_header_files = "Sources/**/*.{h}"
2626
device.dependency "ResourcesBridge", "~> 0.0.1"
27-
device.dependency "Alloy/Shaders", "~> 0.14.0"
27+
device.dependency "Alloy/Shaders", "~> 0.16.0"
2828
device.dependency "DeviceKit"
2929
device.frameworks = "XCTest","UIKit","Foundation","QuartzCore"
3030
end
3131

3232
s.subspec 'Simulator' do |simulator|
3333
simulator.source_files = "Sources/**/*.{swift,metal,h}"
3434
simulator.private_header_files = "Sources/**/*.{h}"
35-
simulator.dependency "Alloy/Shaders", "~> 0.14.0"
35+
simulator.dependency "Alloy/Shaders", "~> 0.16.0"
3636
simulator.dependency "DeviceKit"
3737
simulator.frameworks = "XCTest","UIKit","Foundation","QuartzCore"
3838
end

0 commit comments

Comments
 (0)