Skip to content

alloverse/simd-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIMDTools

Platform Compatibility Swift Version

SIMDTools provides utility functions and extensions for working with SIMD matrices and vectors in Swift.

Overview

The simd-tools package includes:

  • Angle struct for representing angles.
  • Extensions for float3x3 and float4x4 to perform various matrix transformations.
  • SIMD2, SIMD3 and SIMD4 components permutations.
  • Utility functions such as clamp, saturate, and interpolate.

Please see the package's documentation for more detailed usage instructions.

Adding the SIMDTools as a Dependency

To use the SIMDTools package, first add it as a dependency:

let package = Package(
    // name, platforms, products, etc.
    dependencies: [
        // other dependencies
        .package(url: "https://github.com/computer-graphics-tools/simd-tools", from: "0.0.1"),
    ],
    targets: [
        // targets
    ]
)

Swift 5.9 is required in order to use the package.

Tutorials

  • Use SIMDTools in SwiftUI

    Learn how to use SIMD matrices to calculate affine transform for rotating SwiftUI views. Get started with SIMDTools by building the demo app RotateImage.

Usage

License

SIMDTools is licensed under MIT license.

About

SIMDTools provides utility functions and extensions for working with SIMD matrices and vectors in Swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 95.5%
  • Metal 4.5%