Example #1
0
        static IntPtr OnNewTextureEvaluator(int serialNumber)
        {
            IntPtr rc = IntPtr.Zero;

            try
            {
                RenderTexture texture = FromSerialNumber(serialNumber) as RenderTexture;
                if (texture != null)
                {
                    TextureEvaluator eval = texture.CreateEvaluator();
                    if (eval != null)
                    {
                        rc = eval.NonConstPointer();
                    }
                }
            }
            catch
            {
                rc = IntPtr.Zero;
            }
            return(rc);
        }