From 6d5ac8f7ef4a3ddaf50720ab473b9dffece21674 Mon Sep 17 00:00:00 2001 From: Dario Date: Thu, 24 Oct 2024 16:01:00 -0300 Subject: Resolve load and store ops automatically for render passes for discardable textures. --- servers/rendering/rendering_device_commons.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'servers/rendering/rendering_device_commons.h') diff --git a/servers/rendering/rendering_device_commons.h b/servers/rendering/rendering_device_commons.h index d516d968af..9d01b69550 100644 --- a/servers/rendering/rendering_device_commons.h +++ b/servers/rendering/rendering_device_commons.h @@ -373,6 +373,7 @@ public: uint32_t usage_bits = 0; Vector shareable_formats; bool is_resolve_buffer = false; + bool is_discardable = false; bool operator==(const TextureFormat &b) const { if (format != b.format) { @@ -395,6 +396,10 @@ public: return false; } else if (shareable_formats != b.shareable_formats) { return false; + } else if (is_resolve_buffer != b.is_resolve_buffer) { + return false; + } else if (is_discardable != b.is_discardable) { + return false; } else { return true; } -- cgit v1.2.3