Do DXGI_MODE_DESC1 Parameters need updating in the Docs?

CDev-8220 220 Reputation points
2025-02-22T14:32:19.32+00:00

Just a question...

I'm trying to fill the DXGI_MODE_DESC1 as specified.

typedef struct DXGI_MODE_DESC1 {
  UINT                     Width;
  UINT                     Height;
  DXGI_RATIONAL            RefreshRate;
  DXGI_FORMAT              Format;
  DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
  DXGI_MODE_SCALING        Scaling;
  BOOL                     Stereo;
} DXGI_MODE_DESC1;

However, I am getting errors when I follow this, order.

dmd1

Changing up the order of the parameters, does remove the errors.

dmd2

Am I misunderstanding.... Is the order, as specified, important (I thought it did), or it does not matter?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,861 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 47,256 Reputation points
    2025-02-22T15:47:39.99+00:00

    The third member is of type DXGI_RATIONAL. This is a struct containing two UINT members.

    So passing a single UINT value of 60 is the source of the problem for DXGI_MODE_DESC1. Also the posted image is initializing a different type - DXGI_MODE_DESC.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.