Resolve load and store ops automatically for render passes for discardable textures.

This commit is contained in:
Dario
2024-10-24 16:01:00 -03:00
parent 0c45ace151
commit 6d5ac8f7ef
32 changed files with 799 additions and 473 deletions

View File

@ -373,6 +373,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) {
@ -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;
}