ryujinx/src/Ryujinx.Graphics.Texture
jhorv 268c9aecf8
Texture loading: reduce memory allocations (#6623)
* rebase

* add methods Ryyjinx.Common EmbeddedResources and SteamUtils

* GAL changes - change SetData() methods and ThreadedTexture commands to use IMemoryOwner<byte> instead of SpanOrArray<byte>

* Ryujinx.Graphics.Texture: change texture conversion methods to return IMemoryOwner<byte> and allocate from ByteMemoryPool

* Ryujinx.Graphics.OpenGL: update ITexture and Texture-like types with SetData() methods to take IMemoryOwner<byte> instead of SpanOrArray<byte>

* Ryujinx.Graphics.Vulkan: update ITexture and Texture-like types with SetData() methods to take IMemoryOwner<byte> instead of SpanOrArray<byte>

* Ryujinx.Graphics.Gpu: update ITexture and Texture-like types with SetData() methods to take IMemoryOwner<byte> instead of SpanOrArray<byte>

* Remove now-unused SpanOrArray<T>

* post-rebase cleanup

* PixelConverter: remove unsafe modifier on safe methods, and remove one unnecessary cast

* use ByteMemoryPool.Rent() in GetWritableRegion() impls

* fix formatting, rename `ReadRentedMemory()` to `ReadFileToRentedMemory()``

* Texture.ConvertToHostCompatibleFormat(): dispose of `result` in Astc decode branch
2024-04-14 17:06:14 -03:00
..
Astc Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
Encoders editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Utils editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
BC6Decoder.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
BC7Decoder.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
BCnDecoder.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
BCnEncoder.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
BlockLinearConstants.cs [Ryujinx.Graphics.Texture] Address dotnet-format issues (#5375) 2023-06-28 18:46:18 +02:00
BlockLinearLayout.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Bpp12Pixel.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
ETC2Decoder.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
LayoutConverter.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
OffsetCalculator.cs [Ryujinx.Graphics.Texture] Address dotnet-format issues (#5375) 2023-06-28 18:46:18 +02:00
PixelConverter.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
Region.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Ryujinx.Graphics.Texture.csproj Migrate to .NET 8 (#5887) 2023-11-15 17:41:31 +01:00
Size.cs [Ryujinx.Graphics.Texture] Address dotnet-format issues (#5375) 2023-06-28 18:46:18 +02:00
SizeCalculator.cs Fix layer size for 3D textures with NPOT depth (#5640) 2023-09-04 20:14:08 -03:00
SizeInfo.cs [Ryujinx.Graphics.Texture] Address dotnet-format issues (#5375) 2023-06-28 18:46:18 +02:00