You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #106434 from Ivorforce/invert-hashfuncs
Reduce cross project includes by rewriting `HashMapHasherDefault`.
This commit is contained in:
@@ -487,7 +487,7 @@ class RendererCanvasRenderRD : public RendererCanvasRender {
|
||||
static void _uniform_set_invalidation_callback(void *p_userdata);
|
||||
static void _canvas_texture_invalidation_callback(bool p_deleted, void *p_userdata);
|
||||
|
||||
typedef LRUCache<RIDSetKey, RID, HashableHasher<RIDSetKey>, HashMapComparatorDefault<RIDSetKey>, _before_evict> RIDCache;
|
||||
typedef LRUCache<RIDSetKey, RID, HashMapHasherDefault, HashMapComparatorDefault<RIDSetKey>, _before_evict> RIDCache;
|
||||
RIDCache rid_set_to_uniform_set;
|
||||
/// Maps a CanvasTexture to its associated uniform sets, which must
|
||||
/// be invalidated when the CanvasTexture is updated, such as changing the
|
||||
@@ -526,7 +526,7 @@ class RendererCanvasRenderRD : public RendererCanvasRender {
|
||||
uint32_t flags = 0;
|
||||
};
|
||||
|
||||
HashMap<TextureState, TextureInfo, HashableHasher<TextureState>, HashMapComparatorDefault<TextureState>, PagedAllocator<HashMapElement<TextureState, TextureInfo>>> texture_info_map;
|
||||
HashMap<TextureState, TextureInfo, HashMapHasherDefault, HashMapComparatorDefault<TextureState>, PagedAllocator<HashMapElement<TextureState, TextureInfo>>> texture_info_map;
|
||||
|
||||
// per-frame buffers
|
||||
struct DataBuffer {
|
||||
|
||||
Reference in New Issue
Block a user