Creates all required render targets
| 463 | |
| 464 | // Creates all required render targets |
| 465 | void BakingLab::CreateRenderTargets() |
| 466 | { |
| 467 | ID3D11Device* device = deviceManager.Device(); |
| 468 | uint32 width = deviceManager.BackBufferWidth(); |
| 469 | uint32 height = deviceManager.BackBufferHeight(); |
| 470 | |
| 471 | const uint32 NumSamples = AppSettings::NumMSAASamples(); |
| 472 | const uint32 Quality = NumSamples > 0 ? D3D11_STANDARD_MULTISAMPLE_PATTERN : 0; |
| 473 | colorTargetMSAA.Initialize(device, width, height, DXGI_FORMAT_R16G16B16A16_FLOAT, 1, NumSamples, Quality); |
| 474 | depthBuffer.Initialize(device, width, height, DXGI_FORMAT_D24_UNORM_S8_UINT, true, NumSamples, Quality); |
| 475 | velocityTargetMSAA.Initialize(device, width, height, DXGI_FORMAT_R16G16_FLOAT, 1, NumSamples, Quality); |
| 476 | |
| 477 | colorResolveTarget.Initialize(device, width, height, colorTargetMSAA.Format, 1, 1, 0); |
| 478 | prevFrameTarget.Initialize(device, width, height, colorTargetMSAA.Format, 1, 1, 0); |
| 479 | readbackTexture.Initialize(device, width, height, colorTargetMSAA.Format, 1, 1, 0); |
| 480 | |
| 481 | meshRenderer.OnResize(width, height); |
| 482 | } |
| 483 | |
| 484 | void BakingLab::Update(const Timer& timer) |
| 485 | { |
nothing calls this directly
no test coverage detected