Home
last modified time | relevance | path

Searched refs:memory (Results 1 – 25 of 69) sorted by relevance

123

/NW4C-1.2.23/sources/libraries/demo/
Ddemo_Memory.cpp42 AlignMemory_( void* memory, u8 align ) in AlignMemory_() argument
44 void* top = nw::ut::AddOffsetToPtr( memory, 1 ); in AlignMemory_()
49 size_t offset = nw::ut::GetOffsetFromPtr( memory, top ); in AlignMemory_()
60 void* memory = nw::demo::Alloc(size); in InitializeDemoAllocator() local
61 uptr address = reinterpret_cast<uptr>(memory); in InitializeDemoAllocator()
101 UnAlignMemory( void* memory ) in UnAlignMemory() argument
103 u8* head = reinterpret_cast<u8*>( nw::ut::AddOffsetToPtr( memory, -1 ) ); in UnAlignMemory()
107 return nw::ut::AddOffsetToPtr( memory, -offset ); in UnAlignMemory()
121 void* memory = s_MainMemoryHeap.Allocate( size + alignment ); in Alloc() local
123 return AlignMemory_( memory, alignment ); in Alloc()
[all …]
Ddemo_DisplayBufferSwapper.cpp35 void* memory = allocator->Alloc(sizeof(DisplayBufferSwapper)); in Create() local
37 new(memory) DisplayBufferSwapper(allocator, m_Description); in Create()
80 void* memory = allocator->Alloc(sizeof(GLuint) * m_Description.bufferCount); in DisplayBufferSwapper() local
81 m_DisplayBuffers = static_cast<GLuint*>(memory); in DisplayBufferSwapper()
/NW4C-1.2.23/include/nw/os/
Dos_Memory.h54 virtual void Free(void* memory) = 0;
72 u8* memory = static_cast<u8*>(this->Alloc(size, alignment)); variable
74 if (memory != NULL)
76 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, data);
78 return memory;
92 u8* memory = static_cast<u8*>(this->Alloc(sizeof(TObject) * size, alignment)); variable
94 if (memory != NULL)
96 std::fill_n(memory, size, data);
99 return static_cast<TObject*>(memory);
184 u8* memory = static_cast<u8*>(allocator->Alloc(memorySize)); in AllocateAndFill() local
[all …]
/NW4C-1.2.23/sources/libraries/gfx/
Dgfx_LightSet.cpp34 void* memory = allocator->Alloc(sizeof(LightSet)); in Create() local
35 NW_NULL_ASSERT(memory); in Create()
36 LightSet* lightSet = new(memory) LightSet( in Create()
54 void* memory = allocator->Alloc(sizeof(LightSet)); in Create() local
55 NW_NULL_ASSERT(memory); in Create()
60 LightSet* lightSet = new(memory) LightSet( in Create()
Dgfx_SceneNode.cpp40 void* memory = allocator->Alloc(sizeof(SceneNode)); in Create() local
41 NW_NULL_ASSERT(memory); in Create()
43 SceneNode* node = new(memory) SceneNode( in Create()
67 void* memory = allocator->Alloc(sizeof(SceneNode)); in Create() local
68 NW_NULL_ASSERT(memory); in Create()
70 SceneNode* node = new(memory) SceneNode( in Create()
149 void* memory = allocator->Alloc( in CreateChildren() local
152 if (memory == NULL) in CreateChildren()
158 m_Children = SceneNodeChildren(NULL, memory, m_Description.maxChildren, allocator); in CreateChildren()
Dgfx_IRenderTarget.cpp38 void* memory = allocator->Alloc(sizeof(OnScreenBuffer), renderTargetAlignment); in Create() local
39 NW_NULL_ASSERT(memory); in Create()
41 renderTarget = new(memory) OnScreenBuffer(allocator, m_Description); in Create()
54 void* memory = allocator->Alloc(sizeof(OffScreenBuffer), renderTargetAlignment); in CreateOffScreenBuffer() local
55 NW_NULL_ASSERT(memory); in CreateOffScreenBuffer()
111 renderTarget = new(memory) OffScreenBuffer(allocator, description, texture); in CreateOffScreenBuffer()
Dgfx_ParticleModel.cpp134 void* memory = mainAllocator->Alloc(sizeof(ParticleModel)); in Create() local
135 if (memory == NULL) in Create()
140 ParticleModel* node = new(memory) ParticleModel( in Create()
261 void* memory = allocator->Alloc(sizeof(ParticleSet*) * m_MaximumParticleSet); in Initialize() local
262 if (!memory) in Initialize()
268 m_ParticleSets = ut::MoveArray<ParticleSet*>(memory, m_MaximumParticleSet, allocator); in Initialize()
278 void* memory = allocator->Alloc(sizeof(ParticleShape*) * m_MaximumParticleSet); in Initialize() local
279 if (!memory) in Initialize()
285 m_ParticleShapes = ut::MoveArray<ParticleShape*>(memory, m_MaximumParticleSet, allocator); in Initialize()
Dgfx_ParticleContext.cpp44 void* memory = allocator->Alloc(sizeof(ParticleContext)); in Create() local
45 NW_NULL_ASSERT(memory); in Create()
47 ParticleContext* context = new(memory) ParticleContext( in Create()
Dgfx_TransformNode.cpp62 void* memory = allocator->Alloc(sizeof(TransformNode)); in Create() local
63 NW_NULL_ASSERT(memory); in Create()
65 TransformNode* node = new(memory) TransformNode( in Create()
90 void* memory = allocator->Alloc(sizeof(TransformNode)); in Create() local
91 NW_NULL_ASSERT(memory); in Create()
93 TransformNode* node = new(memory) TransformNode( in Create()
Dgfx_AmbientLight.cpp42 void* memory = allocator->Alloc(sizeof(AmbientLight)); in Create() local
43 NW_NULL_ASSERT(memory); in Create()
44 AmbientLight* light = new(memory) AmbientLight( in Create()
70 void* memory = allocator->Alloc(sizeof(AmbientLight)); in Create() local
71 NW_NULL_ASSERT(memory); in Create()
73 AmbientLight* light = new(memory) AmbientLight( in Create()
Dgfx_HemiSphereLight.cpp44 void* memory = allocator->Alloc(sizeof(HemiSphereLight)); in Create() local
45 NW_NULL_ASSERT(memory); in Create()
46 HemiSphereLight* light = new(memory) HemiSphereLight( in Create()
72 void* memory = allocator->Alloc(sizeof(HemiSphereLight)); in Create() local
73 NW_NULL_ASSERT(memory); in Create()
75 HemiSphereLight* light = new(memory) HemiSphereLight( in Create()
Dgfx_VertexLight.cpp45 void* memory = allocator->Alloc(sizeof(VertexLight)); in Create() local
46 NW_NULL_ASSERT(memory); in Create()
47 VertexLight* light = new(memory) VertexLight( in Create()
73 void* memory = allocator->Alloc(sizeof(VertexLight)); in Create() local
74 NW_NULL_ASSERT(memory); in Create()
76 VertexLight* light = new(memory) VertexLight( in Create()
Dgfx_Model.cpp49 void* memory = allocator->Alloc(sizeof(Model)); in Create() local
50 NW_NULL_ASSERT(memory); in Create()
52 Model* node = new(memory) Model( in Create()
307 void* memory = allocator->Alloc(sizeof(Material*) * materialCount); in CreateMaterials() local
309 if (memory == NULL) in CreateMaterials()
315 m_Materials = gfx::MaterialArray(memory, materialCount, allocator); in CreateMaterials()
331 void* memory = allocator->Alloc(sizeof(Material*) * materialCount); in CreateMaterials() local
333 if (memory == NULL) in CreateMaterials()
339 m_Materials = gfx::MaterialArray(memory, materialCount, allocator); in CreateMaterials()
408 void* memory = allocator->Alloc(sizeof(bool) * meshesCount); in CreateResMeshes() local
[all …]
Dgfx_StandardSkeleton.cpp43 void* memory = allocator->Alloc(sizeof(StandardSkeleton)); in Create() local
44 NW_NULL_ASSERT(memory); in Create()
56 StandardSkeleton* skeleton = new(memory) StandardSkeleton( in Create()
Dgfx_ParticleSceneUpdater.cpp45 void* memory = allocator->Alloc(sizeof(ParticleSceneUpdater)); in Create() local
46 if (memory == NULL) in Create()
51 return new(memory) ParticleSceneUpdater( in Create()
Dgfx_SceneInitializer.cpp49 void* memory = allocator->Alloc(sizeof(SceneInitializer)); in Create() local
50 NW_NULL_ASSERT(memory); in Create()
55 SceneInitializer* initializer = new(memory) SceneInitializer(allocator, m_Description); in Create()
Dgfx_FragmentLight.cpp44 void* memory = allocator->Alloc(sizeof(FragmentLight)); in Create() local
45 NW_NULL_ASSERT(memory); in Create()
46 FragmentLight* light = new(memory) FragmentLight( in Create()
72 void* memory = allocator->Alloc(sizeof(FragmentLight)); in Create() local
73 NW_NULL_ASSERT(memory); in Create()
75 FragmentLight* light = new(memory) FragmentLight( in Create()
Dgfx_AnimObject.cpp171 void* memory = GetAllocator().Alloc(sizeof(anim::AnimBlendOp*) * blendOpCount); in Initialize() local
173 if (memory == NULL) in Initialize()
179 … m_BlendOperations = ut::MoveArray<anim::AnimBlendOp*>(memory, blendOpCount, &GetAllocator()); in Initialize()
191 void* memory = GetAllocator().Alloc(sizeof(int) * memberCount); in Initialize() local
192 if (memory == NULL) in Initialize()
198 m_TargetObjectIndicies = ut::MoveArray<int>(memory, memberCount, &GetAllocator()); in Initialize()
203 void* memory = GetAllocator().Alloc(sizeof(void*) * memberCount); in Initialize() local
204 if (memory == NULL) in Initialize()
210 m_TargetObjects = ut::MoveArray<void*>(memory, memberCount, &GetAllocator()); in Initialize()
215 void* memory = GetAllocator().Alloc(sizeof(void*) * memberCount); in Initialize() local
[all …]
Dgfx_SceneContext.cpp66 void* memory = allocator->Alloc(sizeof(SceneContext)); in Create() local
67 NW_NULL_ASSERT(memory); in Create()
69 SceneContext* context = new(memory) SceneContext( in Create()
/NW4C-1.2.23/include/nw/demo/
Ddemo_Memory.h69 void* UnAlignMemory( void* memory );
86 void Free(void* memory);
149 void* memory = m_Heap.Allocate(size, alignment); in Alloc() local
152 if (memory != NULL) in Alloc()
154 void* unalignMemory = UnAlignMemory(memory); in Alloc()
166 return memory; in Alloc()
174 virtual void Free(void* memory) in Free() argument
177 void* unalignMemory = UnAlignMemory(memory); in Free()
188 m_Heap.Free(memory); in Free()
/NW4C-1.2.23/include/nw/ut/generated/
Dut_Signal.hi149 void* memory = allocator->Alloc(sizeof(SelfType));
150 if (memory)
153 return new(memory) SelfType(NULL, 0, allocator);
155 return new(memory) SelfType(allocator);
171 void* memory = allocator->Alloc(sizeof(SelfType));
172 if (memory)
178 return new(memory) SelfType(elements, maxSlots, allocator);
182 allocator->Free(memory);
187 return new(memory) SelfType(allocator);
199 void* memory = allocator->Alloc(sizeof(SelfType));
[all …]
/NW4C-1.2.23/sources/libraries/dev/
Ddev_Screenshot.cpp43 void* memory = allocator->Alloc(sizeof(Screenshot)); in Create() local
44 NW_NULL_ASSERT(memory); in Create()
46 return new(memory) Screenshot( in Create()
122 void* memory = allocator->Alloc(sizeof(Screenshot)); in Create() local
130 return new(memory) ScreenshotManager(allocator, screenshots); in Create()
/NW4C-1.2.23/include/nw/ut/
Dut_Signal.h88 void* memory = allocator->Alloc(sizeof(TSlot));
89 NW_NULL_ASSERT(memory);
91 return new(memory) TSlot(allocator, function);
/NW4C-1.2.23/include/nw/gfx/
Dgfx_IRenderTarget.h180 Builder& ColorArea(GraphicsMemoryArea memory) in ColorArea() argument
182 m_Description.colorArea = memory; in ColorArea()
189 Builder& DepthArea(GraphicsMemoryArea memory) in DepthArea() argument
191 m_Description.depthArea = memory; in DepthArea()
Dgfx_AnimObject.h803 void* memory = GetAllocator().Alloc(sizeof(AnimGroup*) * maxAnimGroups); in Initialize() local
804 if (memory == NULL) in Initialize()
810 m_AnimGroups = AnimGroupArray(memory, maxAnimGroups, &GetAllocator()); in Initialize()
813 void* memory = GetAllocator().Alloc(sizeof(AnimObject*) * animObjectCount); in Initialize() local
814 if (memory == NULL) in Initialize()
820 m_AnimObjects = AnimObjectArray(memory, animObjectCount, &GetAllocator()); in Initialize()
1158 void* memory = GetAllocator().Alloc(sizeof(int) * maxMembers); in Initialize() local
1159 if (memory == NULL) in Initialize()
1165 m_BindIndexTable = ut::MoveArray<int>(memory, maxMembers, &GetAllocator()); in Initialize()
1169 void* memory = GetAllocator().Alloc(sizeof(int) * maxAnimMembers); in Initialize() local
[all …]

123