语言English
  • C#
实验性: 此 API 处于实验阶段,未来可能会更改或移除。

GraphicsFormatUtility.IsHDRFormat

声明

public static bool IsHDRFormat(Experimental.Rendering.GraphicsFormat format);

声明

public static bool IsHDRFormat(TextureFormat format);

描述

如果格式能够表示 HDR 数据,则返回 true。否则返回 false。

能够表示超出典型 LDR 限制 1.0f 的值的格式应返回 true。请注意,某些根据此函数不符合 HDR 标准的格式能够表示略大的范围(例如 (-0.75 到 1.25) 比 LDR 格式通常的范围要大。使用 GraphicsFormatUtility.IsXRFormat 识别这些“扩展范围”格式。其他资源:GraphicsFormatUtility.IsXRFormat


Did you find this page useful? Please give it a rating: