resonance 1.0.1
Loading...
Searching...
No Matches
GfxDevice::Rect Struct Reference

Rectangle of four floats. More...

#include <gfxdevice.h>

Public Attributes

float x
float y
float w
float h

Detailed Description

Rectangle of four floats.

SetupGsDrawContext() measures one in fractions of the display, and the debug overlay in GS primitive pixels. The name and the fields are inferred. The type is four floats aligned to a word rather than a Color. Renderer::Draw() copies one into mFeedbackRect with unaligned doubleword loads and stores (ldl, sdl), whereas SetClearColor() copies its Color with quadword loads and stores (lq, sq). The compiler emits a quadword access only for a 16-byte aligned type.

Member Data Documentation

◆ x

float GfxDevice::Rect::x

Left edge.

◆ y

float GfxDevice::Rect::y

Top edge.

◆ w

float GfxDevice::Rect::w

Width.

◆ h

float GfxDevice::Rect::h

Height.


The documentation for this struct was generated from the following file: