UnityEngine.SparseTexture.Internal_Create C# (CSharp) Method

Internal_Create() private method

private Internal_Create ( [ mono, int width, int height, TextureFormat format, int mipCount, bool linear ) : void
mono [
width int
height int
format TextureFormat
mipCount int
linear bool
return void
        private static extern void Internal_Create([Writable] SparseTexture mono, int width, int height, TextureFormat format, int mipCount, bool linear);
        /// <summary>

Usage Example

コード例 #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);
                }
            }
        }
All Usage Examples Of UnityEngine.SparseTexture::Internal_Create