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

Method OnReleaseGPU

Source/Engine/GraphicsDevice/WebGPU/GPUBufferWebGPU.cpp:121–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void GPUBufferWebGPU::OnReleaseGPU()
122{
123 if (Buffer)
124 {
125 wgpuBufferDestroy(Buffer);
126 wgpuBufferRelease(Buffer);
127 Buffer = nullptr;
128 }
129#if GPU_ENABLE_RESOURCE_NAMING
130 _name.Clear();
131#endif
132 _view.Ptr.ViewVersion++;
133
134 // Base
135 GPUBuffer::OnReleaseGPU();
136}
137
138#endif

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected