MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / ClearCubemap

Function ClearCubemap

PBR/src/PBR_Renderer.cpp:234–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static void ClearCubemap(IDeviceContext* pCtx, ITexture* pCubemap)
235{
236 ProcessCubemapFaces(pCtx, pCubemap, [pCtx](ITextureView* pRTV, Uint32 mip, Uint32 face) {
237 pCtx->ClearRenderTarget(pRTV, nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
238 });
239}
240
241PBR_Renderer::PBR_Renderer(IRenderDevice* pDevice,
242 IRenderStateCache* pStateCache,

Callers 1

PBR_RendererMethod · 0.85

Calls 2

ProcessCubemapFacesFunction · 0.85
ClearRenderTargetMethod · 0.80

Tested by

no test coverage detected