slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 静态 Public 属性 | Private 成员函数 | 所有成员列表
z8::DX12GlobalConst结构体 参考

CPU 侧全局常量 更多...

#include <DX12GlobalConst.h>

Public 成员函数

void Update (DX12Render *R)
 
void WriteToBatch (DX12RenderBatch &batch) const
 

静态 Public 成员函数

static unsigned AlignedSize ()
 

Public 属性

DirectX::XMFLOAT4X4A ViewProj
 
std::array< DX12Light, MaxLightsLights
 
DirectX::XMFLOAT4 AmbientLight
 
DirectX::XMFLOAT3 Camera
 
uint32_t LightCount = 0
 
DirectX::XMFLOAT2 ScreenSize
 
DirectX::XMFLOAT2 UIOrigin = {0.0f, 0.0f}
 
float TimeCost
 
float TimeTotal
 
float UIScale = 1.0f
 
float Padding = 0.0f
 

静态 Public 属性

static constexpr uint32_t MaxLights = 8
 

Private 成员函数

void WriteToBuffer (DX12Render *R) const
 

详细描述

CPU 侧全局常量

注解
必须注意对齐,GPU侧的类布局可能不一致

成员函数说明

◆ AlignedSize()

unsigned DX12GlobalConst::AlignedSize ( )
static
函数调用图:
这是这个函数的调用关系图:

◆ Update()

void DX12GlobalConst::Update ( DX12Render * R)
函数调用图:
这是这个函数的调用关系图:

◆ WriteToBatch()

void DX12GlobalConst::WriteToBatch ( DX12RenderBatch & batch) const

把当前全局状态写入指定批次,供多个交换链复用同一帧状态。

这是这个函数的调用关系图:

◆ WriteToBuffer()

void DX12GlobalConst::WriteToBuffer ( DX12Render * R) const
private
函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ AmbientLight

DirectX::XMFLOAT4 z8::DX12GlobalConst::AmbientLight

◆ Camera

DirectX::XMFLOAT3 z8::DX12GlobalConst::Camera

◆ LightCount

uint32_t z8::DX12GlobalConst::LightCount = 0

◆ Lights

std::array<DX12Light, MaxLights> z8::DX12GlobalConst::Lights

◆ MaxLights

constexpr uint32_t z8::DX12GlobalConst::MaxLights = 8
staticconstexpr

◆ 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

该结构体的文档由以下文件生成: