ryujinx-mirror/src/Ryujinx.Graphics.Gpu/Memory
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
..
Buffer.cs Separate guest/host tracking + unaligned protection (#6486) 2024-03-14 19:38:27 -03:00
BufferBounds.cs Add support for large sampler arrays on Vulkan (#6489) 2024-04-07 18:25:55 -03:00
BufferCache.cs Implement virtual buffer dependencies (#6190) 2024-02-22 11:03:07 -03:00
BufferCacheEntry.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
BufferManager.cs Add support for large sampler arrays on Vulkan (#6489) 2024-04-07 18:25:55 -03:00
BufferMigration.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
BufferModifiedRangeList.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
BufferTextureArrayBinding.cs Add support for large sampler arrays on Vulkan (#6489) 2024-04-07 18:25:55 -03:00
BufferTextureBinding.cs Implement support for multi-range buffers using Vulkan sparse mappings (#5427) 2023-12-04 20:30:19 +01:00
BufferUpdater.cs Geometry shader emulation for macOS (#5551) 2023-08-29 21:10:34 -03:00
CounterCache.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
GpuRegionHandle.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
IndexBuffer.cs Implement support for multi-range buffers using Vulkan sparse mappings (#5427) 2023-12-04 20:30:19 +01:00
MemoryManager.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
MultiRangeBuffer.cs Implement virtual buffer dependencies (#6190) 2024-02-22 11:03:07 -03:00
MultiRangeWritableBlock.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
PhysicalMemory.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
PteKind.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
ResourceKind.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SupportBufferUpdater.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
UnmapEventArgs.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
VertexBuffer.cs Implement support for multi-range buffers using Vulkan sparse mappings (#5427) 2023-12-04 20:30:19 +01:00
VirtualRangeCache.cs chore: remove repetitive words (#6500) 2024-03-16 19:49:54 +01:00