コード例 #1
0
        public SparseTexture(int width, int height, TextureFormat textureFormat, int mipCount, bool linear)
        {
            bool flag = !base.ValidateFormat(textureFormat);

            if (!flag)
            {
                SparseTexture.ValidateIsNotCrunched(textureFormat);
                GraphicsFormat graphicsFormat = GraphicsFormatUtility.GetGraphicsFormat(textureFormat, !linear);
                bool           flag2          = !this.ValidateSize(width, height, graphicsFormat);
                if (!flag2)
                {
                    SparseTexture.Internal_Create(this, width, height, graphicsFormat, mipCount);
                }
            }
        }