Lines Matching refs:allocator

29 typedef Result (*SetupFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphi…
31 …ResTextureMapper (*CloneDynamicFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
32 typedef void (*DestroyDynamicFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
34 …dTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphicsFile…
35 …lTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphicsFile…
38 …PixelBasedTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
39 …ProceduralTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
40 …xelBasedTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
41 …oceduralTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
43 static ResTexture ReferResTexture(os::IAllocator* allocator, ResTexture resTexture);
46 os::IAllocator* allocator,
129 ResPixelBasedTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResG… in ResPixelBasedTextureMapper_Setup() argument
135 Result result = SetupTexture(allocator, resTexture, graphicsFile); in ResPixelBasedTextureMapper_Setup()
170 ResProceduralTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResG… in ResProceduralTextureMapper_Setup() argument
172 return SetupTexture(allocator, resTextureMapper.GetTexture(), graphicsFile); in ResProceduralTextureMapper_Setup()
211 …sPixelBasedTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResPixelBasedTextureMapper_CloneDynamic() argument
218 void* mapperMemory = allocator->Alloc(sizeof(ResPixelBasedTextureMapperData)); in ResPixelBasedTextureMapper_CloneDynamic()
233 ResTexture referenceTexture = ReferResTexture(allocator, resTexture); in ResPixelBasedTextureMapper_CloneDynamic()
240 ResPixelBasedTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResPixelBasedTextureMapper_CloneDynamic()
250 void* samplerMemory = allocator->Alloc(sizeof(ResStandardTextureSamplerData)); in ResPixelBasedTextureMapper_CloneDynamic()
253 ResPixelBasedTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResPixelBasedTextureMapper_CloneDynamic()
274 …sProceduralTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResProceduralTextureMapper_CloneDynamic() argument
281 void* mapperMemory = allocator->Alloc(sizeof(ResProceduralTextureMapperData)); in ResProceduralTextureMapper_CloneDynamic()
296 ResTexture referenceTexture = ReferResTexture(allocator, resTexture); in ResProceduralTextureMapper_CloneDynamic()
303 ResProceduralTextureMapper_DestroyDynamic(cloneTextureMapper, allocator); in ResProceduralTextureMapper_CloneDynamic()
318 …ixelBasedTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResPixelBasedTextureMapper_DestroyDynamic() argument
325 allocator->Free(resPixelBasedTextureMapper.ref().toSampler.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
330 allocator->Free(resPixelBasedTextureMapper.ref().toTexture.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
333 allocator->Free(resPixelBasedTextureMapper.ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
343 …roceduralTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator) in ResProceduralTextureMapper_DestroyDynamic() argument
350 allocator->Free(resProceduralTextureMapper.ref().toTexture.to_ptr()); in ResProceduralTextureMapper_DestroyDynamic()
353 allocator->Free(resProceduralTextureMapper.ptr()); in ResProceduralTextureMapper_DestroyDynamic()
358 ResTextureMapper::CloneDynamic(os::IAllocator* allocator) in CloneDynamic() argument
360 NW_NULL_ASSERT(allocator); in CloneDynamic()
366 resTextureMapper = s_TextureMapperCloneDynamicTable[0]( *this, allocator ); in CloneDynamic()
371 resTextureMapper = s_TextureMapperCloneDynamicTable[1]( *this, allocator ); in CloneDynamic()
382 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()