Searched refs:lastCache (Results 1 – 1 of 1) sorted by relevance
222 VertexDeclCacheEntry *lastCache = mVertexDeclCache; in applyDeclaration() local226 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()