mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-23 02:25:12 +00:00
788aec511f
* Limit Custom Anisotropic Filtering to only fully mipmapped textures
There's a major flaw with the anisotropic filtering setting that causes @GamerzHell9137 to report graphical bugs that otherwise wouldn't be there, because he just won't set it to Auto. This should fix those issues, hopefully.
These bugs are generally because anisotropic filtering is enabled on something that it shouldn't be, such as a post process filter or some data texture. This PR maintains two host samplers when custom AF is enabled, and only uses the forced AF one when the texture is 2d and fully mipmapped (goes down to 1x1). This is because game textures are the ideal target for this filtering, and they are typically fully mipmapped, unlike things like screen render targets which usually have 1 or just a few levels.
This also only enables AF on mipmapped samplers where the filtering is bilinear or trilinear. This should be self explanatory.
This PR also allows the changing of Anisotropic Filtering at runtime, and you can immediately see the changes. All samplers are flushed from the cache if the setting changes, causing them to be recreated with the new custom AF value. This brings it in line with our resolution scale. 😌
* Expected minimum mip count for large textures rather than all, address feedback
* Use Target rather than Info.Target
* Retrigger build?
* Fix rebase
|
||
---|---|---|
.. | ||
AutoDeleteCache.cs | ||
FormatInfo.cs | ||
FormatTable.cs | ||
ITextureDescriptor.cs | ||
Pool.cs | ||
ReductionFilter.cs | ||
Sampler.cs | ||
SamplerDescriptor.cs | ||
SamplerMinFilter.cs | ||
SamplerMipFilter.cs | ||
SamplerPool.cs | ||
Texture.cs | ||
TextureBindingInfo.cs | ||
TextureBindingsManager.cs | ||
TextureCache.cs | ||
TextureCompatibility.cs | ||
TextureComponent.cs | ||
TextureDependency.cs | ||
TextureDescriptor.cs | ||
TextureDescriptorType.cs | ||
TextureGroup.cs | ||
TextureGroupHandle.cs | ||
TextureInfo.cs | ||
TextureManager.cs | ||
TextureMatchQuality.cs | ||
TextureMsaaMode.cs | ||
TexturePool.cs | ||
TexturePoolCache.cs | ||
TextureScaleMode.cs | ||
TextureSearchFlags.cs | ||
TextureTarget.cs | ||
TextureViewCompatibility.cs |