Internal_Create() private method

private Internal_Create ( [ mono, int width, int height, int depth, TextureFormat format, bool mipmap, bool linear ) : void
mono [
width int
height int
depth int
format TextureFormat
mipmap bool
linear bool
return void
Ejemplo n.º 1
0
        public Texture2DArray(int width, int height, int depth, GraphicsFormat format, TextureCreationFlags flags, int mipCount)
        {
            bool flag = !base.ValidateFormat(format, FormatUsage.Sample);

            if (!flag)
            {
                Texture2DArray.ValidateIsNotCrunched(flags);
                Texture2DArray.Internal_Create(this, width, height, depth, mipCount, format, flags);
            }
        }
Ejemplo n.º 2
0
        public Texture2DArray(int width, int height, int depth, TextureFormat textureFormat, int mipCount, [DefaultValue("true")] bool linear)
        {
            bool flag = !base.ValidateFormat(textureFormat);

            if (!flag)
            {
                GraphicsFormat       graphicsFormat       = GraphicsFormatUtility.GetGraphicsFormat(textureFormat, !linear);
                TextureCreationFlags textureCreationFlags = (mipCount != 1) ? TextureCreationFlags.MipChain : TextureCreationFlags.None;
                bool flag2 = GraphicsFormatUtility.IsCrunchFormat(textureFormat);
                if (flag2)
                {
                    textureCreationFlags |= TextureCreationFlags.Crunch;
                }
                Texture2DArray.ValidateIsNotCrunched(textureCreationFlags);
                Texture2DArray.Internal_Create(this, width, height, depth, mipCount, graphicsFormat, textureCreationFlags);
            }
        }
Ejemplo n.º 3
0
 public Texture2DArray(int width, int height, int depth, TextureFormat format, bool mipmap, [DefaultValue("false")] bool linear)
 {
     Texture2DArray.Internal_Create(this, width, height, depth, format, mipmap, linear);
 }
Ejemplo n.º 4
0
 public Texture2DArray(int width, int height, int depth, TextureFormat format, bool mipmap)
 {
     Texture2DArray.Internal_Create(this, width, height, depth, format, mipmap, false);
 }