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

Method Clear

Source/Engine/GraphicsDevice/WebGPU/GPUContextWebGPU.cpp:158–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void GPUContextWebGPU::Clear(GPUTextureView* rt, const Color& color)
159{
160 auto& clear = _pendingClears.AddOne();
161 clear.View = (GPUTextureViewWebGPU*)rt;
162 Platform::MemoryCopy(clear.RGBA, color.Raw, sizeof(color.Raw));
163}
164
165void GPUContextWebGPU::ClearDepth(GPUTextureView* depthBuffer, float depthValue, uint8 stencilValue)
166{

Callers 10

OnReleaseGPUMethod · 0.45
FrameBeginMethod · 0.45
FlushStateMethod · 0.45
FlushMethod · 0.45
OnDispatchMethod · 0.45
FlushRenderPassMethod · 0.45
OnReleaseGPUMethod · 0.45
OnReleaseGPUMethod · 0.45
ReleaseGPUMethod · 0.45
OnReleaseGPUMethod · 0.45

Calls 1

AddOneMethod · 0.80

Tested by

no test coverage detected