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

Method Clear

Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp:206–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void GPUContextDX11::Clear(GPUTextureView* rt, const Color& color)
207{
208 auto rtDX11 = static_cast<GPUTextureViewDX11*>(rt);
209 if (rtDX11)
210 {
211 _context->ClearRenderTargetView(rtDX11->RTV(), color.Raw);
212 }
213}
214
215void GPUContextDX11::ClearDepth(GPUTextureView* depthBuffer, float depthValue, uint8 stencilValue)
216{

Callers 2

DisposeMethod · 0.45
OnReleaseGPUMethod · 0.45

Calls 1

RTVMethod · 0.45

Tested by

no test coverage detected