Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
bool CWinRenderBufferPool::IsCompatible(const CRenderVideoSettings &renderSettings) const
{
  if (!CRPWinRenderer::SupportsScalingMethod(renderSettings.GetScalingMethod()))
    return false;

  return true;
}
Exemplo n.º 3
0
bool CRenderBufferPoolOpenGL::IsCompatible(const CRenderVideoSettings &renderSettings) const
{
  return CRPRendererOpenGL::SupportsScalingMethod(renderSettings.GetScalingMethod());
}
Exemplo n.º 4
0
bool CWinRenderBufferPool::IsCompatible(const CRenderVideoSettings &renderSettings) const
{
  return GetShader(renderSettings.GetScalingMethod()) != nullptr;
}