Make max anisotropy configurable (#1043)
* Make max anisotropy configurable * Move opengl command to opengl project * Add GUI option
This commit is contained in:
parent
5a52ca5071
commit
12d49c37d2
11 changed files with 108 additions and 10 deletions
|
@ -40,7 +40,11 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
float maxLod = descriptor.UnpackMaxLod();
|
||||
float mipLodBias = descriptor.UnpackMipLodBias();
|
||||
|
||||
float maxAnisotropy = descriptor.UnpackMaxAnisotropy();
|
||||
float maxRequestedAnisotropy = GraphicsConfig.MaxAnisotropy >= 0 && GraphicsConfig.MaxAnisotropy <= 16 ? GraphicsConfig.MaxAnisotropy : descriptor.UnpackMaxAnisotropy();
|
||||
float maxSupportedAnisotropy = context.Capabilities.MaxSupportedAnisotropy;
|
||||
|
||||
if (maxRequestedAnisotropy > maxSupportedAnisotropy)
|
||||
maxRequestedAnisotropy = maxSupportedAnisotropy;
|
||||
|
||||
HostSampler = context.Renderer.CreateSampler(new SamplerCreateInfo(
|
||||
minFilter,
|
||||
|
@ -54,7 +58,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
minLod,
|
||||
maxLod,
|
||||
mipLodBias,
|
||||
maxAnisotropy));
|
||||
maxRequestedAnisotropy));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue