[D3D12] Treat gamma/as_16 EDRAM formats the same as their base formats

This commit is contained in:
Triang3l
2018-09-22 19:22:57 +03:00
parent 133604f249
commit ecfa70284e
3 changed files with 24 additions and 3 deletions

View File

@@ -229,6 +229,10 @@ class RenderTargetCache {
void UnbindRenderTargets();
void EndFrame();
// Totally necessary to rely on the base format - Too Human switches between
// 2_10_10_10_FLOAT and 2_10_10_10_FLOAT_AS_16_16_16_16 every draw.
static ColorRenderTargetFormat GetBaseColorFormat(
ColorRenderTargetFormat format);
static inline bool IsColorFormat64bpp(ColorRenderTargetFormat format) {
return format == ColorRenderTargetFormat::k_16_16_16_16 ||
format == ColorRenderTargetFormat::k_16_16_16_16_FLOAT ||