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