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

Method Resize

Source/Engine/Graphics/GPUBuffer.cpp:290–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290bool GPUBuffer::Resize(uint32 newSize)
291{
292 PROFILE_CPU();
293 if (!IsAllocated())
294 {
295 Log::InvalidOperationException(TEXT("Buffer.Resize"));
296 return true;
297 }
298
299 // Setup new description
300 auto desc = _desc;
301 desc.Size = newSize;
302 desc.InitData = nullptr;
303
304 // Recreate
305 return Init(desc);
306}
307
308bool GPUBuffer::DownloadData(BytesContainer& result)
309{

Callers 15

doWorkInnerMethod · 0.45
doWorkMethod · 0.45
ReleaseMethod · 0.45
onImportLightmapMethod · 0.45
loadStateMethod · 0.45
initResourcesMethod · 0.45
updateLightmapsMethod · 0.45
onJobRenderMethod · 0.45
DeserializeMethod · 0.45
AddToClusterMethod · 0.45
DrawTypeMethod · 0.45

Calls 3

IsAllocatedFunction · 0.50
InitFunction · 0.50

Tested by

no test coverage detected