mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 22:09:53 -05:00
remove IDisposableResourceList
* UnityEngine.Object => UnityEngine.Texture2D
This commit is contained in:
parent
b1825e8968
commit
6d42ba01e3
|
|
@ -1,9 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace VRMShaders
|
||||
{
|
||||
public interface IDisposableResourceList : IDisposable
|
||||
{
|
||||
public void PushDisposable(UnityEngine.Object disposable);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 199f81cd0c31d644ca19fb747ea89584
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -8,7 +8,7 @@ namespace VRMShaders
|
|||
///
|
||||
/// glTF 拡張で Texture の用途を増やす必要がある場合は、この interface を継承して実装すればよい。
|
||||
/// </summary>
|
||||
public interface ITextureExporter: IDisposableResourceList
|
||||
public interface ITextureExporter: IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// 指定の Texture を、 sRGB 色空間の値を持つ Texture に出力するように指示する。
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace VRMShaders
|
|||
{
|
||||
private readonly ITextureSerializer _textureSerializer;
|
||||
private readonly List<TextureExportParam> _exportingList = new List<TextureExportParam>();
|
||||
private readonly List<UnityEngine.Object> _disposables = new List<UnityEngine.Object>();
|
||||
private readonly List<UnityEngine.Texture2D> _disposables = new List<UnityEngine.Texture2D>();
|
||||
|
||||
public TextureExporter(ITextureSerializer textureSerializer)
|
||||
{
|
||||
|
|
@ -33,7 +33,8 @@ namespace VRMShaders
|
|||
}
|
||||
}
|
||||
}
|
||||
public void PushDisposable(UnityEngine.Object disposable)
|
||||
|
||||
public void PushDisposable(UnityEngine.Texture2D disposable)
|
||||
{
|
||||
_disposables.Add(disposable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user