MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Shutdown

Method Shutdown

BindlessDeferred/BindlessDeferred.cpp:575–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void BindlessDeferred::Shutdown()
576{
577 for(uint64 i = 0; i < ArraySize_(sceneModels); ++i)
578 sceneModels[i].Shutdown();
579 meshRenderer.Shutdown();
580 skybox.Shutdown();
581 skyCache.Shutdown();
582 postProcessor.Shutdown();
583
584 decalBuffer.Shutdown();
585 decalBoundsBuffer.Shutdown();
586 decalClusterBuffer.Shutdown();
587 decalInstanceBuffer.Shutdown();
588 for(uint64 i = 0; i < ArraySize_(decalTextures); ++i)
589 decalTextures[i].Shutdown();
590
591 spotLightBuffer.Shutdown();
592 spotLightBoundsBuffer.Shutdown();
593 spotLightClusterBuffer.Shutdown();
594 spotLightInstanceBuffer.Shutdown();
595
596 DX12::Release(clusterRS);
597 clusterMSAATarget.Shutdown();
598
599 decalClusterVtxBuffer.Shutdown();
600 decalClusterIdxBuffer.Shutdown();
601
602 spotLightClusterVtxBuffer.Shutdown();
603 spotLightClusterIdxBuffer.Shutdown();
604
605 DX12::Release(deferredRootSignature);
606 DX12::Release(deferredCmdSignature);
607
608 deferredConstants.Shutdown();
609 msaaMaskConstants.Shutdown();
610 shadingConstants.Shutdown();
611 DX12::Release(msaaMaskRootSignature);
612 nonMsaaTileBuffer.Shutdown();
613 msaaTileBuffer.Shutdown();
614 nonMsaaArgsBuffer.Shutdown();
615 msaaArgsBuffer.Shutdown();
616 msaaMaskBuffer.Shutdown();
617
618 pickingBuffer.Shutdown();
619 DX12::Release(pickingRS);
620 pickingConstants.Shutdown();
621 for(uint64 i = 0; i < ArraySize_(pickingReadbackBuffers); ++i)
622 pickingReadbackBuffers[i].Shutdown();
623
624 clusterVisConstants.Shutdown();
625 DX12::Release(clusterVisRootSignature);
626
627 mainTarget.Shutdown();
628 tangentFrameTarget.Shutdown();
629 resolveTarget.Shutdown();
630 depthBuffer.Shutdown();
631 uvTarget.Shutdown();
632 uvGradientsTarget.Shutdown();

Callers 2

CreateRenderTargetsMethod · 0.45
InitializeSceneMethod · 0.45

Calls 1

ReleaseFunction · 0.85

Tested by

no test coverage detected