Skip to content

delneg/fable-raytracer-ios-net6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fable Rust Raytracer - iOS version

Originally made by @ncave (https://github.com/ncave/fable-raytracer), port to iOS by @delneg

Pre-requisites

  • Rust, both stable and nightly
  • arch64-apple-ios and x86_64-apple-ios toolchains
  • .NET 6
  • iOS workload for .NET (sudo dotnet workload install ios )

How to launch

cd FableRustRaytracerNet6iOS/rust-src/
./build-rust.sh 
cd ..
dotnet run

Notable points

  • Zero-copy via CGDataProvider(IntPtr memoryBlock, int size) overload
  • Creates animated images in parallel using F# Async
  • Uses DLL import with Rust static lib
  • Uses Rust from F# !

Preview

gif

About

Fable Rust demo by @ncave adapted to iOS in F#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published