Given the overall size of the maps are very small, we can use arrays of pairs here instead of always heap allocating a new map every time the functions are called. Given the small size of the maps, the difference in container lookups are negligible, especially given the entries are already sorted. |
||
---|---|---|
.. | ||
buffer_cache | ||
debug_utils | ||
engines | ||
renderer_opengl | ||
renderer_vulkan | ||
shader | ||
texture_cache | ||
textures | ||
CMakeLists.txt | ||
dma_pusher.cpp | ||
dma_pusher.h | ||
gpu_asynch.cpp | ||
gpu_asynch.h | ||
gpu_synch.cpp | ||
gpu_synch.h | ||
gpu_thread.cpp | ||
gpu_thread.h | ||
gpu.cpp | ||
gpu.h | ||
macro_interpreter.cpp | ||
macro_interpreter.h | ||
memory_manager.cpp | ||
memory_manager.h | ||
morton.cpp | ||
morton.h | ||
rasterizer_cache.cpp | ||
rasterizer_cache.h | ||
rasterizer_interface.h | ||
renderer_base.cpp | ||
renderer_base.h | ||
sampler_cache.cpp | ||
sampler_cache.h | ||
surface.cpp | ||
surface.h | ||
video_core.cpp | ||
video_core.h |