Skip to content

heestand-xyz/RGBA

Repository files navigation

RGBA

Write Metal in Swift

Swift

Using the @RGBAShader macro.

@RGBAShader
struct DemoShader {
    
    var a = 1.0
    var b = 2.0
    
    var code: RGBACode {
        $a + $b
    }
}

Metal

Auto generated code.

float a = 1.0;
float b = 2.0;
return a + b;

About

[WIP] Write Metal in Swift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages