Struct CRTHDRDisplay
What an HDR display reports about its luminance, as a snapshot for one frame.
Inherited Members
Namespace: Scylla.TextMode.CRT
Assembly: ScyllaTextMode.CRT.dll
Syntax
public readonly struct CRTHDRDisplay
Remarks
Get one from GetDisplay(Camera). Paper white is the luminance the game uses for white text and interface. The range between paper white and MaxNits is the headroom that HDR mask mode uses; see Headroom(in CRTHDRDisplay, float).
Constructors
CRTHDRDisplay(bool, bool, float, float, float)
Creates a display snapshot.
Declaration
public CRTHDRDisplay(bool available, bool active, float paperWhiteNits, float minNits, float maxNits)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | available | Whether the display can show HDR. |
| bool | active | Whether HDR output is switched on. |
| float | paperWhiteNits | Paper white in nits. |
| float | minNits | Lowest luminance in nits. |
| float | maxNits | Highest luminance in nits. |
Fields
Active
Whether HDR output is switched on and reaches the picture.
Declaration
public readonly bool Active
Field Value
| Type | Description |
|---|---|
| bool |
Available
Whether the display can show HDR at all.
Declaration
public readonly bool Available
Field Value
| Type | Description |
|---|---|
| bool |
MaxNits
Highest luminance in nits the display shows.
Declaration
public readonly float MaxNits
Field Value
| Type | Description |
|---|---|
| float |
MinNits
Lowest luminance in nits the display shows.
Declaration
public readonly float MinNits
Field Value
| Type | Description |
|---|---|
| float |
PaperWhiteNits
Luminance in nits that the game uses for white text and interface, called paper white.
Declaration
public readonly float PaperWhiteNits
Field Value
| Type | Description |
|---|---|
| float |
Properties
SDR
Gets a standard dynamic range display: not available, not active, no headroom.
Declaration
public static CRTHDRDisplay SDR { get; }
Property Value
| Type | Description |
|---|---|
| CRTHDRDisplay |