DXGI_RATIONAL structure (dxgicommon.h)

Represents a rational number.

Syntax

typedef struct DXGI_RATIONAL {
  UINT Numerator;
  UINT Denominator;
} DXGI_RATIONAL;

Members

Numerator

Type: UINT

An unsigned integer value representing the top of the rational number.

Denominator

Type: UINT

An unsigned integer value representing the bottom of the rational number.

Remarks

This structure is a member of the DXGI_MODE_DESC structure.

The DXGI_RATIONAL structure operates under the following rules:

  • 0/0 is legal and will be interpreted as 0/1.
  • 0/anything is interpreted as zero.
  • If you are representing a whole number, the denominator should be 1.

Requirements

Requirement Value
Header dxgicommon.h (include DXGI.h)

See also

DXGI Structures