mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-29 06:43:17 +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:
parent
22b930ba5e
commit
b4d24d8737
15 changed files with 106 additions and 65 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue