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

Method LoadBuffer

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

Source from the content-addressed store, hash-verified

233}
234
235bool MeshAccessor::LoadBuffer(MeshBufferType bufferType, Span<byte> bufferData, GPUVertexLayout* layout)
236{
237 CHECK_RETURN(layout, true);
238 CHECK_RETURN(bufferData.IsValid(), true);
239 const int32 idx = (int32)bufferType;
240 _data[idx].Link(bufferData);
241 _layouts[idx] = layout;
242 return false;
243}
244
245bool MeshAccessor::LoadFromMeshData(const void* meshDataPtr)
246{

Callers 2

LoadMeshAccessorMethod · 0.45
CookCollisionMethod · 0.45

Calls 2

IsValidMethod · 0.45
LinkMethod · 0.45

Tested by

no test coverage detected