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

Method ReleaseGPU

Source/Engine/GraphicsDevice/WebGPU/GPUDeviceWebGPU.cpp:223–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void GPUDataUploaderWebGPU::ReleaseGPU()
224{
225 // Free data
226 for (auto& e : _entries)
227 {
228 wgpuBufferRelease(e.Buffer);
229 PROFILE_MEM_DEC(GraphicsBuffers, e.Size);
230 }
231 _entries.Clear();
232}
233
234GPUDeviceWebGPU::GPUDeviceWebGPU(WGPUInstance instance, GPUAdapterWebGPU* adapter)
235 : GPUDevice(RendererType::WebGPU, ShaderProfile::WebGPU)

Callers 3

BeginGenerationMethod · 0.45
DisposeMethod · 0.45
DisposeMethod · 0.45

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected