XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

DXGI_MODE_DESC BufferDesc

Last post 8/31/2007 11:48 AM by Brian Klamik. 1 replies.
  • 8/25/2007 8:13 PM

    DXGI_MODE_DESC BufferDesc

    This is a member of the DXGI_SWAP_CHAIN_DESC structure.

    I can understand the width, height, and format of a back buffer, but I don't understand what refresh rate, scanline ordering, and scaling has to do with the back buffer.  Those seem more like properties of the monitor.  Can someone explain?

    Also, I changed the refresh rate to nonsense values, and the swap chain created fine.  Maybe those properties are ignored?? 
  • 8/31/2007 11:48 AM In reply to

    Re: DXGI_MODE_DESC BufferDesc

    Those fields are used as full-screen display mode preferences. By default, DXGI swap chains hook Alt-Enter to provide applications with the ability to transition from Windowed to Fullscreen. When fullscreen, those fields indicate what type of preferences the application would like. As they are only preferences, numerous other factors affect which display mode properties are actually used, like which display modes are actually available.

    In particular, I believe these fields only provide information to affect the behavior of Alt-Enter entry into fullscreen, and other SetFullscreenState usage. 

    IIRC, an application can opt-out of the Alt-Enter behavior, and manually override this information (i.e. be more flexible about its desires) by using ResizeTarget. I don't think these preferences can modified, but they can only be ignored through manual ResizeTarget usage. Applications can present the user with results from GetDisplayModeList to manage such preferences.

Page 1 of 1 (2 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG