DXGI_RATIONAL structure

Represents a rational number.

Syntax

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

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

   
Header dxgicommon.h (include DXGI.h)

See Also

DXGI Structures