Lines Matching refs:allocator

44     os::IAllocator* allocator,  in Material()  argument
49 allocator, in Material()
67 os::IAllocator* allocator in Create() argument
70 NW_NULL_ASSERT(allocator); in Create()
76 void* memory = allocator->Alloc(sizeof(Material)); in Create()
83 allocator, in Create()
88 Result result = material->Initialize(allocator); in Create()
274 Material::CreateBuffers(os::IAllocator* allocator) in CreateBuffers() argument
283 void* memory = allocator->Alloc(sizeof(ResMaterial) * m_BufferCount); in CreateBuffers()
291 m_Buffers = ResMaterialArray(memory, m_BufferCount, allocator); in CreateBuffers()
296 … ::std::pair<ResMaterial, Result> copyResult = this->CopyResMaterial(allocator, bufferOption); in CreateBuffers()
304 DestroyResMaterial(allocator, copyResult.first); in CreateBuffers()
316 os::IAllocator* allocator, in CopyResMaterial() argument
323 void* materialMemory = allocator->Alloc(sizeof(ResMaterialData)); in CopyResMaterial()
369 … offsets = allocator->AllocAndConstruct<ut::Offset>(resMaterial.GetShaderParametersCount()); in CopyResMaterial()
394 …void* parameterMemory = allocator->Alloc(sizeof(ResShaderParameterData) + sizeof(f32) * (parameter… in CopyResMaterial()
420 ResTextureMapper textureMapper = resTextureMapper.CloneDynamic(allocator); in CopyResMaterial()
438 ResTextureMapper textureMapper = resTextureMapper.CloneDynamic(allocator); in CopyResMaterial()
455 void* shaderMemory = allocator->Alloc(sizeof(ResFragmentShaderData)); in CopyResMaterial()
478 this->CopyResFragmentLightingTable(allocator, resFragmentLightingTable); in CopyResMaterial()
497 Material::DestroyResMaterial(os::IAllocator* allocator, ResMaterial resMaterial) in DestroyResMaterial() argument
499 NW_NULL_ASSERT( allocator ); in DestroyResMaterial()
504 DestroyResFragmentShader(allocator, resMaterial.GetFragmentShader()); in DestroyResMaterial()
524 DestroyResShaderParameter(allocator, resMaterial.GetShaderParameters(i)); in DestroyResMaterial()
526 allocator->Free(resMaterial.ref().toShaderParametersTable.to_ptr()); in DestroyResMaterial()
529 allocator->Free(resMaterial.ptr()); in DestroyResMaterial()
536 os::IAllocator* allocator, in DestroyResFragmentShader() argument
547allocator->Free(resFragmentLightingTable.GetReflectanceRSampler().GetSampler().ptr()); in DestroyResFragmentShader()
548 allocator->Free(resFragmentLightingTable.GetReflectanceRSampler().ptr()); in DestroyResFragmentShader()
553allocator->Free(resFragmentLightingTable.GetReflectanceGSampler().GetSampler().ptr()); in DestroyResFragmentShader()
554 allocator->Free(resFragmentLightingTable.GetReflectanceGSampler().ptr()); in DestroyResFragmentShader()
559allocator->Free(resFragmentLightingTable.GetReflectanceBSampler().GetSampler().ptr()); in DestroyResFragmentShader()
560 allocator->Free(resFragmentLightingTable.GetReflectanceBSampler().ptr()); in DestroyResFragmentShader()
565allocator->Free(resFragmentLightingTable.GetDistribution0Sampler().GetSampler().ptr()); in DestroyResFragmentShader()
566 allocator->Free(resFragmentLightingTable.GetDistribution0Sampler().ptr()); in DestroyResFragmentShader()
571allocator->Free(resFragmentLightingTable.GetDistribution1Sampler().GetSampler().ptr()); in DestroyResFragmentShader()
572 allocator->Free(resFragmentLightingTable.GetDistribution1Sampler().ptr()); in DestroyResFragmentShader()
577 allocator->Free(resFragmentLightingTable.GetFresnelSampler().GetSampler().ptr()); in DestroyResFragmentShader()
578 allocator->Free(resFragmentLightingTable.GetFresnelSampler().ptr()); in DestroyResFragmentShader()
581 allocator->Free(resFragmentLightingTable.ptr()); in DestroyResFragmentShader()
584 allocator->Free(resFragmentShader.ptr()); in DestroyResFragmentShader()
591 os::IAllocator* allocator, in DestroyResShaderParameter() argument
596 allocator->Free(resShaderParameter.ptr()); in DestroyResShaderParameter()
603 os::IAllocator* allocator, in CopyResFragmentLightingTable() argument
608 void* tableMemory = allocator->Alloc(sizeof(ResFragmentLightingTableData)); in CopyResFragmentLightingTable()
628 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceRSampler()); in CopyResFragmentLightingTable()
638 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceGSampler()); in CopyResFragmentLightingTable()
648 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceBSampler()); in CopyResFragmentLightingTable()
658 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetDistribution0Sampler()); in CopyResFragmentLightingTable()
668 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetDistribution1Sampler()); in CopyResFragmentLightingTable()
678 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetFresnelSampler()); in CopyResFragmentLightingTable()
691 os::IAllocator* allocator, in CopyResLightingLookupTable() argument
696 void* tableMemory = allocator->Alloc(sizeof(ResLightingLookupTableData)); in CopyResLightingLookupTable()
707 void* referenceTableMemory = allocator->Alloc(sizeof(ResReferenceLookupTableData)); in CopyResLightingLookupTable()
712 allocator->Free(lightingLookupTable); in CopyResLightingLookupTable()
820 Material::Initialize(os::IAllocator* allocator) in Initialize() argument
824 result |= CreateBuffers(allocator); in Initialize()