public static RenderTexture CreateTexture(CCTextureSetup theSetup)
        {
            var myResult = new RenderTexture(theSetup.width, theSetup.height, theSetup.depth, theSetup.format)
            {
                name = theSetup.name,
                enableRandomWrite = theSetup.enableRandomWrite,
                filterMode        = theSetup.filterMode,
                wrapMode          = theSetup.wrapMode,
                useMipMap         = theSetup.useMipMap,
                autoGenerateMips  = theSetup.autoGenerateMips,
                dimension         = theSetup.dimension,
                volumeDepth       = theSetup.volumeDepth
            };

            myResult.Create();
            return(myResult);
        }
 public CCDoubleBufferedTexture(CCTextureSetup theSetup)
 {
     _mySetup = theSetup;
     Reset();
 }