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

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