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

Method Render

BindlessDeferred/PostProcessor.cpp:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void 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
59TempRenderTarget* PostProcessor::Bloom(ID3D12GraphicsCommandList* cmdList, const RenderTexture& input)
60{

Callers

nothing calls this directly

Calls 4

PostProcessMethod · 0.80
BeginMethod · 0.45
SRVMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected