[GPU] Polygon offset scale factor in xenos.h

This commit is contained in:
Triang3l
2021-06-09 20:46:24 +03:00
parent 9e6aec4535
commit 50bb35b4b4
4 changed files with 18 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ inline reg::RB_DEPTHCONTROL GetDepthControlForCurrentEdramMode(
return regs.Get<reg::RB_DEPTHCONTROL>();
}
constexpr float GetD3D10PolygonOffsetScale(
constexpr float GetD3D10PolygonOffsetFactor(
xenos::DepthRenderTargetFormat depth_format, bool float24_as_0_to_0_5) {
if (depth_format == xenos::DepthRenderTargetFormat::kD24S8) {
return float(1 << 24);