class RenderTargetProperties

Contains various properties that describe a render target.

Public

Methods

~RenderTargetProperties

virtual ~RenderTargetProperties() noexcept = default

Fields

Width

u32 Width

Width of the render target, in pixels.

Height

u32 Height

Height of the render target, in pixels.

Priority

i32 Priority

Controls in what order is the render target rendered to compared to other render targets.

Targets with higher priority will be rendered before ones with lower priority.

DPIScale

float DPIScale

Returns currently set DPI scale.

Scale of 1.0 corresponds to 96 DPI. physical pixel = logical pixel * DPI scale logical pixel = physical pixel / DPI scale;

HwGamma

bool HwGamma

True if pixels written to the render target will be gamma corrected.

RequiresTextureFlipping

bool RequiresTextureFlipping

Does the texture need to be vertically flipped because of different screen space coordinate systems. (Determines is origin top left or bottom left.

Engine default is top left.)

IsWindow

bool IsWindow

True if the target is a window, false if an offscreen target.

MultisampleCount

u32 MultisampleCount

Controls how many samples are used for multisampling. (0 or 1 if multisampling is not used).