mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 21:58:45 +00:00
renderer_vulkan: Prefer depth stencil read-only layout when possible
* Persona reads a depth attachment while it is being attached with writes disabled. Now this works without spamming vk validation errors
This commit is contained in:
committed by
TheTurtle
parent
22b930ba5e
commit
b4d24d8737
@@ -528,6 +528,14 @@ struct Liverpool {
|
||||
BitField<0, 15, s32> bottom_right_x;
|
||||
BitField<15, 15, s32> bottom_right_y;
|
||||
};
|
||||
|
||||
u32 GetWidth() const {
|
||||
return bottom_right_x - top_left_x;
|
||||
}
|
||||
|
||||
u32 GetHeight() const {
|
||||
return bottom_right_y - top_left_y;
|
||||
}
|
||||
};
|
||||
|
||||
struct ViewportDepth {
|
||||
|
||||
Reference in New Issue
Block a user