[{"data":1,"prerenderedAt":675},["ShallowReactive",2],{"w4lwUJogqu":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":674,"_id":4},"vkGetDisplayModePropertiesKHR","Query the set of mode properties supported by the display","VK_KHR_display","protos",[],{"type":10,"children":11,"toc":672},"root",[12,20,324,394,499,666],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","Each display has one or more supported modes associated with it by default.\nThese built-in modes are queried by calling:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,140],{"type":13,"tag":25,"props":26,"children":32},"pre",{"className":27,"code":28,"filename":29,"language":30,"meta":31,"style":31},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkGetDisplayModePropertiesKHR(\n VkPhysicalDevice physicalDevice,\n VkDisplayKHR display,\n uint32_t* pPropertyCount,\n VkDisplayModePropertiesKHR* pProperties);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,97,116],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,54],{"type":13,"tag":38,"props":44,"children":46},{"style":45},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[47],{"type":18,"value":48},"VkResult ",{"type":13,"tag":38,"props":50,"children":52},{"style":51},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[53],{"type":18,"value":4},{"type":13,"tag":38,"props":55,"children":56},{"style":45},[57],{"type":18,"value":58},"(\n",{"type":13,"tag":38,"props":60,"children":62},{"class":40,"line":61},2,[63,68,74],{"type":13,"tag":38,"props":64,"children":65},{"style":45},[66],{"type":18,"value":67}," VkPhysicalDevice ",{"type":13,"tag":38,"props":69,"children":71},{"style":70},"--shiki-default:#953800;--shiki-dark:#FFA657",[72],{"type":18,"value":73},"physicalDevice",{"type":13,"tag":38,"props":75,"children":76},{"style":45},[77],{"type":18,"value":78},",\n",{"type":13,"tag":38,"props":80,"children":82},{"class":40,"line":81},3,[83,88,93],{"type":13,"tag":38,"props":84,"children":85},{"style":45},[86],{"type":18,"value":87}," VkDisplayKHR ",{"type":13,"tag":38,"props":89,"children":90},{"style":70},[91],{"type":18,"value":92},"display",{"type":13,"tag":38,"props":94,"children":95},{"style":45},[96],{"type":18,"value":78},{"type":13,"tag":38,"props":98,"children":100},{"class":40,"line":99},4,[101,107,112],{"type":13,"tag":38,"props":102,"children":104},{"style":103},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[105],{"type":18,"value":106}," uint32_t*",{"type":13,"tag":38,"props":108,"children":109},{"style":70},[110],{"type":18,"value":111}," pPropertyCount",{"type":13,"tag":38,"props":113,"children":114},{"style":45},[115],{"type":18,"value":78},{"type":13,"tag":38,"props":117,"children":119},{"class":40,"line":118},5,[120,125,130,135],{"type":13,"tag":38,"props":121,"children":122},{"style":45},[123],{"type":18,"value":124}," VkDisplayModePropertiesKHR",{"type":13,"tag":38,"props":126,"children":127},{"style":103},[128],{"type":18,"value":129},"*",{"type":13,"tag":38,"props":131,"children":132},{"style":70},[133],{"type":18,"value":134}," pProperties",{"type":13,"tag":38,"props":136,"children":137},{"style":45},[138],{"type":18,"value":139},");\n",{"type":13,"tag":25,"props":141,"children":146},{"className":142,"code":143,"filename":144,"language":145,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_display_mode_properties_khr(\n physical_device: vk::PhysicalDevice,\n display: vk::DisplayKHR,\n p_property_count: *mut u32,\n p_properties: *mut vk::DisplayModePropertiesKHR,\n) -> vk::Result;\n","Rust","rs",[147],{"type":13,"tag":34,"props":148,"children":149},{"__ignoreMap":31},[150,172,204,233,259,292],{"type":13,"tag":38,"props":151,"children":152},{"class":40,"line":41},[153,158,163,168],{"type":13,"tag":38,"props":154,"children":155},{"style":103},[156],{"type":18,"value":157},"pub",{"type":13,"tag":38,"props":159,"children":160},{"style":103},[161],{"type":18,"value":162}," fn",{"type":13,"tag":38,"props":164,"children":165},{"style":51},[166],{"type":18,"value":167}," get_display_mode_properties_khr",{"type":13,"tag":38,"props":169,"children":170},{"style":45},[171],{"type":18,"value":58},{"type":13,"tag":38,"props":173,"children":174},{"class":40,"line":61},[175,180,185,190,195,200],{"type":13,"tag":38,"props":176,"children":177},{"style":45},[178],{"type":18,"value":179}," physical_device",{"type":13,"tag":38,"props":181,"children":182},{"style":103},[183],{"type":18,"value":184},":",{"type":13,"tag":38,"props":186,"children":187},{"style":70},[188],{"type":18,"value":189}," vk",{"type":13,"tag":38,"props":191,"children":192},{"style":103},[193],{"type":18,"value":194},"::",{"type":13,"tag":38,"props":196,"children":197},{"style":70},[198],{"type":18,"value":199},"PhysicalDevice",{"type":13,"tag":38,"props":201,"children":202},{"style":45},[203],{"type":18,"value":78},{"type":13,"tag":38,"props":205,"children":206},{"class":40,"line":81},[207,212,216,220,224,229],{"type":13,"tag":38,"props":208,"children":209},{"style":45},[210],{"type":18,"value":211}," display",{"type":13,"tag":38,"props":213,"children":214},{"style":103},[215],{"type":18,"value":184},{"type":13,"tag":38,"props":217,"children":218},{"style":70},[219],{"type":18,"value":189},{"type":13,"tag":38,"props":221,"children":222},{"style":103},[223],{"type":18,"value":194},{"type":13,"tag":38,"props":225,"children":226},{"style":70},[227],{"type":18,"value":228},"DisplayKHR",{"type":13,"tag":38,"props":230,"children":231},{"style":45},[232],{"type":18,"value":78},{"type":13,"tag":38,"props":234,"children":235},{"class":40,"line":99},[236,241,245,250,255],{"type":13,"tag":38,"props":237,"children":238},{"style":45},[239],{"type":18,"value":240}," p_property_count",{"type":13,"tag":38,"props":242,"children":243},{"style":103},[244],{"type":18,"value":184},{"type":13,"tag":38,"props":246,"children":247},{"style":103},[248],{"type":18,"value":249}," *mut",{"type":13,"tag":38,"props":251,"children":252},{"style":70},[253],{"type":18,"value":254}," u32",{"type":13,"tag":38,"props":256,"children":257},{"style":45},[258],{"type":18,"value":78},{"type":13,"tag":38,"props":260,"children":261},{"class":40,"line":118},[262,267,271,275,279,283,288],{"type":13,"tag":38,"props":263,"children":264},{"style":45},[265],{"type":18,"value":266}," p_properties",{"type":13,"tag":38,"props":268,"children":269},{"style":103},[270],{"type":18,"value":184},{"type":13,"tag":38,"props":272,"children":273},{"style":103},[274],{"type":18,"value":249},{"type":13,"tag":38,"props":276,"children":277},{"style":70},[278],{"type":18,"value":189},{"type":13,"tag":38,"props":280,"children":281},{"style":103},[282],{"type":18,"value":194},{"type":13,"tag":38,"props":284,"children":285},{"style":70},[286],{"type":18,"value":287},"DisplayModePropertiesKHR",{"type":13,"tag":38,"props":289,"children":290},{"style":45},[291],{"type":18,"value":78},{"type":13,"tag":38,"props":293,"children":295},{"class":40,"line":294},6,[296,301,306,310,314,319],{"type":13,"tag":38,"props":297,"children":298},{"style":45},[299],{"type":18,"value":300},") ",{"type":13,"tag":38,"props":302,"children":303},{"style":103},[304],{"type":18,"value":305},"->",{"type":13,"tag":38,"props":307,"children":308},{"style":70},[309],{"type":18,"value":189},{"type":13,"tag":38,"props":311,"children":312},{"style":103},[313],{"type":18,"value":194},{"type":13,"tag":38,"props":315,"children":316},{"style":70},[317],{"type":18,"value":318},"Result",{"type":13,"tag":38,"props":320,"children":321},{"style":45},[322],{"type":18,"value":323},";\n",{"type":13,"tag":325,"props":326,"children":327},"ul",{},[328,346,356,367],{"type":13,"tag":329,"props":330,"children":331},"li",{},[332,337,339,344],{"type":13,"tag":34,"props":333,"children":335},{"className":334},[],[336],{"type":18,"value":73},{"type":18,"value":338}," is the physical device associated with\n",{"type":13,"tag":34,"props":340,"children":342},{"className":341},[],[343],{"type":18,"value":92},{"type":18,"value":345},".",{"type":13,"tag":329,"props":347,"children":348},{},[349,354],{"type":13,"tag":34,"props":350,"children":352},{"className":351},[],[353],{"type":18,"value":92},{"type":18,"value":355}," is the display to query.",{"type":13,"tag":329,"props":357,"children":358},{},[359,365],{"type":13,"tag":34,"props":360,"children":362},{"className":361},[],[363],{"type":18,"value":364},"pPropertyCount",{"type":18,"value":366}," is a pointer to an integer related to the number of\ndisplay modes available or queried, as described below.",{"type":13,"tag":329,"props":368,"children":369},{},[370,376,378,384,386,392],{"type":13,"tag":34,"props":371,"children":373},{"className":372},[],[374],{"type":18,"value":375},"pProperties",{"type":18,"value":377}," is either ",{"type":13,"tag":34,"props":379,"children":381},{"className":380},[],[382],{"type":18,"value":383},"NULL",{"type":18,"value":385}," or a pointer to an array of\n",{"type":13,"tag":34,"props":387,"children":389},{"className":388},[],[390],{"type":18,"value":391},"VkDisplayModePropertiesKHR",{"type":18,"value":393}," structures.",{"type":13,"tag":14,"props":395,"children":396},{},[397,399,404,406,411,413,418,420,425,427,432,434,439,441,446,448,453,455,460,462,467,469,474,476,481,483,489,491,497],{"type":18,"value":398},"If ",{"type":13,"tag":34,"props":400,"children":402},{"className":401},[],[403],{"type":18,"value":375},{"type":18,"value":405}," is ",{"type":13,"tag":34,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":383},{"type":18,"value":412},", then the number of display modes available\non the specified ",{"type":13,"tag":34,"props":414,"children":416},{"className":415},[],[417],{"type":18,"value":92},{"type":18,"value":419}," for ",{"type":13,"tag":34,"props":421,"children":423},{"className":422},[],[424],{"type":18,"value":73},{"type":18,"value":426}," is returned in\n",{"type":13,"tag":34,"props":428,"children":430},{"className":429},[],[431],{"type":18,"value":364},{"type":18,"value":433},".\nOtherwise, ",{"type":13,"tag":34,"props":435,"children":437},{"className":436},[],[438],{"type":18,"value":364},{"type":18,"value":440}," ",{"type":13,"tag":442,"props":443,"children":445},"normative",{"type":444},"must",[],{"type":18,"value":447}," point to a variable set by the\napplication to the number of elements in the ",{"type":13,"tag":34,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":375},{"type":18,"value":454}," array, and on\nreturn the variable is overwritten with the number of structures actually\nwritten to ",{"type":13,"tag":34,"props":456,"children":458},{"className":457},[],[459],{"type":18,"value":375},{"type":18,"value":461},".\nIf the value of ",{"type":13,"tag":34,"props":463,"children":465},{"className":464},[],[466],{"type":18,"value":364},{"type":18,"value":468}," is less than the number of display\nmodes for ",{"type":13,"tag":34,"props":470,"children":472},{"className":471},[],[473],{"type":18,"value":73},{"type":18,"value":475},", at most ",{"type":13,"tag":34,"props":477,"children":479},{"className":478},[],[480],{"type":18,"value":364},{"type":18,"value":482}," structures will\nbe written, and ",{"type":13,"tag":34,"props":484,"children":486},{"className":485},[],[487],{"type":18,"value":488},"VK_INCOMPLETE",{"type":18,"value":490}," will be returned instead of\n",{"type":13,"tag":34,"props":492,"children":494},{"className":493},[],[495],{"type":18,"value":496},"VK_SUCCESS",{"type":18,"value":498},", to indicate that not all the available display modes were\nreturned.",{"type":13,"tag":500,"props":501,"children":503},"validity-group",{"name":502},"Valid Usage (Implicit)",[504,532,556,582,643],{"type":13,"tag":505,"props":506,"children":508},"validity-field",{"name":507},"VUID-vkGetDisplayModePropertiesKHR-physicalDevice-parameter",[509],{"type":13,"tag":14,"props":510,"children":511},{},[512,517,518,521,523,530],{"type":13,"tag":34,"props":513,"children":515},{"className":514},[],[516],{"type":18,"value":73},{"type":18,"value":440},{"type":13,"tag":442,"props":519,"children":520},{"type":444},[],{"type":18,"value":522}," be a valid ",{"type":13,"tag":524,"props":525,"children":527},"a",{"href":526},"/man/VkPhysicalDevice",[528],{"type":18,"value":529},"VkPhysicalDevice",{"type":18,"value":531}," handle",{"type":13,"tag":505,"props":533,"children":535},{"name":534},"VUID-vkGetDisplayModePropertiesKHR-display-parameter",[536],{"type":13,"tag":14,"props":537,"children":538},{},[539,544,545,548,549,555],{"type":13,"tag":34,"props":540,"children":542},{"className":541},[],[543],{"type":18,"value":92},{"type":18,"value":440},{"type":13,"tag":442,"props":546,"children":547},{"type":444},[],{"type":18,"value":522},{"type":13,"tag":524,"props":550,"children":552},{"href":551},"/man/VkDisplayKHR",[553],{"type":18,"value":554},"VkDisplayKHR",{"type":18,"value":531},{"type":13,"tag":505,"props":557,"children":559},{"name":558},"VUID-vkGetDisplayModePropertiesKHR-pPropertyCount-parameter",[560],{"type":13,"tag":14,"props":561,"children":562},{},[563,568,569,572,574,580],{"type":13,"tag":34,"props":564,"children":566},{"className":565},[],[567],{"type":18,"value":364},{"type":18,"value":440},{"type":13,"tag":442,"props":570,"children":571},{"type":444},[],{"type":18,"value":573}," be a valid pointer to a ",{"type":13,"tag":34,"props":575,"children":577},{"className":576},[],[578],{"type":18,"value":579},"uint32_t",{"type":18,"value":581}," value",{"type":13,"tag":505,"props":583,"children":585},{"name":584},"VUID-vkGetDisplayModePropertiesKHR-pProperties-parameter",[586],{"type":13,"tag":14,"props":587,"children":588},{},[589,591,596,598,604,606,611,612,617,619,624,625,628,630,635,636,641],{"type":18,"value":590},"If the value referenced by ",{"type":13,"tag":34,"props":592,"children":594},{"className":593},[],[595],{"type":18,"value":364},{"type":18,"value":597}," is not ",{"type":13,"tag":34,"props":599,"children":601},{"className":600},[],[602],{"type":18,"value":603},"0",{"type":18,"value":605},", and ",{"type":13,"tag":34,"props":607,"children":609},{"className":608},[],[610],{"type":18,"value":375},{"type":18,"value":597},{"type":13,"tag":34,"props":613,"children":615},{"className":614},[],[616],{"type":18,"value":383},{"type":18,"value":618},", ",{"type":13,"tag":34,"props":620,"children":622},{"className":621},[],[623],{"type":18,"value":375},{"type":18,"value":440},{"type":13,"tag":442,"props":626,"children":627},{"type":444},[],{"type":18,"value":629}," be a valid pointer to an array of ",{"type":13,"tag":34,"props":631,"children":633},{"className":632},[],[634],{"type":18,"value":364},{"type":18,"value":440},{"type":13,"tag":524,"props":637,"children":639},{"href":638},"/man/VkDisplayModePropertiesKHR",[640],{"type":18,"value":391},{"type":18,"value":642}," structures",{"type":13,"tag":505,"props":644,"children":646},{"name":645},"VUID-vkGetDisplayModePropertiesKHR-display-parent",[647],{"type":13,"tag":14,"props":648,"children":649},{},[650,655,656,659,661],{"type":13,"tag":34,"props":651,"children":653},{"className":652},[],[654],{"type":18,"value":92},{"type":18,"value":440},{"type":13,"tag":442,"props":657,"children":658},{"type":444},[],{"type":18,"value":660}," have been created, allocated, or retrieved from ",{"type":13,"tag":34,"props":662,"children":664},{"className":663},[],[665],{"type":18,"value":73},{"type":13,"tag":667,"props":668,"children":669},"style",{},[670],{"type":18,"value":671},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":31,"searchDepth":61,"depth":61,"links":673},[],"markdown",1725732617891]