// SPDX-FileCopyrightText: 2025 Unity Technologies and the glTFast authors // SPDX-License-Identifier: Apache-2.0 using System; using System.Threading.Tasks; namespace GLTFast.Loading { /// /// Provides a mechanism for loading external resources from a URI /// public interface IDownloadProvider { /// /// Sends a URI request /// /// URI to request /// Object representing the request Task Request(Uri url); /// /// Sends a URI request to load a texture /// /// URI to request /// If true, resulting texture is not CPU readable (uses less memory) /// Object representing the request Task RequestTexture(Uri url, bool nonReadable); } }