Assign debug names for textures

This commit is contained in:
Soreepeong 2024-03-05 01:22:16 +09:00
parent 6a0f774625
commit 7f12e3f3da
10 changed files with 100 additions and 35 deletions

View file

@ -126,7 +126,10 @@ public class UldWrapper : IDisposable
inputSlice.CopyTo(outputSlice);
}
return this.textureManager.CreateFromRaw(RawImageSpecification.Rgba32(part.W, part.H), imageData);
return this.textureManager.CreateFromRaw(
RawImageSpecification.Rgba32(part.W, part.H),
imageData,
$"{nameof(UldWrapper)}({this.Uld?.FilePath.Path}: {part.TextureId})");
}
private (uint Id, int Width, int Height, bool HD, byte[] RgbaData)? GetTexture(string texturePath)