Ryujinx/src/Ryujinx.Graphics.Gpu/Image
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
..
AutoDeleteCache.cs Add support for large sampler arrays on Vulkan (#6489) 2024-04-07 18:25:55 -03:00
FormatInfo.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
FormatTable.cs Change packed aliasing formats to UInt (#6358) 2024-02-24 19:02:20 -03:00
ITextureDescriptor.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Pool.cs Add support for large sampler arrays on Vulkan (#6489) 2024-04-07 18:25:55 -03:00
PoolCache.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
ReductionFilter.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
Sampler.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SamplerDescriptor.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SamplerMinFilter.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SamplerMipFilter.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SamplerPool.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SamplerPoolCache.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
Texture.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
TextureBindingInfo.cs Add support for large sampler arrays on Vulkan (#6489) 2024-04-07 18:25:55 -03:00
TextureBindingsArrayCache.cs Use ResScaleUnsupported flag for texture arrays (#6626) 2024-04-09 14:24:46 -03:00
TextureBindingsManager.cs Add support for large sampler arrays on Vulkan (#6489) 2024-04-07 18:25:55 -03:00
TextureCache.cs Fix missing data for new copy dependency textures with mismatching size (#6161) 2024-01-22 17:42:26 -03:00
TextureCompatibility.cs Fast D32S8 2D depth texture copy (#6636) 2024-04-09 14:03:55 -03:00
TextureComponent.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureDependency.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
TextureDescriptor.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureDescriptorType.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureGroup.cs Texture loading: reduce memory allocations (#6623) 2024-04-14 17:06:14 -03:00
TextureGroupHandle.cs Stop clearing Modified flag on DiscardData (#6591) 2024-04-03 21:30:46 -03:00
TextureInfo.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureManager.cs GPU: Rebind RTs if scale changes when binding textures (#6493) 2024-03-14 19:59:09 -03:00
TextureMatchQuality.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
TextureMsaaMode.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TexturePool.cs Enable copy dependency between RGBA8 and RGBA32 formats (#5943) 2023-11-19 15:27:34 -03:00
TexturePoolCache.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureScaleMode.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
TextureSearchFlags.cs GPU: Discard data when getting texture before full clear (#5719) 2023-09-25 23:07:03 +02:00
TextureTarget.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureViewCompatibility.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00