| 41 | } |
| 42 | |
| 43 | void PostProcessor::Render(ID3D12GraphicsCommandList* cmdList, const RenderTexture& input, const RenderTexture& output) |
| 44 | { |
| 45 | helper.Begin(cmdList); |
| 46 | |
| 47 | TempRenderTarget* bloomTarget = Bloom(cmdList, input); |
| 48 | |
| 49 | // Apply tone mapping |
| 50 | D3D12_CPU_DESCRIPTOR_HANDLE inputs[2] = { input.SRV(), bloomTarget->RT.SRV() }; |
| 51 | const RenderTexture* outputs[1] = { &output }; |
| 52 | helper.PostProcess(toneMap, "Tone Mapping", inputs, ArraySize_(inputs), outputs, ArraySize_(outputs)); |
| 53 | |
| 54 | bloomTarget->InUse = false; |
| 55 | |
| 56 | helper.End(); |
| 57 | } |
| 58 | |
| 59 | TempRenderTarget* PostProcessor::Bloom(ID3D12GraphicsCommandList* cmdList, const RenderTexture& input) |
| 60 | { |
nothing calls this directly
no test coverage detected