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()
268 Material::CreateBuffers(os::IAllocator* allocator) in CreateBuffers() argument
277 void* memory = allocator->Alloc(sizeof(ResMaterial) * m_BufferCount); in CreateBuffers()
285 m_Buffers = ResMaterialArray(memory, m_BufferCount, allocator); in CreateBuffers()
290 … ::std::pair<ResMaterial, Result> copyResult = this->CopyResMaterial(allocator, bufferOption); in CreateBuffers()
298 DestroyResMaterial(allocator, copyResult.first); in CreateBuffers()
310 os::IAllocator* allocator, in CopyResMaterial() argument
317 void* materialMemory = allocator->Alloc(sizeof(ResMaterialData)); in CopyResMaterial()
363 … offsets = allocator->AllocAndConstruct<ut::Offset>(resMaterial.GetShaderParametersCount()); in CopyResMaterial()
388 …void* parameterMemory = allocator->Alloc(sizeof(ResShaderParameterData) + sizeof(f32) * (parameter… in CopyResMaterial()
414 ResTextureMapper textureMapper = resTextureMapper.CloneDynamic(allocator); in CopyResMaterial()
432 ResTextureMapper textureMapper = resTextureMapper.CloneDynamic(allocator); in CopyResMaterial()
449 void* shaderMemory = allocator->Alloc(sizeof(ResFragmentShaderData)); in CopyResMaterial()
472 this->CopyResFragmentLightingTable(allocator, resFragmentLightingTable); in CopyResMaterial()
491 Material::DestroyResMaterial(os::IAllocator* allocator, ResMaterial resMaterial) in DestroyResMaterial() argument
493 NW_NULL_ASSERT( allocator ); in DestroyResMaterial()
498 DestroyResFragmentShader(allocator, resMaterial.GetFragmentShader()); in DestroyResMaterial()
518 DestroyResShaderParameter(allocator, resMaterial.GetShaderParameters(i)); in DestroyResMaterial()
520 allocator->Free(resMaterial.ref().toShaderParametersTable.to_ptr()); in DestroyResMaterial()
523 allocator->Free(resMaterial.ptr()); in DestroyResMaterial()
530 os::IAllocator* allocator, in DestroyResFragmentShader() argument
541 allocator->Free(resFragmentLightingTable.GetReflectanceRSampler().ptr()); in DestroyResFragmentShader()
546 allocator->Free(resFragmentLightingTable.GetReflectanceGSampler().ptr()); in DestroyResFragmentShader()
551 allocator->Free(resFragmentLightingTable.GetReflectanceBSampler().ptr()); in DestroyResFragmentShader()
556 allocator->Free(resFragmentLightingTable.GetDistribution0Sampler().ptr()); in DestroyResFragmentShader()
561 allocator->Free(resFragmentLightingTable.GetDistribution1Sampler().ptr()); in DestroyResFragmentShader()
566 allocator->Free(resFragmentLightingTable.GetFresnelSampler().ptr()); in DestroyResFragmentShader()
569 allocator->Free(resFragmentLightingTable.ptr()); in DestroyResFragmentShader()
572 allocator->Free(resFragmentShader.ptr()); in DestroyResFragmentShader()
579 os::IAllocator* allocator, in DestroyResShaderParameter() argument
584 allocator->Free(resShaderParameter.ptr()); in DestroyResShaderParameter()
591 os::IAllocator* allocator, in CopyResFragmentLightingTable() argument
596 void* tableMemory = allocator->Alloc(sizeof(ResFragmentLightingTableData)); in CopyResFragmentLightingTable()
616 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceRSampler()); in CopyResFragmentLightingTable()
626 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceGSampler()); in CopyResFragmentLightingTable()
636 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetReflectanceBSampler()); in CopyResFragmentLightingTable()
646 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetDistribution0Sampler()); in CopyResFragmentLightingTable()
656 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetDistribution1Sampler()); in CopyResFragmentLightingTable()
666 … this->CopyResLightingLookupTable(allocator, resFragmentLightingTable.GetFresnelSampler()); in CopyResFragmentLightingTable()
679 os::IAllocator* allocator, in CopyResLightingLookupTable() argument
684 void* tableMemory = allocator->Alloc(sizeof(ResLightingLookupTableData)); in CopyResLightingLookupTable()
786 Material::Initialize(os::IAllocator* allocator) in Initialize() argument
790 result |= CreateBuffers(allocator); in Initialize()