// ------------------------------------------------------------------------
// Copyright (c) 2021-2026, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ------------------------------------------------------------------------
namespace Engine.Core.Abstraction
{
/// Decode a file into CPU-side data without creating graphics objects.
public interface ITextureLoader
{
///
/// Load texture data. The caller disposes the returned source after uploading it.
/// This operation may run off the graphics thread; loaders hold no per-image state.
///
/// Owned file bytes, which must not be modified after loading.
/// Legacy material classification, independent of sampling policy.
ITextureDataSource Load(byte[] data, out bool hasAlphaChannel);
}
}