mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
renderer_vulkan: Resore color write dynamic state (#3453)
This commit is contained in:
@@ -127,6 +127,14 @@ union CompMapping {
|
||||
};
|
||||
}
|
||||
|
||||
[[nodiscard]] u32 ApplyMask(u32 mask) const {
|
||||
u32 swizzled_mask{};
|
||||
for (u32 i = 0; i < 4; ++i) {
|
||||
swizzled_mask |= ((mask >> i) & 1) << Map(i);
|
||||
}
|
||||
return swizzled_mask;
|
||||
}
|
||||
|
||||
[[nodiscard]] CompMapping Inverse() const {
|
||||
CompMapping result{};
|
||||
InverseSingle(result.r, CompSwizzle::Red);
|
||||
|
||||
Reference in New Issue
Block a user