function findTexture(item, queue)
{
    if (item._texture && item._texture instanceof Texture)
    {
        const texture = item._texture.baseTexture;

        if (queue.indexOf(texture) === -1)
        {
            queue.push(texture);
        }

        return true;
    }

    return false;
}
function findTexture(item, queue)
{
    if (item._texture && item._texture instanceof Texture)
    {
        const texture = item._texture.baseTexture;

        if (queue.indexOf(texture) === -1)
        {
            queue.push(texture);
        }

        return true;
    }

    return false;
}
function findTexture ( item , queue ) { if ( item . _texture && item . _texture instanceof Texture ) { const texture = item . _texture . baseTexture ; if ( queue . indexOf ( texture ) === - 1 ) { queue . push ( texture ) ; } return true ; } return false ; }
Built-in hook to find textures from objects.

@private
@param {PIXI.DisplayObject} item - Display object to check
@param {Array<*>} queue - Collection of items to upload
@return {boolean} if a PIXI.Texture object was found.
Built - in hook to find textures from objects .
Find a texture in the queue