0
0
mirror of https://github.com/Ishan09811/pine.git synced 2025-04-29 08:25:10 +00:00
This commit is contained in:
Ishan09811 2025-01-04 00:01:44 +05:30 committed by GitHub
parent 0dfc4cbce3
commit b71d604f08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ namespace skyline {
isInternetEnabled = ktSettings.GetBool("isInternetEnabled");
forceTripleBuffering = ktSettings.GetBool("forceTripleBuffering");
vsyncMode = ktSettings.GetInt<int>("vsyncMode");
anisotropicFilter = ktSettings.GetInt<int>("anisotropic_filter");
anisotropicFilter = ktSettings.GetInt<float>("anisotropic_filter");
gpuDriver = ktSettings.GetString("gpuDriver");
gpuDriverLibraryName = ktSettings.GetString("gpuDriverLibraryName");
executorSlotCountScale = ktSettings.GetInt<u32>("executorSlotCountScale");

View File

@ -72,7 +72,7 @@ namespace skyline {
Setting<bool> forceTripleBuffering; //!< If the presentation engine should always triple buffer even if the swapchain supports double buffering
Setting<int> vsyncMode;
Setting<bool> disableShaderCache; //!< Prevents cached shaders from being loaded and disables caching of new shaders
Setting<int> anisotropicFilter;
Setting<float> anisotropicFilter;
// CPU
Setting<bool> enableJitFastmem;

View File

@ -172,7 +172,7 @@ namespace skyline::gpu::interconnect {
return vkMode;
}};
auto maxAnisotropy{static_cast<float>(ctx.gpu.getState().settings->anisotropicFilter)};
auto maxAnisotropy{*ctx.gpu.getState().settings->anisotropicFilter};
if (maxAnisotropy == 1.0f) maxAnisotropy = texSampler.MaxAnisotropy();
vk::StructureChain<vk::SamplerCreateInfo, vk::SamplerReductionModeCreateInfoEXT, vk::SamplerCustomBorderColorCreateInfoEXT> samplerInfo{
vk::SamplerCreateInfo{