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;"
"}"
}
Add metal functions and constant variables to your functions by overriding customMetalCode property
@ShaderStringBuilder
override var customMetalCode: String {
"inline float myFunc() {"
"return 1.0;"
"}"
}