1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Convert resource usage to string

Improve error message by converting resource usage values to a
human-readable string.
This commit is contained in:
Antonio Caggiano
2024-12-14 10:40:31 +01:00
parent cae2f853dc
commit b6e5b4dde7
2 changed files with 46 additions and 2 deletions

View File

@@ -617,6 +617,7 @@ private:
RBMap<ResourceTracker *, uint32_t> write_dependency_counters;
#endif
static String _usage_to_string(ResourceUsage p_usage);
static bool _is_write_usage(ResourceUsage p_usage);
static RDD::TextureLayout _usage_to_image_layout(ResourceUsage p_usage);
static RDD::BarrierAccessBits _usage_to_access_bits(ResourceUsage p_usage);