| 337 | } |
| 338 | |
| 339 | void MeshRenderer::Shutdown() |
| 340 | { |
| 341 | DestroyPSOs(); |
| 342 | sunShadowMap.Shutdown(); |
| 343 | spotLightShadowMap.Shutdown(); |
| 344 | spotLightShadowMatrices.Shutdown(); |
| 345 | materialTextureIndices.Shutdown(); |
| 346 | DX12::Release(mainPassRootSignature); |
| 347 | DX12::Release(gBufferRootSignature); |
| 348 | DX12::Release(depthRootSignature); |
| 349 | } |
| 350 | |
| 351 | void MeshRenderer::CreatePSOs(DXGI_FORMAT mainRTFormat, DXGI_FORMAT depthFormat, const DXGI_FORMAT* gBufferFormats, |
| 352 | uint64 numGBuffers, uint32 numMSAASamples) |
no test coverage detected