Home
last modified time | relevance | path

Searched refs:lastCache (Results 1 – 1 of 1) sorted by relevance

/external/angle/src/libANGLE/renderer/d3d/d3d9/
DVertexDeclarationCache.cpp222 VertexDeclCacheEntry *lastCache = mVertexDeclCache; in applyDeclaration() local
226 if (mVertexDeclCache[i].lruCount < lastCache->lruCount) in applyDeclaration()
228 lastCache = &mVertexDeclCache[i]; in applyDeclaration()
232 if (lastCache->vertexDeclaration != nullptr) in applyDeclaration()
234 SafeRelease(lastCache->vertexDeclaration); in applyDeclaration()
239 memcpy(lastCache->cachedElements, elements, (element - elements) * sizeof(D3DVERTEXELEMENT9)); in applyDeclaration()
240 HRESULT result = device->CreateVertexDeclaration(elements, &lastCache->vertexDeclaration); in applyDeclaration()
244 device->SetVertexDeclaration(lastCache->vertexDeclaration); in applyDeclaration()
245 mLastSetVDecl = lastCache->vertexDeclaration; in applyDeclaration()
246 lastCache->lruCount = ++mMaxLru; in applyDeclaration()