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,
95 ResPixelBasedTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResG… in ResPixelBasedTextureMapper_Setup() argument
101 Result result = SetupTexture(allocator, resTexture, graphicsFile); in ResPixelBasedTextureMapper_Setup()
136 ResProceduralTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResG… in ResProceduralTextureMapper_Setup() argument
138 return SetupTexture(allocator, resTextureMapper.GetTexture(), graphicsFile); in ResProceduralTextureMapper_Setup()
177 …sPixelBasedTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResPixelBasedTextureMapper_CloneDynamic() argument
184 void* mapperMemory = allocator->Alloc(sizeof(ResPixelBasedTextureMapperData)); in ResPixelBasedTextureMapper_CloneDynamic()
199 ResTexture referenceTexture = ReferResTexture(allocator, resTexture); in ResPixelBasedTextureMapper_CloneDynamic()
206 ResPixelBasedTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResPixelBasedTextureMapper_CloneDynamic()
216 void* samplerMemory = allocator->Alloc(sizeof(ResStandardTextureSamplerData)); in ResPixelBasedTextureMapper_CloneDynamic()
219 ResPixelBasedTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResPixelBasedTextureMapper_CloneDynamic()
240 …sProceduralTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResProceduralTextureMapper_CloneDynamic() argument
247 void* mapperMemory = allocator->Alloc(sizeof(ResProceduralTextureMapperData)); in ResProceduralTextureMapper_CloneDynamic()
262 ResTexture referenceTexture = ReferResTexture(allocator, resTexture); in ResProceduralTextureMapper_CloneDynamic()
269 ResProceduralTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResProceduralTextureMapper_CloneDynamic()
284 …ixelBasedTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResPixelBasedTextureMapper_DestroyDynamic() argument
291 allocator->Free(resPixelBasedTextureMapper.ref().toSampler.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
296 allocator->Free(resPixelBasedTextureMapper.ref().toTexture.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
299 allocator->Free(resPixelBasedTextureMapper.ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
309 …roceduralTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResProceduralTextureMapper_DestroyDynamic() argument
316 allocator->Free(resProceduralTextureMapper.ref().toTexture.to_ptr()); in ResProceduralTextureMapper_DestroyDynamic()
319 allocator->Free(resProceduralTextureMapper.ptr()); in ResProceduralTextureMapper_DestroyDynamic()
324 ResTextureMapper::CloneDynamic(os::IAllocator* allocator) in CloneDynamic() argument
326 NW_NULL_ASSERT(allocator); in CloneDynamic()
332 resTextureMapper = s_TextureMapperCloneDynamicTable[0]( *this, allocator ); in CloneDynamic()
337 resTextureMapper = s_TextureMapperCloneDynamicTable[1]( *this, allocator ); in CloneDynamic()
348 resTextureMapper.ref().m_DynamicAllocator = allocator; in CloneDynamic()
412 os::IAllocator* allocator, in Setup() argument
416 NW_NULL_ASSERT(allocator); in Setup()
423 result |= s_TextureMapperSetupTable[0]( *this, allocator, graphicsFile ); in Setup()
428 result |= s_TextureMapperSetupTable[1]( *this, allocator, graphicsFile ); in Setup()
551 os::IAllocator* allocator, in ReferResTexture() argument
557 void* textureMemory = allocator->Alloc(sizeof(ResReferenceTextureData)); in ReferResTexture()
609 os::IAllocator* allocator, in SetupTexture() argument
653 result |= setupTexture.Setup(allocator, graphicsFile); in SetupTexture()