951 B
951 B
title, date, excerpt, tags, rating
| title | date | excerpt | tags | rating | |||
|---|---|---|---|---|---|---|---|
| PS5支持 | 2026-05-03 00:00:00 | PS5 Feature Level 定义和 GBuffer 格式适配 |
|
⭐ |
PS5 支持
返回 Platform
概述
PS5 平台的修改相对较少,主要是 Feature Level 定义和 GBuffer 格式的平台差异处理。
Feature Level
在 Public/Platform.ush 中为 PS5 添加 SM5 Feature Level:
#elif PS5_PROFILE
#define FEATURE_LEVEL FEATURE_LEVEL_SM5
GBuffer 格式适配
Specular GBuffer 在 PS5 上保持标准格式,仅在非 PS5 平台降级为 PF_A8:
// SceneRenderTargets.cpp
#if !PS5_PLATFORM
SpecularGBufferFormat = PF_A8; // 降低精度节省带宽
#endif
参见 GBuffer修改。
修改文件列表
| 文件 | 修改类型 |
|---|---|
Shaders/Public/Platform.ush |
Feature Level 定义 |
Source/Runtime/Renderer/Private/SceneRenderTargets.cpp |
GBuffer 格式判断 |