summaryrefslogtreecommitdiffstats
path: root/servers/rendering/rendering_device_commons.h
diff options
context:
space:
mode:
authorGeorge L. Albany <Megacake1234@gmail.com>2024-11-27 21:15:49 +0000
committerGitHub <noreply@github.com>2024-11-27 21:15:49 +0000
commit85d87116e184e7923b8d6804cab2681b61c62d83 (patch)
tree55ec5bfa061a5c27272b831e697b78ed1b756a70 /servers/rendering/rendering_device_commons.h
parentb06d20bf39d15ec736d08d4e4fcb32e0c3c1ce1e (diff)
parent721f53fde47c2727d99e3ecccdb789a67df36de0 (diff)
downloadredot-engine-master.tar.gz
Merge pull request #886 from Spartan322/merge/f128f38HEADmaster
Merge commit godotengine/godot@f128f38
Diffstat (limited to 'servers/rendering/rendering_device_commons.h')
-rw-r--r--servers/rendering/rendering_device_commons.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/servers/rendering/rendering_device_commons.h b/servers/rendering/rendering_device_commons.h
index 6463c8c5b8..dd486e8197 100644
--- a/servers/rendering/rendering_device_commons.h
+++ b/servers/rendering/rendering_device_commons.h
@@ -375,6 +375,7 @@ public:
uint32_t usage_bits = 0;
Vector<DataFormat> shareable_formats;
bool is_resolve_buffer = false;
+ bool is_discardable = false;
bool operator==(const TextureFormat &b) const {
if (format != b.format) {
@@ -397,6 +398,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;
}