Ryujinx/src/Ryujinx.Common
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
..
Collections Implement host tracked memory manager mode (#6356) 2024-03-26 23:33:24 -03:00
Configuration Handle exceptions when checking user data directory for symlink (#6304) 2024-02-12 00:10:21 +01:00
Extensions Audio rendering: reduce memory allocations (#6604) 2024-04-07 18:07:32 -03:00
GraphicsDriver editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Logging Infra: Capitalisation Consistency (#6296) 2024-02-11 03:09:18 +01:00
Memory Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
Pools editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
PreciseSleep editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
SystemInterop editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Utilities Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
AsyncWorkQueue.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Hash128.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
PerformanceCounter.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
ReactiveObject.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
ReferenceEqualityComparer.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
ReleaseInformation.cs Make config filename changable for releases & Log to Ryujinx directory if application directory is not writable (#4707) 2024-01-29 19:58:18 +01:00
Ryujinx.Common.csproj Migrate to .NET 8 (#5887) 2023-11-15 17:41:31 +01:00
XXHash128.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00