[{"data":1,"prerenderedAt":683},["ShallowReactive",2],{"tLNrzsSjfM":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":682,"_id":4},"vkGetPhysicalDeviceSurfacePresentModes2EXT","Query supported presentation modes","VK_EXT_full_screen_exclusive","protos",[],{"type":10,"children":11,"toc":680},"root",[12,20,338,424,442,537,674],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","Alternatively, to query the supported presentation modes for a surface\ncombined with select other fixed swapchain creation parameters, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,149],{"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 vkGetPhysicalDeviceSurfacePresentModes2EXT(\n VkPhysicalDevice physicalDevice,\n const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,\n uint32_t* pPresentModeCount,\n VkPresentModeKHR* pPresentModes);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,108,126],{"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,89,94,99,104],{"type":13,"tag":38,"props":84,"children":86},{"style":85},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[87],{"type":18,"value":88}," const",{"type":13,"tag":38,"props":90,"children":91},{"style":45},[92],{"type":18,"value":93}," VkPhysicalDeviceSurfaceInfo2KHR",{"type":13,"tag":38,"props":95,"children":96},{"style":85},[97],{"type":18,"value":98},"*",{"type":13,"tag":38,"props":100,"children":101},{"style":70},[102],{"type":18,"value":103}," pSurfaceInfo",{"type":13,"tag":38,"props":105,"children":106},{"style":45},[107],{"type":18,"value":78},{"type":13,"tag":38,"props":109,"children":111},{"class":40,"line":110},4,[112,117,122],{"type":13,"tag":38,"props":113,"children":114},{"style":85},[115],{"type":18,"value":116}," uint32_t*",{"type":13,"tag":38,"props":118,"children":119},{"style":70},[120],{"type":18,"value":121}," pPresentModeCount",{"type":13,"tag":38,"props":123,"children":124},{"style":45},[125],{"type":18,"value":78},{"type":13,"tag":38,"props":127,"children":129},{"class":40,"line":128},5,[130,135,139,144],{"type":13,"tag":38,"props":131,"children":132},{"style":45},[133],{"type":18,"value":134}," VkPresentModeKHR",{"type":13,"tag":38,"props":136,"children":137},{"style":85},[138],{"type":18,"value":98},{"type":13,"tag":38,"props":140,"children":141},{"style":70},[142],{"type":18,"value":143}," pPresentModes",{"type":13,"tag":38,"props":145,"children":146},{"style":45},[147],{"type":18,"value":148},");\n",{"type":13,"tag":25,"props":150,"children":155},{"className":151,"code":152,"filename":153,"language":154,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_physical_device_surface_present_modes2_ext(\n physical_device: vk::PhysicalDevice,\n p_surface_info: *const vk::PhysicalDeviceSurfaceInfo2KHR,\n p_present_mode_count: *mut u32,\n p_present_modes: *mut vk::PresentModeKHR,\n) -> vk::Result;\n","Rust","rs",[156],{"type":13,"tag":34,"props":157,"children":158},{"__ignoreMap":31},[159,181,213,247,273,306],{"type":13,"tag":38,"props":160,"children":161},{"class":40,"line":41},[162,167,172,177],{"type":13,"tag":38,"props":163,"children":164},{"style":85},[165],{"type":18,"value":166},"pub",{"type":13,"tag":38,"props":168,"children":169},{"style":85},[170],{"type":18,"value":171}," fn",{"type":13,"tag":38,"props":173,"children":174},{"style":51},[175],{"type":18,"value":176}," get_physical_device_surface_present_modes2_ext",{"type":13,"tag":38,"props":178,"children":179},{"style":45},[180],{"type":18,"value":58},{"type":13,"tag":38,"props":182,"children":183},{"class":40,"line":61},[184,189,194,199,204,209],{"type":13,"tag":38,"props":185,"children":186},{"style":45},[187],{"type":18,"value":188}," physical_device",{"type":13,"tag":38,"props":190,"children":191},{"style":85},[192],{"type":18,"value":193},":",{"type":13,"tag":38,"props":195,"children":196},{"style":70},[197],{"type":18,"value":198}," vk",{"type":13,"tag":38,"props":200,"children":201},{"style":85},[202],{"type":18,"value":203},"::",{"type":13,"tag":38,"props":205,"children":206},{"style":70},[207],{"type":18,"value":208},"PhysicalDevice",{"type":13,"tag":38,"props":210,"children":211},{"style":45},[212],{"type":18,"value":78},{"type":13,"tag":38,"props":214,"children":215},{"class":40,"line":81},[216,221,225,230,234,238,243],{"type":13,"tag":38,"props":217,"children":218},{"style":45},[219],{"type":18,"value":220}," p_surface_info",{"type":13,"tag":38,"props":222,"children":223},{"style":85},[224],{"type":18,"value":193},{"type":13,"tag":38,"props":226,"children":227},{"style":85},[228],{"type":18,"value":229}," *const",{"type":13,"tag":38,"props":231,"children":232},{"style":70},[233],{"type":18,"value":198},{"type":13,"tag":38,"props":235,"children":236},{"style":85},[237],{"type":18,"value":203},{"type":13,"tag":38,"props":239,"children":240},{"style":70},[241],{"type":18,"value":242},"PhysicalDeviceSurfaceInfo2KHR",{"type":13,"tag":38,"props":244,"children":245},{"style":45},[246],{"type":18,"value":78},{"type":13,"tag":38,"props":248,"children":249},{"class":40,"line":110},[250,255,259,264,269],{"type":13,"tag":38,"props":251,"children":252},{"style":45},[253],{"type":18,"value":254}," p_present_mode_count",{"type":13,"tag":38,"props":256,"children":257},{"style":85},[258],{"type":18,"value":193},{"type":13,"tag":38,"props":260,"children":261},{"style":85},[262],{"type":18,"value":263}," *mut",{"type":13,"tag":38,"props":265,"children":266},{"style":70},[267],{"type":18,"value":268}," u32",{"type":13,"tag":38,"props":270,"children":271},{"style":45},[272],{"type":18,"value":78},{"type":13,"tag":38,"props":274,"children":275},{"class":40,"line":128},[276,281,285,289,293,297,302],{"type":13,"tag":38,"props":277,"children":278},{"style":45},[279],{"type":18,"value":280}," p_present_modes",{"type":13,"tag":38,"props":282,"children":283},{"style":85},[284],{"type":18,"value":193},{"type":13,"tag":38,"props":286,"children":287},{"style":85},[288],{"type":18,"value":263},{"type":13,"tag":38,"props":290,"children":291},{"style":70},[292],{"type":18,"value":198},{"type":13,"tag":38,"props":294,"children":295},{"style":85},[296],{"type":18,"value":203},{"type":13,"tag":38,"props":298,"children":299},{"style":70},[300],{"type":18,"value":301},"PresentModeKHR",{"type":13,"tag":38,"props":303,"children":304},{"style":45},[305],{"type":18,"value":78},{"type":13,"tag":38,"props":307,"children":309},{"class":40,"line":308},6,[310,315,320,324,328,333],{"type":13,"tag":38,"props":311,"children":312},{"style":45},[313],{"type":18,"value":314},") ",{"type":13,"tag":38,"props":316,"children":317},{"style":85},[318],{"type":18,"value":319},"->",{"type":13,"tag":38,"props":321,"children":322},{"style":70},[323],{"type":18,"value":198},{"type":13,"tag":38,"props":325,"children":326},{"style":85},[327],{"type":18,"value":203},{"type":13,"tag":38,"props":329,"children":330},{"style":70},[331],{"type":18,"value":332},"Result",{"type":13,"tag":38,"props":334,"children":335},{"style":45},[336],{"type":18,"value":337},";\n",{"type":13,"tag":339,"props":340,"children":341},"ul",{},[342,362,386,397],{"type":13,"tag":343,"props":344,"children":345},"li",{},[346,351,353,360],{"type":13,"tag":34,"props":347,"children":349},{"className":348},[],[350],{"type":18,"value":73},{"type":18,"value":352}," is the physical device that will be associated with\nthe swapchain to be created, as described for\n",{"type":13,"tag":354,"props":355,"children":357},"a",{"href":356},"/man/vkCreateSwapchainKHR",[358],{"type":18,"value":359},"vkCreateSwapchainKHR",{"type":18,"value":361},".",{"type":13,"tag":343,"props":363,"children":364},{},[365,371,373,379,381,385],{"type":13,"tag":34,"props":366,"children":368},{"className":367},[],[369],{"type":18,"value":370},"pSurfaceInfo",{"type":18,"value":372}," is a pointer to a\n",{"type":13,"tag":354,"props":374,"children":376},{"href":375},"/man/VkPhysicalDeviceSurfaceInfo2KHR",[377],{"type":18,"value":378},"VkPhysicalDeviceSurfaceInfo2KHR",{"type":18,"value":380}," structure describing the surface\nand other fixed parameters that would be consumed by\n",{"type":13,"tag":354,"props":382,"children":383},{"href":356},[384],{"type":18,"value":359},{"type":18,"value":361},{"type":13,"tag":343,"props":387,"children":388},{},[389,395],{"type":13,"tag":34,"props":390,"children":392},{"className":391},[],[393],{"type":18,"value":394},"pPresentModeCount",{"type":18,"value":396}," is a pointer to an integer related to the number\nof presentation modes available or queried, as described below.",{"type":13,"tag":343,"props":398,"children":399},{},[400,406,408,414,416,422],{"type":13,"tag":34,"props":401,"children":403},{"className":402},[],[404],{"type":18,"value":405},"pPresentModes",{"type":18,"value":407}," is either ",{"type":13,"tag":34,"props":409,"children":411},{"className":410},[],[412],{"type":18,"value":413},"NULL",{"type":18,"value":415}," or a pointer to an array of\n",{"type":13,"tag":354,"props":417,"children":419},{"href":418},"/man/VkPresentModeKHR",[420],{"type":18,"value":421},"VkPresentModeKHR",{"type":18,"value":423}," values, indicating the supported presentation\nmodes.",{"type":13,"tag":14,"props":425,"children":426},{},[427,432,434,440],{"type":13,"tag":34,"props":428,"children":430},{"className":429},[],[431],{"type":18,"value":4},{"type":18,"value":433}," behaves similarly to\n",{"type":13,"tag":354,"props":435,"children":437},{"href":436},"/man/vkGetPhysicalDeviceSurfacePresentModesKHR",[438],{"type":18,"value":439},"vkGetPhysicalDeviceSurfacePresentModesKHR",{"type":18,"value":441},", with the ability to specify\nextended inputs via chained input structures.",{"type":13,"tag":443,"props":444,"children":446},"validity-group",{"name":445},"Valid Usage",[447,488],{"type":13,"tag":448,"props":449,"children":451},"validity-field",{"name":450},"VUID-vkGetPhysicalDeviceSurfacePresentModes2EXT-pSurfaceInfo-06521",[452],{"type":13,"tag":14,"props":453,"children":454},{},[455,457,463,465,471,473,478,480,486],{"type":18,"value":456},"If the ",{"type":13,"tag":354,"props":458,"children":460},{"href":459},"/extensions/VK_GOOGLE_surfaceless_query",[461],{"type":18,"value":462},"VK_GOOGLE_surfaceless_query",{"type":18,"value":464}," extension is not enabled,\n",{"type":13,"tag":34,"props":466,"children":468},{"className":467},[],[469],{"type":18,"value":470},"pSurfaceInfo→surface",{"type":18,"value":472}," ",{"type":13,"tag":474,"props":475,"children":477},"normative",{"type":476},"must",[],{"type":18,"value":479}," be a valid ",{"type":13,"tag":354,"props":481,"children":483},{"href":482},"/man/VkSurfaceKHR",[484],{"type":18,"value":485},"VkSurfaceKHR",{"type":18,"value":487}," handle",{"type":13,"tag":448,"props":489,"children":491},{"name":490},"VUID-vkGetPhysicalDeviceSurfacePresentModes2EXT-pSurfaceInfo-06522",[492],{"type":13,"tag":14,"props":493,"children":494},{},[495,497,502,504,510,511,516,517,520,522,527,529,535],{"type":18,"value":496},"If ",{"type":13,"tag":34,"props":498,"children":500},{"className":499},[],[501],{"type":18,"value":470},{"type":18,"value":503}," is not ",{"type":13,"tag":354,"props":505,"children":507},{"href":506},"/man/VK_NULL_HANDLE",[508],{"type":18,"value":509},"VK_NULL_HANDLE",{"type":18,"value":78},{"type":13,"tag":34,"props":512,"children":514},{"className":513},[],[515],{"type":18,"value":470},{"type":18,"value":472},{"type":13,"tag":474,"props":518,"children":519},{"type":476},[],{"type":18,"value":521}," be supported by ",{"type":13,"tag":34,"props":523,"children":525},{"className":524},[],[526],{"type":18,"value":73},{"type":18,"value":528},",\nas reported by ",{"type":13,"tag":354,"props":530,"children":532},{"href":531},"/man/vkGetPhysicalDeviceSurfaceSupportKHR",[533],{"type":18,"value":534},"vkGetPhysicalDeviceSurfaceSupportKHR",{"type":18,"value":536}," or an\nequivalent platform-specific mechanism",{"type":13,"tag":443,"props":538,"children":540},{"name":539},"Valid Usage (Implicit)",[541,565,589,615],{"type":13,"tag":448,"props":542,"children":544},{"name":543},"VUID-vkGetPhysicalDeviceSurfacePresentModes2EXT-physicalDevice-parameter",[545],{"type":13,"tag":14,"props":546,"children":547},{},[548,553,554,557,558,564],{"type":13,"tag":34,"props":549,"children":551},{"className":550},[],[552],{"type":18,"value":73},{"type":18,"value":472},{"type":13,"tag":474,"props":555,"children":556},{"type":476},[],{"type":18,"value":479},{"type":13,"tag":354,"props":559,"children":561},{"href":560},"/man/VkPhysicalDevice",[562],{"type":18,"value":563},"VkPhysicalDevice",{"type":18,"value":487},{"type":13,"tag":448,"props":566,"children":568},{"name":567},"VUID-vkGetPhysicalDeviceSurfacePresentModes2EXT-pSurfaceInfo-parameter",[569],{"type":13,"tag":14,"props":570,"children":571},{},[572,577,578,581,583,587],{"type":13,"tag":34,"props":573,"children":575},{"className":574},[],[576],{"type":18,"value":370},{"type":18,"value":472},{"type":13,"tag":474,"props":579,"children":580},{"type":476},[],{"type":18,"value":582}," be a valid pointer to a valid ",{"type":13,"tag":354,"props":584,"children":585},{"href":375},[586],{"type":18,"value":378},{"type":18,"value":588}," structure",{"type":13,"tag":448,"props":590,"children":592},{"name":591},"VUID-vkGetPhysicalDeviceSurfacePresentModes2EXT-pPresentModeCount-parameter",[593],{"type":13,"tag":14,"props":594,"children":595},{},[596,601,602,605,607,613],{"type":13,"tag":34,"props":597,"children":599},{"className":598},[],[600],{"type":18,"value":394},{"type":18,"value":472},{"type":13,"tag":474,"props":603,"children":604},{"type":476},[],{"type":18,"value":606}," be a valid pointer to a ",{"type":13,"tag":34,"props":608,"children":610},{"className":609},[],[611],{"type":18,"value":612},"uint32_t",{"type":18,"value":614}," value",{"type":13,"tag":448,"props":616,"children":618},{"name":617},"VUID-vkGetPhysicalDeviceSurfacePresentModes2EXT-pPresentModes-parameter",[619],{"type":13,"tag":14,"props":620,"children":621},{},[622,624,629,630,636,638,643,644,649,651,656,657,660,662,667,668,672],{"type":18,"value":623},"If the value referenced by ",{"type":13,"tag":34,"props":625,"children":627},{"className":626},[],[628],{"type":18,"value":394},{"type":18,"value":503},{"type":13,"tag":34,"props":631,"children":633},{"className":632},[],[634],{"type":18,"value":635},"0",{"type":18,"value":637},", and ",{"type":13,"tag":34,"props":639,"children":641},{"className":640},[],[642],{"type":18,"value":405},{"type":18,"value":503},{"type":13,"tag":34,"props":645,"children":647},{"className":646},[],[648],{"type":18,"value":413},{"type":18,"value":650},", ",{"type":13,"tag":34,"props":652,"children":654},{"className":653},[],[655],{"type":18,"value":405},{"type":18,"value":472},{"type":13,"tag":474,"props":658,"children":659},{"type":476},[],{"type":18,"value":661}," be a valid pointer to an array of ",{"type":13,"tag":34,"props":663,"children":665},{"className":664},[],[666],{"type":18,"value":394},{"type":18,"value":472},{"type":13,"tag":354,"props":669,"children":670},{"href":418},[671],{"type":18,"value":421},{"type":18,"value":673}," values",{"type":13,"tag":675,"props":676,"children":677},"style",{},[678],{"type":18,"value":679},"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":681},[],"markdown",1725732620640]