载入中...
搜索中...
未找到
DisplayOutputEncoding.h 文件参考
#include "graphics/Color.h"
#include <algorithm>
#include <cmath>
#include <cstdint>

浏览源代码.

类

struct  eve::graphics::display::Support
 Support public API. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::graphics
 卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局参数。 数据模型与渲染/交互逻辑见 CardTypes.h。
 
namespace  eve::graphics::display
 

枚举

enum class  eve::graphics::display::ActiveColorSpace : uint8_t { eve::graphics::display::Sdr = 0 , eve::graphics::display::ScRgb = 1 , eve::graphics::display::Hdr10 = 2 }
 Active present color encoding after swapchain selection. 更多...
 
enum class  eve::graphics::display::OutputMode : uint8_t { eve::graphics::display::Sdr = 0 , eve::graphics::display::Auto = 1 , eve::graphics::display::Hdr10 = 2 , eve::graphics::display::ScRgb = 3 }
 Requested present preference; Auto picks Hdr10 then ScRgb then Sdr. 更多...
 

函数

void eve::graphics::display::clampCalibration (float &paperWhiteNits, float &peakNits) noexcept
 Clamp paper-white / peak luminance into the engine-supported range.
 
float eve::graphics::display::packNits (float paperWhiteNits, float peakNits) noexcept
 Pack paper-white and peak nits into one float for the present resolve tint.
 
void eve::graphics::display::unpackNits (float packed, float &paperWhiteNits, float &peakNits) noexcept
 Unpack paper-white and peak nits from the present resolve tint channel.
 
float eve::graphics::display::packActiveMode (ActiveColorSpace space) noexcept
 Encode the active present mode into the resolve tint G channel.
 
float eve::graphics::display::packComposeLinearMode () noexcept
 Tint G value for compose-linear output (paper-white-relative, no OETF).
 
ActiveColorSpace eve::graphics::display::unpackActiveMode (float packed) noexcept
 Decode the present mode from the resolve tint G channel.
 
bool eve::graphics::display::isComposeLinearMode (float packed) noexcept
 True when the tint G channel requests compose-linear (mode 3).
 
Color eve::graphics::display::sceneResolveTint (bool aces, ActiveColorSpace space, bool attachmentEncodesSrgb, float paperWhiteNits, float peakNits) noexcept
 Build the Color tint used by the final scene present resolve.
 
Color eve::graphics::display::sceneComposeTint (bool aces, float paperWhiteNits, float peakNits) noexcept
 Build the Color tint for tonemapping into a linear HDR compose target.
 
Color eve::graphics::display::uiResolveTint (ActiveColorSpace space, float paperWhiteNits, float peakNits) noexcept
 Build the Color tint used when compositing SDR UI onto an HDR swapchain.
 
float eve::graphics::display::luminanceRec709 (float r, float g, float b) noexcept
 Luminance rec 709.
 
void eve::graphics::display::rec709ToRec2020 (float &r, float &g, float &b) noexcept
 Convert display-linear Rec.709 RGB into Rec.2020.
 
float eve::graphics::display::linearToPq (float v) noexcept
 Apply the ST.2084 PQ OETF to a [0,1] normalized luminance sample.
 
void eve::graphics::display::encodeHdr10 (float &r, float &g, float &b, float paperWhiteNits, float peakNits) noexcept
 Map filmic display-linear RGB (1 = paper white) into HDR10 PQ codes.
 
void eve::graphics::display::acesToDisplayLinear (float &r, float &g, float &b, float paperWhiteNits, float peakNits) noexcept
 Expand ACES [0,1] output into display-linear relative to paper white.
 
void eve::graphics::display::encodeScRgb (float &r, float &g, float &b, float paperWhiteNits, float peakNits) noexcept
 Map paper-white-relative display-linear RGB into scRGB (1.0 = 80 nits).
 

变量

constexpr float eve::graphics::display::kDefaultPaperWhiteNits = 200.f
 
constexpr float eve::graphics::display::kDefaultPeakNits = 1000.f