pixi.js
    Preparing search index...

    Interface TextureStyleOptionsAdvanced

    The options for the texture style.

    interface TextureStyleOptions {
        _resourceId?: number;
        addressMode?: WRAP_MODE;
        addressModeU?: WRAP_MODE;
        addressModeV?: WRAP_MODE;
        addressModeW?: WRAP_MODE;
        compare?: COMPARE_FUNCTION;
        destroyed?: boolean;
        lodMaxClamp?: number;
        lodMinClamp?: number;
        magFilter?: SCALE_MODE;
        maxAnisotropy?: number;
        minFilter?: SCALE_MODE;
        mipmapFilter?: SCALE_MODE;
        scaleMode?: SCALE_MODE;
        wrapMode?: WRAP_MODE;
        destroy(): void;
        update(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _resourceId?: number
    addressMode?: WRAP_MODE

    setting this will set wrapModeU,wrapModeV and wrapModeW all at once!

    addressModeU?: WRAP_MODE

    specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.

    addressModeV?: WRAP_MODE

    specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.

    addressModeW?: WRAP_MODE

    Specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.

    When provided the sampler will be a comparison sampler with the specified COMPARE_FUNCTION. Note: Comparison samplers may use filtering, but the sampling results will be implementation-dependent and may differ from the normal filtering rules.

    destroyed?: boolean = false

    Has the style been destroyed?

    lodMaxClamp?: number

    Specifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.

    lodMinClamp?: number

    specifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.

    magFilter?: SCALE_MODE

    specifies the sampling behavior when the sample footprint is smaller than or equal to one texel.

    maxAnisotropy?: number

    Specifies the maximum anisotropy value clamp used by the sampler. Note: Most implementations support TextureStyle#maxAnisotropy values in range between 1 and 16, inclusive. The used value of TextureStyle#maxAnisotropy will be clamped to the maximum value that the platform supports.

    setting this to anything higher than 1 will set scale modes to 'linear'

    minFilter?: SCALE_MODE

    specifies the sampling behavior when the sample footprint is larger than one texel.

    mipmapFilter?: SCALE_MODE

    specifies behavior for sampling between mipmap levels.

    scaleMode?: SCALE_MODE

    setting this will set magFilter,minFilter and mipmapFilter all at once!

    wrapMode?: WRAP_MODE

    Methods

    • Destroys the style

      Returns void

    • Returns void