Lines Matching refs:allocator
27 typedef Result (*SetupFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphi…
29 …ResTextureMapper (*CloneDynamicFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
30 typedef void (*DestroyDynamicFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
32 …dTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphicsFile…
33 …lTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphicsFile…
36 …PixelBasedTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
37 …ProceduralTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
38 …xelBasedTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
39 …oceduralTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
41 static ResTexture ReferResTexture(os::IAllocator* allocator, ResTexture resTexture);
44 os::IAllocator* allocator,
127 ResPixelBasedTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResG… in ResPixelBasedTextureMapper_Setup() argument
133 Result result = SetupTexture(allocator, resTexture, graphicsFile); in ResPixelBasedTextureMapper_Setup()
168 ResProceduralTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResG… in ResProceduralTextureMapper_Setup() argument
170 return SetupTexture(allocator, resTextureMapper.GetTexture(), graphicsFile); in ResProceduralTextureMapper_Setup()
209 …sPixelBasedTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResPixelBasedTextureMapper_CloneDynamic() argument
216 void* mapperMemory = allocator->Alloc(sizeof(ResPixelBasedTextureMapperData)); in ResPixelBasedTextureMapper_CloneDynamic()
231 ResTexture referenceTexture = ReferResTexture(allocator, resTexture); in ResPixelBasedTextureMapper_CloneDynamic()
238 ResPixelBasedTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResPixelBasedTextureMapper_CloneDynamic()
248 void* samplerMemory = allocator->Alloc(sizeof(ResStandardTextureSamplerData)); in ResPixelBasedTextureMapper_CloneDynamic()
251 ResPixelBasedTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResPixelBasedTextureMapper_CloneDynamic()
272 …sProceduralTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResProceduralTextureMapper_CloneDynamic() argument
279 void* mapperMemory = allocator->Alloc(sizeof(ResProceduralTextureMapperData)); in ResProceduralTextureMapper_CloneDynamic()
294 ResTexture referenceTexture = ReferResTexture(allocator, resTexture); in ResProceduralTextureMapper_CloneDynamic()
301 ResProceduralTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResProceduralTextureMapper_CloneDynamic()
316 …ixelBasedTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResPixelBasedTextureMapper_DestroyDynamic() argument
323 allocator->Free(resPixelBasedTextureMapper.ref().toSampler.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
328 allocator->Free(resPixelBasedTextureMapper.ref().toTexture.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
331 allocator->Free(resPixelBasedTextureMapper.ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
341 …roceduralTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResProceduralTextureMapper_DestroyDynamic() argument
348 allocator->Free(resProceduralTextureMapper.ref().toTexture.to_ptr()); in ResProceduralTextureMapper_DestroyDynamic()
351 allocator->Free(resProceduralTextureMapper.ptr()); in ResProceduralTextureMapper_DestroyDynamic()
356 ResTextureMapper::CloneDynamic(os::IAllocator* allocator) in CloneDynamic() argument
358 NW_NULL_ASSERT(allocator); in CloneDynamic()
364 resTextureMapper = s_TextureMapperCloneDynamicTable[0]( *this, allocator ); in CloneDynamic()
369 resTextureMapper = s_TextureMapperCloneDynamicTable[1]( *this, allocator ); in CloneDynamic()
380 resTextureMapper.ref().m_DynamicAllocator = allocator; in CloneDynamic()
444 os::IAllocator* allocator, in Setup() argument
448 NW_NULL_ASSERT(allocator); in Setup()
455 result |= s_TextureMapperSetupTable[0]( *this, allocator, graphicsFile ); in Setup()
460 result |= s_TextureMapperSetupTable[1]( *this, allocator, graphicsFile ); in Setup()
548 os::IAllocator* allocator, in ReferResTexture() argument
554 void* textureMemory = allocator->Alloc(sizeof(ResReferenceTextureData)); in ReferResTexture()
606 os::IAllocator* allocator, in SetupTexture() argument
650 result |= setupTexture.Setup(allocator, graphicsFile); in SetupTexture()