Releases: yukiny0811/EasyMetalShader
Releases · yukiny0811/EasyMetalShader
v2.1.0
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
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);"
}
}
v1.1.0
flat
v1.0.7
fix svd
v1.0.6
add rasterizerData temps
v1.0.5
add svd to fragment
v1.0.4
fix svd add point_coord
v1.0.3
csv test
v1.0.2
csv test
v1.0.1
svd