MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AllocateBuffer

Method AllocateBuffer

Source/Engine/Graphics/Models/MeshBase.cpp:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274bool MeshAccessor::AllocateBuffer(MeshBufferType bufferType, int32 count, GPUVertexLayout* layout)
275{
276 CHECK_RETURN(count, true);
277 CHECK_RETURN(layout, true);
278 const int32 idx = (int32)bufferType;
279 _data[idx].Allocate(count * layout->GetStride());
280 _layouts[idx] = layout;
281 return false;
282}
283
284bool MeshAccessor::AllocateBuffer(MeshBufferType bufferType, int32 count, PixelFormat format)
285{

Callers 2

UpdateMeshFunction · 0.45
UpdateMeshFunction · 0.45

Calls 2

GetStrideMethod · 0.80
AllocateMethod · 0.45

Tested by

no test coverage detected