Skip to content

Commit a251ec8

Browse files
committed
textureLRUCache construct on allocateMSDFs
1 parent 2574272 commit a251ec8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

62_CAD/DrawResourcesFiller.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#include "DrawResourcesFiller.h"
22

3-
DrawResourcesFiller::DrawResourcesFiller() :
4-
textureLRUCache(1024u)
3+
DrawResourcesFiller::DrawResourcesFiller()
54
{}
65

76
DrawResourcesFiller::DrawResourcesFiller(smart_refctd_ptr<IUtilities>&& utils, IQueue* copyQueue) :
8-
textureLRUCache(1024u),
97
m_utilities(utils),
108
m_copyQueue(copyQueue)
119
{}
@@ -122,9 +120,7 @@ void DrawResourcesFiller::allocateStylesBuffer(ILogicalDevice* logicalDevice, ui
122120

123121
void DrawResourcesFiller::allocateMSDFTextures(ILogicalDevice* logicalDevice, uint32_t maxMSDFs)
124122
{
125-
// TODO[Erfan]: Fix resize TextureLRUCache
126-
// assert(maxMSDFs == textureLRUCache.capacity);
127-
// textureLRUCache = TextureLRUCache(maxMSDFs);
123+
textureLRUCache = TextureLRUCache(maxMSDFs);
128124

129125
asset::E_FORMAT msdfFormat = asset::EF_R8G8B8A8_UNORM; // @Lucas change the format to what MSDFs use
130126
constexpr asset::VkExtent3D MSDFsExtent = { 32u, 32u, 1u }; // 32x32 images, TODO: maybe make this a paramerter

0 commit comments

Comments
 (0)