bool CRenderBufferManager::HasScalingMethod(ESCALINGMETHOD scalingMethod) const { CRenderVideoSettings videoSettings; videoSettings.SetScalingMethod(scalingMethod); for (const auto &pools : m_pools) { for (const auto &pool : pools.pools) if (pool->IsCompatible(videoSettings)) return true; } return false; }
bool CWinRenderBufferPool::IsCompatible(const CRenderVideoSettings &renderSettings) const { if (!CRPWinRenderer::SupportsScalingMethod(renderSettings.GetScalingMethod())) return false; return true; }
bool CRenderBufferPoolOpenGL::IsCompatible(const CRenderVideoSettings &renderSettings) const { return CRPRendererOpenGL::SupportsScalingMethod(renderSettings.GetScalingMethod()); }
bool CWinRenderBufferPool::IsCompatible(const CRenderVideoSettings &renderSettings) const { return GetShader(renderSettings.GetScalingMethod()) != nullptr; }