Home
last modified time | relevance | path

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

123

/NW4C-1.3.3/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.3.3/include/nw/os/
Dos_Memory.h77 virtual void Free(void* memory) = 0;
95 u8* memory = static_cast<u8*>(this->Alloc(size, alignment)); variable
97 if (memory != NULL)
99 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, data);
101 return memory;
121 u8* memory = static_cast<u8*>(this->Alloc(sizeof(TObject) * count, alignment)); variable
123 if (memory != NULL)
125 std::fill_n(memory, count, data);
128 return static_cast<TObject*>(memory);
222 u8* memory = static_cast<u8*>(allocator->Alloc(memorySize)); in AllocateAndFill() local
[all …]
/NW4C-1.3.3/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.3.3/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()
64 void* memory = allocator->Alloc(sizeof(LightSet)); in Create() local
65 NW_NULL_ASSERT(memory); in Create()
70 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()
164 void* memory = allocator->Alloc( in CreateChildren() local
167 if (memory == NULL) in CreateChildren()
173 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()
118 renderTarget = new(memory) OffScreenBuffer(allocator, description, texture); in CreateOffScreenBuffer()
Dgfx_ParticleModel.cpp135 void* memory = mainAllocator->Alloc(sizeof(ParticleModel)); in Create() local
136 if (memory == NULL) in Create()
141 ParticleModel* node = new(memory) ParticleModel( in Create()
262 void* memory = allocator->Alloc(sizeof(ParticleSet*) * m_MaximumParticleSet); in Initialize() local
263 if (!memory) in Initialize()
269 m_ParticleSets = ut::MoveArray<ParticleSet*>(memory, m_MaximumParticleSet, allocator); in Initialize()
279 void* memory = allocator->Alloc(sizeof(ParticleShape*) * m_MaximumParticleSet); in Initialize() local
280 if (!memory) in Initialize()
286 m_ParticleShapes = ut::MoveArray<ParticleShape*>(memory, m_MaximumParticleSet, allocator); in Initialize()
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_ParticleContext.cpp50 void* memory = allocator->Alloc(sizeof(ParticleContext)); in Create() local
51 NW_NULL_ASSERT(memory); in Create()
53 ParticleContext* context = new(memory) ParticleContext( in Create()
Dgfx_Model.cpp48 void* memory = allocator->Alloc(sizeof(Model)); in Create() local
49 NW_NULL_ASSERT(memory); in Create()
51 Model* node = new(memory) Model( in Create()
315 void* memory = allocator->Alloc(sizeof(Material*) * materialCount); in CreateMaterials() local
317 if (memory == NULL) in CreateMaterials()
323 m_Materials.Reset(memory, materialCount, allocator); in CreateMaterials()
339 void* memory = allocator->Alloc(sizeof(Material*) * materialCount); in CreateMaterials() local
341 if (memory == NULL) in CreateMaterials()
347 m_Materials.Reset(memory, materialCount, allocator); in CreateMaterials()
416 void* memory = allocator->Alloc(sizeof(bool) * meshesCount); in CreateResMeshes() local
[all …]
Dgfx_AmbientLight.cpp45 void* memory = allocator->Alloc(sizeof(AmbientLight)); in Create() local
46 NW_NULL_ASSERT(memory); in Create()
47 AmbientLight* light = new(memory) AmbientLight( in Create()
101 void* memory = allocator->Alloc(sizeof(AmbientLight)); in Create() local
102 NW_NULL_ASSERT(memory); in Create()
104 AmbientLight* light = new(memory) AmbientLight( in Create()
Dgfx_HemiSphereLight.cpp47 void* memory = allocator->Alloc(sizeof(HemiSphereLight)); in Create() local
48 NW_NULL_ASSERT(memory); in Create()
49 HemiSphereLight* light = new(memory) HemiSphereLight( in Create()
103 void* memory = allocator->Alloc(sizeof(HemiSphereLight)); in Create() local
104 NW_NULL_ASSERT(memory); in Create()
106 HemiSphereLight* light = new(memory) HemiSphereLight( in Create()
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.cpp48 void* memory = allocator->Alloc(sizeof(SceneInitializer)); in Create() local
49 NW_NULL_ASSERT(memory); in Create()
54 SceneInitializer* initializer = new(memory) SceneInitializer(allocator, m_Description); in Create()
Dgfx_VertexLight.cpp48 void* memory = allocator->Alloc(sizeof(VertexLight)); in Create() local
49 NW_NULL_ASSERT(memory); in Create()
50 VertexLight* light = new(memory) VertexLight( in Create()
104 void* memory = allocator->Alloc(sizeof(VertexLight)); in Create() local
105 NW_NULL_ASSERT(memory); in Create()
107 VertexLight* light = new(memory) VertexLight( 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_FragmentLight.cpp47 void* memory = allocator->Alloc(sizeof(FragmentLight)); in Create() local
48 NW_NULL_ASSERT(memory); in Create()
49 FragmentLight* light = new(memory) FragmentLight( in Create()
106 void* memory = allocator->Alloc(sizeof(FragmentLight)); in Create() local
107 NW_NULL_ASSERT(memory); in Create()
109 FragmentLight* light = new(memory) FragmentLight( in Create()
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.3.3/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.3.3/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.3.3/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.3.3/include/nw/gfx/
Dgfx_AnimObject.h821 void* memory = GetAllocator().Alloc(sizeof(AnimGroup*) * maxAnimGroups); in Initialize() local
822 if (memory == NULL) in Initialize()
828 m_AnimGroups = AnimGroupArray(memory, maxAnimGroups, &GetAllocator()); in Initialize()
831 void* memory = GetAllocator().Alloc(sizeof(AnimObject*) * animObjectCount); in Initialize() local
832 if (memory == NULL) in Initialize()
838 m_AnimObjects = AnimObjectArray(memory, animObjectCount, &GetAllocator()); in Initialize()
1176 void* memory = GetAllocator().Alloc(sizeof(int) * maxMembers); in Initialize() local
1177 if (memory == NULL) in Initialize()
1183 m_BindIndexTable = ut::MoveArray<int>(memory, maxMembers, &GetAllocator()); in Initialize()
1187 void* memory = GetAllocator().Alloc(sizeof(int) * maxAnimMembers); in Initialize() local
[all …]
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()

123