Skip to content

Releases: yukiny0811/EasyMetalShader

v2.1.0

09 Jan 17:31
89692b6
Compare
Choose a tag to compare

Custom Metal Code

Add metal functions and constant variables to your functions by overriding customMetalCode property

@ShaderStringBuilder
override var customMetalCode: String {
    "inline float myFunc() {"
    "return 1.0;"
    "}"
}

v2.0.0

09 Jan 15:40
f5fd2fe
Compare
Choose a tag to compare

First Public Release!

Write complicated Metal codes and pipelines in very short lines of code!

class MyCompute: EMMetalComputeFunction {
    
    @EMArgument("tex") var tex: EMMetalTexture = .init(texture: nil, usage: .read_write)
    @EMArgument("intensity") var intensity: Float = 100
    
    @ShaderStringBuilder
    override var impl: String {
        "float2 floatGid = float2(gid.x, gid.y);"
        "float2 center = float2(tex.get_width() / 2, tex.get_height() / 2);"
        "float dist = distance(center, floatGid);"
        "float color = intensity / dist;"
        "tex.write(float4(color, color, color, 1), gid);"
    }
}

display

v1.1.0

06 Jan 08:09
Compare
Choose a tag to compare
flat

v1.0.7

05 Jan 21:13
Compare
Choose a tag to compare
fix svd

v1.0.6

03 Jan 20:07
Compare
Choose a tag to compare
add rasterizerData temps

v1.0.5

03 Jan 20:01
Compare
Choose a tag to compare
add svd to fragment

v1.0.4

03 Jan 19:51
Compare
Choose a tag to compare
fix svd add point_coord

v1.0.3

03 Jan 19:22
Compare
Choose a tag to compare
csv test

v1.0.2

03 Jan 19:15
Compare
Choose a tag to compare
csv test

v1.0.1

03 Jan 17:29
Compare
Choose a tag to compare
svd