TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::d3d12::D3D12SceneRender Struct Reference

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>

Public Attributes

ID3D12GraphicsCommandList * commandList = nullptr
DXGI_FORMAT colorFormat = DXGI_FORMAT_UNKNOWN
DXGI_FORMAT depthFormat = DXGI_FORMAT_UNKNOWN
uint2 extent {}
size_t 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.
size_t depthStencilView = 0

Static Public Attributes

static constexpr GraphicsAPI kAPI = GraphicsAPI::D3D12

Detailed Description

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.

Member Data Documentation

◆ kAPI

GraphicsAPI tachyon::d3d12::D3D12SceneRender::kAPI = GraphicsAPI::D3D12
staticconstexpr

◆ 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: