CPU 侧全局常量
更多...
#include <DX12GlobalConst.h>
CPU 侧全局常量
- 注解
- 必须注意对齐,GPU侧的类布局可能不一致
◆ AlignedSize()
| unsigned DX12GlobalConst::AlignedSize |
( |
| ) |
|
|
static |
◆ Update()
◆ WriteToBatch()
把当前全局状态写入指定批次,供多个交换链复用同一帧状态。
◆ WriteToBuffer()
◆ AmbientLight
| DirectX::XMFLOAT4 z8::DX12GlobalConst::AmbientLight |
◆ Camera
| DirectX::XMFLOAT3 z8::DX12GlobalConst::Camera |
◆ LightCount
| uint32_t z8::DX12GlobalConst::LightCount = 0 |
◆ Lights
◆ MaxLights
◆ Padding
| float z8::DX12GlobalConst::Padding = 0.0f |
◆ ScreenSize
| DirectX::XMFLOAT2 z8::DX12GlobalConst::ScreenSize |
◆ TimeCost
| float z8::DX12GlobalConst::TimeCost |
◆ TimeTotal
| float z8::DX12GlobalConst::TimeTotal |
◆ UIOrigin
| DirectX::XMFLOAT2 z8::DX12GlobalConst::UIOrigin = {0.0f, 0.0f} |
UI 顶点仍保存 Layout 全局坐标;独立宿主用该原点映射到本地 NDC。
◆ UIScale
| float z8::DX12GlobalConst::UIScale = 1.0f |
96 DPI Layout 坐标到当前交换链物理像素的比例。
◆ ViewProj
| DirectX::XMFLOAT4X4A z8::DX12GlobalConst::ViewProj |
该结构体的文档由以下文件生成: