1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Resolve depth buffer in pass if supported by driver

This commit is contained in:
Bastiaan Olij
2025-10-08 23:23:51 +11:00
parent ef34c3d534
commit 21ffbecfa9
12 changed files with 152 additions and 37 deletions

View File

@@ -58,6 +58,7 @@ class FramebufferCacheRD : public Object {
static _FORCE_INLINE_ uint32_t _hash_pass(const RD::FramebufferPass &p, uint32_t h) {
h = hash_murmur3_one_32(p.depth_attachment, h);
h = hash_murmur3_one_32(p.depth_resolve_attachment, h);
h = hash_murmur3_one_32(p.color_attachments.size(), h);
for (int i = 0; i < p.color_attachments.size(); i++) {
@@ -82,6 +83,10 @@ class FramebufferCacheRD : public Object {
return false;
}
if (a.depth_resolve_attachment != b.depth_resolve_attachment) {
return false;
}
if (a.color_attachments.size() != b.color_attachments.size()) {
return false;
}