using System.Collections.Generic;
namespace VRMShaders
{
///
/// TextureImportParam の集合を Unique な集合にする。
///
public sealed class TextureDescriptorSet
{
private readonly Dictionary _texDescDict = new Dictionary();
public void Add(TextureDescriptor texDesc)
{
if (_texDescDict.ContainsKey(texDesc.SubAssetKey)) return;
_texDescDict.Add(texDesc.SubAssetKey, texDesc);
}
public IEnumerable GetEnumerable()
{
foreach (var kv in _texDescDict)
{
yield return kv.Value;
}
}
}
}