When a param is a Int, use getParamValue makes unnecessary cast from Int to Dynamic, which means a lots of alloc (at least in HL target). Add getParamIntValue (similar to getParamFloatValue) to fix this.
SetParamValue for Int seems less critical and I don't know how to manage DynamicShader, so I didn't added it.
When a param is a Int, use
getParamValue
makes unnecessary cast from Int to Dynamic, which means a lots of alloc (at least in HL target). AddgetParamIntValue
(similar togetParamFloatValue
) to fix this.SetParamValue
for Int seems less critical and I don't know how to manage DynamicShader, so I didn't added it.