Lines Matching refs:allocator
46 os::IAllocator* allocator, in Material() argument
51 allocator, in Material()
69 os::IAllocator* allocator in Create() argument
72 NW_NULL_ASSERT(allocator); in Create()
78 void* memory = allocator->Alloc(sizeof(Material)); in Create()
85 allocator, in Create()
90 Result result = material->Initialize(allocator); in Create()
276 Material::CreateBuffers(os::IAllocator* allocator) in CreateBuffers() argument
285 void* memory = allocator->Alloc(sizeof(ResMaterial) * m_BufferCount); in CreateBuffers()
293 m_Buffers = ResMaterialArray(memory, m_BufferCount, allocator); in CreateBuffers()
298 … ::std::pair<ResMaterial, Result> copyResult = this->CopyResMaterial(allocator, bufferOption); in CreateBuffers()
306 DestroyResMaterial(allocator, copyResult.first); in CreateBuffers()
318 os::IAllocator* allocator, in CopyResMaterial() argument
325 void* materialMemory = allocator->Alloc(sizeof(ResMaterialData)); in CopyResMaterial()
371 … offsets = allocator->AllocAndConstruct<ut::Offset>(resMaterial.GetShaderParametersCount()); in CopyResMaterial()
396 …void* parameterMemory = allocator->Alloc(sizeof(ResShaderParameterData) + sizeof(f32) * (parameter… in CopyResMaterial()
422 ResTextureMapper textureMapper = resTextureMapper.CloneDynamic(allocator); in CopyResMaterial()
440 ResTextureMapper textureMapper = resTextureMapper.CloneDynamic(allocator); in CopyResMaterial()
457 void* shaderMemory = allocator->Alloc(sizeof(ResFragmentShaderData)); in CopyResMaterial()
480 this->CopyResFragmentLightingTable(allocator, resFragmentLightingTable); in CopyResMaterial()
499 Material::DestroyResMaterial(os::IAllocator* allocator, ResMaterial resMaterial) in DestroyResMaterial() argument
501 NW_NULL_ASSERT( allocator ); in DestroyResMaterial()
506 DestroyResFragmentShader(allocator, resMaterial.GetFragmentShader()); in DestroyResMaterial()
526 DestroyResShaderParameter(allocator, resMaterial.GetShaderParameters(i)); in DestroyResMaterial()
528 allocator->Free(resMaterial.ref().toShaderParametersTable.to_ptr()); in DestroyResMaterial()
531 allocator->Free(resMaterial.ptr()); in DestroyResMaterial()
538 os::IAllocator* allocator, in DestroyResFragmentShader() argument
549 … allocator->Free(resFragmentLightingTable.GetReflectanceRSampler().GetSampler().ptr()); in DestroyResFragmentShader()
550 allocator->Free(resFragmentLightingTable.GetReflectanceRSampler().ptr()); in DestroyResFragmentShader()
555 … allocator->Free(resFragmentLightingTable.GetReflectanceGSampler().GetSampler().ptr()); in DestroyResFragmentShader()
556 allocator->Free(resFragmentLightingTable.GetReflectanceGSampler().ptr()); in DestroyResFragmentShader()
561 … allocator->Free(resFragmentLightingTable.GetReflectanceBSampler().GetSampler().ptr()); in DestroyResFragmentShader()
562 allocator->Free(resFragmentLightingTable.GetReflectanceBSampler().ptr()); in DestroyResFragmentShader()
567 … allocator->Free(resFragmentLightingTable.GetDistribution0Sampler().GetSampler().ptr()); in DestroyResFragmentShader()
568 allocator->Free(resFragmentLightingTable.GetDistribution0Sampler().ptr()); in DestroyResFragmentShader()
573 … allocator->Free(resFragmentLightingTable.GetDistribution1Sampler().GetSampler().ptr()); in DestroyResFragmentShader()
574 allocator->Free(resFragmentLightingTable.GetDistribution1Sampler().ptr()); in DestroyResFragmentShader()
579 allocator->Free(resFragmentLightingTable.GetFresnelSampler().GetSampler().ptr()); in DestroyResFragmentShader()
580 allocator->Free(resFragmentLightingTable.GetFresnelSampler().ptr()); in DestroyResFragmentShader()
583 allocator->Free(resFragmentLightingTable.ptr()); in DestroyResFragmentShader()
586 allocator->Free(resFragmentShader.ptr()); in DestroyResFragmentShader()
593 os::IAllocator* allocator, in DestroyResShaderParameter() argument
598 allocator->Free(resShaderParameter.ptr()); in DestroyResShaderParameter()
605 os::IAllocator* allocator, in CopyResFragmentLightingTable() argument
610 void* tableMemory = allocator->Alloc(sizeof(ResFragmentLightingTableData)); in CopyResFragmentLightingTable()
630 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceRSampler()); in CopyResFragmentLightingTable()
640 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceGSampler()); in CopyResFragmentLightingTable()
650 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceBSampler()); in CopyResFragmentLightingTable()
660 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetDistribution0Sampler()); in CopyResFragmentLightingTable()
670 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetDistribution1Sampler()); in CopyResFragmentLightingTable()
680 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetFresnelSampler()); in CopyResFragmentLightingTable()
693 os::IAllocator* allocator, in CopyResLightingLookupTable() argument
698 void* tableMemory = allocator->Alloc(sizeof(ResLightingLookupTableData)); in CopyResLightingLookupTable()
709 void* referenceTableMemory = allocator->Alloc(sizeof(ResReferenceLookupTableData)); in CopyResLightingLookupTable()
714 allocator->Free(lightingLookupTable); in CopyResLightingLookupTable()
820 Material::Initialize(os::IAllocator* allocator) in Initialize() argument
824 result |= CreateBuffers(allocator); in Initialize()