| 104 | }; |
| 105 | |
| 106 | void SHTest::Render(const Timer& timer) |
| 107 | { |
| 108 | ID3D12GraphicsCommandList10* cmdList = DX12::CmdList; |
| 109 | |
| 110 | CPUProfileBlock cpuProfileBlock("Render"); |
| 111 | ProfileBlock gpuProfileBlock(cmdList, "Render Total"); |
| 112 | |
| 113 | D3D12_CPU_DESCRIPTOR_HANDLE rtvHandles[1] = { swapChain.BackBuffer().RTV }; |
| 114 | cmdList->OMSetRenderTargets(1, rtvHandles, false, nullptr); |
| 115 | |
| 116 | float clearColor[4] = { 0.2f, 0.4f, 0.8f, 1.0f }; |
| 117 | cmdList->ClearRenderTargetView(rtvHandles[0], clearColor, 0, nullptr); |
| 118 | |
| 119 | DX12::SetViewport(cmdList, swapChain.Width(), swapChain.Height()); |
| 120 | |
| 121 | const Test tests[] |
| 122 | { |
| 123 | { |
| 124 | .PSO = testPSO, |
| 125 | .TestMode = TestMode_L1, |
| 126 | .Name = L"L1", |
| 127 | }, |
| 128 | |
| 129 | { |
| 130 | .PSO = testPSO, |
| 131 | .TestMode = TestMode_L1_RGB, |
| 132 | .Name = L"L1_RGB", |
| 133 | }, |
| 134 | |
| 135 | { |
| 136 | .PSO = testPSO, |
| 137 | .TestMode = TestMode_L2, |
| 138 | .Name = L"L2", |
| 139 | }, |
| 140 | |
| 141 | { |
| 142 | .PSO = testPSO, |
| 143 | .TestMode = TestMode_L2_RGB, |
| 144 | .Name = L"L2_RGB", |
| 145 | }, |
| 146 | |
| 147 | { |
| 148 | .PSO = testPSO, |
| 149 | .TestMode = TestMode_L1_FP16, |
| 150 | .Name = L"L1_FP16", |
| 151 | }, |
| 152 | |
| 153 | { |
| 154 | .PSO = testPSO, |
| 155 | .TestMode = TestMode_L1_RGB_FP16, |
| 156 | .Name = L"L1_RGB_FP16", |
| 157 | }, |
| 158 | |
| 159 | { |
| 160 | .PSO = testPSO, |
| 161 | .TestMode = TestMode_L2_FP16, |
| 162 | .Name = L"L2_FP16", |
| 163 | }, |
nothing calls this directly
no test coverage detected