Resolve load and store ops automatically for render passes for discardable textures.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user