What GraphicsContext::RenderScene's record gets on Direct3D 12 (ScenePayload::As): the window frame's command list with the scene's color and depth textures set as its render targets (color cleared to the scene's clear color, depth to 1), and the viewport and scissor set to all of it.
More...
#include <gui_core/graphics/d3d12/d3d12_graphics_context.h>
What GraphicsContext::RenderScene's record gets on Direct3D 12 (ScenePayload::As): the window frame's command list with the scene's color and depth textures set as its render targets (color cleared to the scene's clear color, depth to 1), and the viewport and scissor set to all of it.
Draw with your own root signature, pipeline and descriptor heaps; the UI sets its own again after. The textures are in the RENDER_TARGET and DEPTH_WRITE states: leave them so.
◆ kAPI
◆ commandList
| ID3D12GraphicsCommandList* tachyon::d3d12::D3D12SceneRender::commandList = nullptr |
◆ colorFormat
| DXGI_FORMAT tachyon::d3d12::D3D12SceneRender::colorFormat = DXGI_FORMAT_UNKNOWN |
◆ depthFormat
| DXGI_FORMAT tachyon::d3d12::D3D12SceneRender::depthFormat = DXGI_FORMAT_UNKNOWN |
◆ extent
| uint2 tachyon::d3d12::D3D12SceneRender::extent {} |
◆ renderTargetView
| size_t tachyon::d3d12::D3D12SceneRender::renderTargetView = 0 |
The views the targets are set with, as D3D12_CPU_DESCRIPTOR_HANDLE::ptr: to clear part of them, or set them again after drawing elsewhere.
◆ depthStencilView
| size_t tachyon::d3d12::D3D12SceneRender::depthStencilView = 0 |
The documentation for this struct was generated from the following file: