Swiftpack.co -  narumij/simd-swizzling as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
narumij/simd-swizzling
like GLSL swizzling on simd
.package(url: "https://github.com/narumij/simd-swizzling.git", from: "0.0.0")

simd-swizzling

like GLSL swizzling on simd

(japanse)

simdの各構造体で、GLSL風のswizzlingアクセサを利用可能にするパッケージです。

使用前

let p0: SIMD3<Float> = .init(x: 1, y: 2, z: 3)
let p1: SIMD3<Float> = .init(x: p0.z, y: p0.y, z: p0.x)

使用後

import simd_swizzling

let p0: SIMD3<Float> = .init(x: 1, y: 2, z: 3)
let p1: SIMD3<Float> = p0.zyx

GitHub

link
Stars: 1
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

-
2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API