public static YUVtoRGBProgram GetInstance() => instance ?? (instance = new YUVtoRGBProgram());
public void Apply(int pass) { PlatformRenderer.SetBlendState(blendState); PlatformRenderer.SetShaderProgram(YUVtoRGBProgram.GetInstance()); PlatformRenderer.SetShaderParams(shaderParamsArray); }