diff --git a/src/Game.Veldrid/Diag/TextureViewerRenderer.cs b/src/Game.Veldrid/Diag/TextureViewerRenderer.cs index 09230cd4..575a0aa0 100644 --- a/src/Game.Veldrid/Diag/TextureViewerRenderer.cs +++ b/src/Game.Veldrid/Diag/TextureViewerRenderer.cs @@ -13,6 +13,19 @@ namespace UAlbion.Game.Veldrid.Diag; public class TextureViewerRenderer : Component, ICameraProvider { + readonly List _renderables = new(); + readonly SimpleFramebuffer _fb; + readonly CommandListHolder _cl; + readonly FenceHolder _fence; + readonly BatchManager _batchManager; + readonly GlobalResourceSetProvider _globalSet; + readonly MainPassResourceProvider _passSet; + readonly OrthographicCamera _camera; + readonly Sprite _sprite; + readonly int _defaultWidth; + readonly int _defaultHeight; + int _zoom; + public uint Width => _fb?.Width ?? 1; public uint Height => _fb?.Height ?? 1; @@ -58,19 +71,6 @@ public ITextureHolder Palette } } - readonly List _renderables = new(); - readonly SimpleFramebuffer _fb; - readonly CommandListHolder _cl; - readonly FenceHolder _fence; - readonly BatchManager _batchManager; - readonly GlobalResourceSetProvider _globalSet; - readonly MainPassResourceProvider _passSet; - readonly OrthographicCamera _camera; - readonly Sprite _sprite; - readonly int _defaultWidth; - readonly int _defaultHeight; - int _zoom; - public TextureViewerRenderer(ITexture texture) { foreach (var region in texture.Regions)