You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user