# RH_Buffer
inline function RH_Buffer()Returns the high-resolution target buffer.
src/r_hires.mlOwns the optional high-resolution world-render target.
doomdef.ml → src/doomdef.mlr_renderer.ml → src/r_renderer.mlr_upscaled.ml → src/r_upscaled.mlinline function RH_Buffer()Returns the high-resolution target buffer.
rh_bufferHolds the optional rh buffer resource used by the r hires subsystem.
function RH_Clear(color)Clears the high-resolution world target.
| Parameter | Type | Default | Description |
|---|---|---|---|
color | dynamic | — | Doom palette index used for drawing. |
rh_enabledTracks whether rh enabled is active in the r hires subsystem.
rh_force_logicalTracks whether rh force logical is active in the r hires subsystem.
inline function RH_Height()Returns the active world target height.
rh_heightTracks the mutable rh height value used by the r hires subsystem.
function RH_Init()Initializes the high-resolution world target from RU render scale.
inline function RH_IsActive()Returns true when world rendering should use the high-resolution target.
rh_scaleTracks the mutable rh scale value used by the r hires subsystem.
function RH_SetForceLogical(v)Applies a validated override that keeps world rendering on the logical-resolution target even when HD assets are available.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
inline function RH_Width()Returns the active world target width.
rh_widthTracks the mutable rh width value used by the r hires subsystem.