MCPcopy Create free account
hub / github.com/Illation/ETEngine / ~MeshData

Method ~MeshData

Engine/source/EtRendering/GraphicsTypes/Mesh.cpp:404–412  ·  view source on GitHub ↗

--------------------------------- MeshData::d-tor Free the GPU buffers for this mesh

Source from the content-addressed store, hash-verified

402// Free the GPU buffers for this mesh
403//
404MeshData::~MeshData()
405{
406 I_GraphicsApiContext* const api = Viewport::GetCurrentApiContext();
407
408 api->DeleteBuffer(m_VertexBuffer);
409 api->DeleteBuffer(m_IndexBuffer);
410
411 SafeDelete(m_Surfaces);
412}
413
414//---------------------------------
415// MeshData::GetSurface

Callers

nothing calls this directly

Calls 2

SafeDeleteFunction · 0.85
DeleteBufferMethod · 0.80

Tested by

no test coverage detected