Search Results for

    Show / Hide Table of Contents

    Class TextureBase.InitData

    The texture data initialization container.

    Inheritance
    System.Object
    TextureBase.InitData
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class InitData : ValueType

    Fields

    ArraySize

    The array size (slices count).

    Declaration
    public int ArraySize
    Field Value
    System.Int32

    Format

    The format of the pixels.

    Declaration
    public PixelFormat Format
    Field Value
    PixelFormat

    GenerateMips

    If checked, the engine will generate automatic-mips based on the latest provided mip.

    Declaration
    public bool GenerateMips
    Field Value
    System.Boolean

    GenerateMipsLinear

    If checked, the generated mips will use linear filter, otherwise it will use point filter. Linear filter is supported only for formats compatible with Color32.

    Declaration
    public bool GenerateMipsLinear
    Field Value
    System.Boolean

    Height

    The height (in pixels).

    Declaration
    public int Height
    Field Value
    System.Int32

    Mips

    The mips levels data.

    Declaration
    public TextureBase.InitData.MipData[] Mips
    Field Value
    TextureBase.InitData.MipData[]

    Width

    The width (in pixels).

    Declaration
    public int Width
    Field Value
    System.Int32

    Properties

    IsValid

    Returns true if init data is valid.

    Declaration
    public bool IsValid { get; }
    Property Value
    System.Boolean

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat