Пример #1
0
        public static RenderTarget GetTemporary(
            CommandBuffer cmd,
            int width,
            int height,
            int depthBuffer                   = 0,
            FilterMode filterMode             = FilterMode.Bilinear,
            RenderTextureFormat textureFormat = RenderTextureFormat.Default)
        {
            var id = IdentifierPool.Get();

            cmd.GetTemporaryRT(id, width, height, depthBuffer, filterMode, textureFormat);
            return(FromExist(id, width, height, depthBuffer, filterMode, textureFormat));
        }