[idd] postprocess: centralize color transform state

This commit is contained in:
Geoffrey McRae
2026-08-13 20:44:31 +10:00
parent 3d7df86a01
commit 84bda112ac
6 changed files with 63 additions and 58 deletions

View File

@@ -83,12 +83,7 @@ struct CRGB24Effect::State
format.desc.Format != DXGI_FORMAT_B8G8R8A8_UNORM)
return false;
if (!format.colorTransform ||
(!format.colorTransform->matrixEnabled &&
!format.colorTransform->lutEnabled))
return true;
return IsIdentityColorTransform(*format.colorTransform);
return !D12::Transform(format.colorTransform);
}
bool WantsPackedLocked() const