Skip to content

Commit

Permalink
swift 6 update
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenebokhan committed Dec 5, 2024
1 parent db76d9f commit a8c3042
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let package = Package(
dependencies: [
.package(
url: "https://github.com/computer-graphics-tools/simd-tools.git",
.upToNextMinor(from: "0.0.2")
.upToNextMajor(from: "0.0.3")
)
],
targets: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Metal

/// Extension to make `MTLOrigin` conform to the `Equatable` protocol.
extension MTLOrigin: Equatable {
extension MTLOrigin: @retroactive Equatable {
/// Compares two `MTLOrigin` instances for equality.
///
/// - Parameters:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Metal

/// Extension to make `MTLRegion` conform to the `Equatable` protocol.
extension MTLRegion: Equatable {
extension MTLRegion: @retroactive Equatable {
/// Compares two `MTLRegion` instances for equality.
///
/// Two `MTLRegion` instances are considered equal if they have the same origin and size.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Metal

/// Extension to make the MTLSize structure conform to the Equatable protocol.
extension MTLSize: Equatable {
extension MTLSize: @retroactive Equatable {

/// Checks if two MTLSize instances are equal.
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Metal

/// Extension to make the MTLTextureDescriptor conform to the Encodable protocol.
extension MTLTextureDescriptor: Encodable {
extension MTLTextureDescriptor: @retroactive Encodable {

/// Keys used for encoding the MTLTextureDescriptor properties.
enum CodingKey: String, Swift.CodingKey {
Expand Down

0 comments on commit a8c3042

Please sign in to comment.