Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
csinkers committed Oct 27, 2024
1 parent b474705 commit 5710171
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Game.Veldrid/Diag/TextureViewerRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ namespace UAlbion.Game.Veldrid.Diag;

public class TextureViewerRenderer : Component, ICameraProvider
{
readonly List<IRenderable> _renderables = new();
readonly SimpleFramebuffer _fb;
readonly CommandListHolder _cl;
readonly FenceHolder _fence;
readonly BatchManager<SpriteKey, SpriteInfo> _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;

Expand Down Expand Up @@ -58,19 +71,6 @@ public ITextureHolder Palette
}
}

readonly List<IRenderable> _renderables = new();
readonly SimpleFramebuffer _fb;
readonly CommandListHolder _cl;
readonly FenceHolder _fence;
readonly BatchManager<SpriteKey, SpriteInfo> _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)
Expand Down

0 comments on commit 5710171

Please sign in to comment.