Code Monkey home page Code Monkey logo

metalpetal's Introduction

MetalPetal

An image processing framework based on Metal.

MetalPetal is still in its early phase and isn't ready for day-to-day usage.

Design

Goals

  • Easy to use

  • Performance

  • Support MPS (Metal Performance Shaders)

  • Support both render and compute pipeline

  • Swifty

  • Extensibility

  • Working with CoreImage/GPUImage

Key Components

MTIContext

Provides CommandQueue/TextureLoader/CVMetalTextureCache as well as Texture/RenderPipelineState/Function cache for rendering.

It also provides an evaluation context for MTIImages.

MTIImage

A recipe/promise of a MTLTexture.

MTIFilter

A MTIImage builder.

MTIKernel

The processing routine for MTIFilter. MTIKernel is responsible for creating the cooresponding render/compute pipeline state for the filter, and building the recipe/promise for a MTIImage.

Concurrency Considerations

MTIImage is designed to be immutable, so you can use a MTIImage in multiple threads.

However, MTIFilter objects are mutable and thus cannot be shared safely among threads.

MTIContext contains a lot of states and caches thus cannot be shared safely among threads currently.

Install

We do not recommend you to use MetalPetal in your project right now.

However if you'd like to give it a try, you can use CocoaPods to install the lastest version.

use_frameworks!

pod 'MetalPetal', :git => 'https://github.com/MetalPetal/MetalPetal.git'

# Swift extensions (optional).
pod 'MetalPetal/Swift', :git => 'https://github.com/MetalPetal/MetalPetal.git'

Roadmap

We're going to release an alpha version of MetalPetal in Augest 2017 (hopefully).

You can follow our progress on the "Project" page. https://github.com/MetalPetal/MetalPetal/projects/1

Contribute

Thank you for considering contributing to MetalPetal. Please read our Contributing Guidelines.

metalpetal's People

Contributors

cysgit avatar tracyjichuan avatar yuao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.