[{"data":1,"prerenderedAt":793},["ShallowReactive",2],{"wz3sN9JSco":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":792,"_id":4},"vkGetPhysicalDeviceSurfaceCapabilities2KHR","Reports capabilities of a surface on a physical device","VK_KHR_get_surface_capabilities2","protos",[],{"type":10,"children":11,"toc":790},"root",[12,20,295,361,379,709,784],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To query the basic capabilities of a surface defined by the core or\nextensions, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,131],{"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 vkGetPhysicalDeviceSurfaceCapabilities2KHR(\n VkPhysicalDevice physicalDevice,\n const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,\n VkSurfaceCapabilities2KHR* pSurfaceCapabilities);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,108],{"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,121,126],{"type":13,"tag":38,"props":113,"children":114},{"style":45},[115],{"type":18,"value":116}," VkSurfaceCapabilities2KHR",{"type":13,"tag":38,"props":118,"children":119},{"style":85},[120],{"type":18,"value":98},{"type":13,"tag":38,"props":122,"children":123},{"style":70},[124],{"type":18,"value":125}," pSurfaceCapabilities",{"type":13,"tag":38,"props":127,"children":128},{"style":45},[129],{"type":18,"value":130},");\n",{"type":13,"tag":25,"props":132,"children":137},{"className":133,"code":134,"filename":135,"language":136,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_physical_device_surface_capabilities2_khr(\n physical_device: vk::PhysicalDevice,\n p_surface_info: *const vk::PhysicalDeviceSurfaceInfo2KHR,\n p_surface_capabilities: *mut vk::SurfaceCapabilities2KHR,\n) -> vk::Result;\n","Rust","rs",[138],{"type":13,"tag":34,"props":139,"children":140},{"__ignoreMap":31},[141,163,195,229,263],{"type":13,"tag":38,"props":142,"children":143},{"class":40,"line":41},[144,149,154,159],{"type":13,"tag":38,"props":145,"children":146},{"style":85},[147],{"type":18,"value":148},"pub",{"type":13,"tag":38,"props":150,"children":151},{"style":85},[152],{"type":18,"value":153}," fn",{"type":13,"tag":38,"props":155,"children":156},{"style":51},[157],{"type":18,"value":158}," get_physical_device_surface_capabilities2_khr",{"type":13,"tag":38,"props":160,"children":161},{"style":45},[162],{"type":18,"value":58},{"type":13,"tag":38,"props":164,"children":165},{"class":40,"line":61},[166,171,176,181,186,191],{"type":13,"tag":38,"props":167,"children":168},{"style":45},[169],{"type":18,"value":170}," physical_device",{"type":13,"tag":38,"props":172,"children":173},{"style":85},[174],{"type":18,"value":175},":",{"type":13,"tag":38,"props":177,"children":178},{"style":70},[179],{"type":18,"value":180}," vk",{"type":13,"tag":38,"props":182,"children":183},{"style":85},[184],{"type":18,"value":185},"::",{"type":13,"tag":38,"props":187,"children":188},{"style":70},[189],{"type":18,"value":190},"PhysicalDevice",{"type":13,"tag":38,"props":192,"children":193},{"style":45},[194],{"type":18,"value":78},{"type":13,"tag":38,"props":196,"children":197},{"class":40,"line":81},[198,203,207,212,216,220,225],{"type":13,"tag":38,"props":199,"children":200},{"style":45},[201],{"type":18,"value":202}," p_surface_info",{"type":13,"tag":38,"props":204,"children":205},{"style":85},[206],{"type":18,"value":175},{"type":13,"tag":38,"props":208,"children":209},{"style":85},[210],{"type":18,"value":211}," *const",{"type":13,"tag":38,"props":213,"children":214},{"style":70},[215],{"type":18,"value":180},{"type":13,"tag":38,"props":217,"children":218},{"style":85},[219],{"type":18,"value":185},{"type":13,"tag":38,"props":221,"children":222},{"style":70},[223],{"type":18,"value":224},"PhysicalDeviceSurfaceInfo2KHR",{"type":13,"tag":38,"props":226,"children":227},{"style":45},[228],{"type":18,"value":78},{"type":13,"tag":38,"props":230,"children":231},{"class":40,"line":110},[232,237,241,246,250,254,259],{"type":13,"tag":38,"props":233,"children":234},{"style":45},[235],{"type":18,"value":236}," p_surface_capabilities",{"type":13,"tag":38,"props":238,"children":239},{"style":85},[240],{"type":18,"value":175},{"type":13,"tag":38,"props":242,"children":243},{"style":85},[244],{"type":18,"value":245}," *mut",{"type":13,"tag":38,"props":247,"children":248},{"style":70},[249],{"type":18,"value":180},{"type":13,"tag":38,"props":251,"children":252},{"style":85},[253],{"type":18,"value":185},{"type":13,"tag":38,"props":255,"children":256},{"style":70},[257],{"type":18,"value":258},"SurfaceCapabilities2KHR",{"type":13,"tag":38,"props":260,"children":261},{"style":45},[262],{"type":18,"value":78},{"type":13,"tag":38,"props":264,"children":266},{"class":40,"line":265},5,[267,272,277,281,285,290],{"type":13,"tag":38,"props":268,"children":269},{"style":45},[270],{"type":18,"value":271},") ",{"type":13,"tag":38,"props":273,"children":274},{"style":85},[275],{"type":18,"value":276},"->",{"type":13,"tag":38,"props":278,"children":279},{"style":70},[280],{"type":18,"value":180},{"type":13,"tag":38,"props":282,"children":283},{"style":85},[284],{"type":18,"value":185},{"type":13,"tag":38,"props":286,"children":287},{"style":70},[288],{"type":18,"value":289},"Result",{"type":13,"tag":38,"props":291,"children":292},{"style":45},[293],{"type":18,"value":294},";\n",{"type":13,"tag":296,"props":297,"children":298},"ul",{},[299,319,343],{"type":13,"tag":300,"props":301,"children":302},"li",{},[303,308,310,317],{"type":13,"tag":34,"props":304,"children":306},{"className":305},[],[307],{"type":18,"value":73},{"type":18,"value":309}," is the physical device that will be associated with\nthe swapchain to be created, as described for\n",{"type":13,"tag":311,"props":312,"children":314},"a",{"href":313},"/man/vkCreateSwapchainKHR",[315],{"type":18,"value":316},"vkCreateSwapchainKHR",{"type":18,"value":318},".",{"type":13,"tag":300,"props":320,"children":321},{},[322,328,330,336,338,342],{"type":13,"tag":34,"props":323,"children":325},{"className":324},[],[326],{"type":18,"value":327},"pSurfaceInfo",{"type":18,"value":329}," is a pointer to a\n",{"type":13,"tag":311,"props":331,"children":333},{"href":332},"/man/VkPhysicalDeviceSurfaceInfo2KHR",[334],{"type":18,"value":335},"VkPhysicalDeviceSurfaceInfo2KHR",{"type":18,"value":337}," structure describing the surface\nand other fixed parameters that would be consumed by\n",{"type":13,"tag":311,"props":339,"children":340},{"href":313},[341],{"type":18,"value":316},{"type":18,"value":318},{"type":13,"tag":300,"props":344,"children":345},{},[346,352,353,359],{"type":13,"tag":34,"props":347,"children":349},{"className":348},[],[350],{"type":18,"value":351},"pSurfaceCapabilities",{"type":18,"value":329},{"type":13,"tag":311,"props":354,"children":356},{"href":355},"/man/VkSurfaceCapabilities2KHR",[357],{"type":18,"value":358},"VkSurfaceCapabilities2KHR",{"type":18,"value":360}," structure in which the capabilities are\nreturned.",{"type":13,"tag":14,"props":362,"children":363},{},[364,369,371,377],{"type":13,"tag":34,"props":365,"children":367},{"className":366},[],[368],{"type":18,"value":4},{"type":18,"value":370}," behaves similarly to\n",{"type":13,"tag":311,"props":372,"children":374},{"href":373},"/man/vkGetPhysicalDeviceSurfaceCapabilitiesKHR",[375],{"type":18,"value":376},"vkGetPhysicalDeviceSurfaceCapabilitiesKHR",{"type":18,"value":378},", with the ability to specify\nextended inputs via chained input structures, and to return extended\ninformation via chained output structures.",{"type":13,"tag":380,"props":381,"children":383},"validity-group",{"name":382},"Valid Usage",[384,425,474,530,581,629,669],{"type":13,"tag":385,"props":386,"children":388},"validity-field",{"name":387},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pSurfaceInfo-06521",[389],{"type":13,"tag":14,"props":390,"children":391},{},[392,394,400,402,408,410,415,417,423],{"type":18,"value":393},"If the ",{"type":13,"tag":311,"props":395,"children":397},{"href":396},"/extensions/VK_GOOGLE_surfaceless_query",[398],{"type":18,"value":399},"VK_GOOGLE_surfaceless_query",{"type":18,"value":401}," extension is not enabled,\n",{"type":13,"tag":34,"props":403,"children":405},{"className":404},[],[406],{"type":18,"value":407},"pSurfaceInfo→surface",{"type":18,"value":409}," ",{"type":13,"tag":411,"props":412,"children":414},"normative",{"type":413},"must",[],{"type":18,"value":416}," be a valid ",{"type":13,"tag":311,"props":418,"children":420},{"href":419},"/man/VkSurfaceKHR",[421],{"type":18,"value":422},"VkSurfaceKHR",{"type":18,"value":424}," handle",{"type":13,"tag":385,"props":426,"children":428},{"name":427},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pSurfaceInfo-06522",[429],{"type":13,"tag":14,"props":430,"children":431},{},[432,434,439,441,447,448,453,454,457,459,464,466,472],{"type":18,"value":433},"If ",{"type":13,"tag":34,"props":435,"children":437},{"className":436},[],[438],{"type":18,"value":407},{"type":18,"value":440}," is not ",{"type":13,"tag":311,"props":442,"children":444},{"href":443},"/man/VK_NULL_HANDLE",[445],{"type":18,"value":446},"VK_NULL_HANDLE",{"type":18,"value":78},{"type":13,"tag":34,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":407},{"type":18,"value":409},{"type":13,"tag":411,"props":455,"children":456},{"type":413},[],{"type":18,"value":458}," be supported by ",{"type":13,"tag":34,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":73},{"type":18,"value":465},",\nas reported by ",{"type":13,"tag":311,"props":467,"children":469},{"href":468},"/man/vkGetPhysicalDeviceSurfaceSupportKHR",[470],{"type":18,"value":471},"vkGetPhysicalDeviceSurfaceSupportKHR",{"type":18,"value":473}," or an\nequivalent platform-specific mechanism",{"type":13,"tag":385,"props":475,"children":477},{"name":476},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pNext-02671",[478],{"type":13,"tag":14,"props":479,"children":480},{},[481,483,489,491,497,499,504,506,512,514,517,519,524,525],{"type":18,"value":482},"If a ",{"type":13,"tag":311,"props":484,"children":486},{"href":485},"/man/VkSurfaceCapabilitiesFullScreenExclusiveEXT",[487],{"type":18,"value":488},"VkSurfaceCapabilitiesFullScreenExclusiveEXT",{"type":18,"value":490}," structure is\nincluded in the ",{"type":13,"tag":34,"props":492,"children":494},{"className":493},[],[495],{"type":18,"value":496},"pNext",{"type":18,"value":498}," chain of ",{"type":13,"tag":34,"props":500,"children":502},{"className":501},[],[503],{"type":18,"value":351},{"type":18,"value":505},", a\n",{"type":13,"tag":311,"props":507,"children":509},{"href":508},"/man/VkSurfaceFullScreenExclusiveWin32InfoEXT",[510],{"type":18,"value":511},"VkSurfaceFullScreenExclusiveWin32InfoEXT",{"type":18,"value":513}," structure ",{"type":13,"tag":411,"props":515,"children":516},{"type":413},[],{"type":18,"value":518}," be\nincluded in the ",{"type":13,"tag":34,"props":520,"children":522},{"className":521},[],[523],{"type":18,"value":496},{"type":18,"value":498},{"type":13,"tag":34,"props":526,"children":528},{"className":527},[],[529],{"type":18,"value":327},{"type":13,"tag":385,"props":531,"children":533},{"name":532},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pNext-07776",[534],{"type":13,"tag":14,"props":535,"children":536},{},[537,538,544,546,551,552,557,558,564,565,568,570,575,576],{"type":18,"value":482},{"type":13,"tag":311,"props":539,"children":541},{"href":540},"/man/VkSurfacePresentModeCompatibilityEXT",[542],{"type":18,"value":543},"VkSurfacePresentModeCompatibilityEXT",{"type":18,"value":545}," structure is included in\nthe ",{"type":13,"tag":34,"props":547,"children":549},{"className":548},[],[550],{"type":18,"value":496},{"type":18,"value":498},{"type":13,"tag":34,"props":553,"children":555},{"className":554},[],[556],{"type":18,"value":351},{"type":18,"value":505},{"type":13,"tag":311,"props":559,"children":561},{"href":560},"/man/VkSurfacePresentModeEXT",[562],{"type":18,"value":563},"VkSurfacePresentModeEXT",{"type":18,"value":513},{"type":13,"tag":411,"props":566,"children":567},{"type":413},[],{"type":18,"value":569}," be included in the\n",{"type":13,"tag":34,"props":571,"children":573},{"className":572},[],[574],{"type":18,"value":496},{"type":18,"value":498},{"type":13,"tag":34,"props":577,"children":579},{"className":578},[],[580],{"type":18,"value":327},{"type":13,"tag":385,"props":582,"children":584},{"name":583},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pNext-07777",[585],{"type":13,"tag":14,"props":586,"children":587},{},[588,589,595,597,602,603,608,609,613,614,617,618,623,624],{"type":18,"value":482},{"type":13,"tag":311,"props":590,"children":592},{"href":591},"/man/VkSurfacePresentScalingCapabilitiesEXT",[593],{"type":18,"value":594},"VkSurfacePresentScalingCapabilitiesEXT",{"type":18,"value":596}," structure is included\nin the ",{"type":13,"tag":34,"props":598,"children":600},{"className":599},[],[601],{"type":18,"value":496},{"type":18,"value":498},{"type":13,"tag":34,"props":604,"children":606},{"className":605},[],[607],{"type":18,"value":351},{"type":18,"value":505},{"type":13,"tag":311,"props":610,"children":611},{"href":560},[612],{"type":18,"value":563},{"type":18,"value":513},{"type":13,"tag":411,"props":615,"children":616},{"type":413},[],{"type":18,"value":569},{"type":13,"tag":34,"props":619,"children":621},{"className":620},[],[622],{"type":18,"value":496},{"type":18,"value":498},{"type":13,"tag":34,"props":625,"children":627},{"className":626},[],[628],{"type":18,"value":327},{"type":13,"tag":385,"props":630,"children":632},{"name":631},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pNext-07778",[633],{"type":13,"tag":14,"props":634,"children":635},{},[636,637,641,642,647,648,653,654,659,660,663,664,668],{"type":18,"value":482},{"type":13,"tag":311,"props":638,"children":639},{"href":540},[640],{"type":18,"value":543},{"type":18,"value":545},{"type":13,"tag":34,"props":643,"children":645},{"className":644},[],[646],{"type":18,"value":496},{"type":18,"value":498},{"type":13,"tag":34,"props":649,"children":651},{"className":650},[],[652],{"type":18,"value":351},{"type":18,"value":78},{"type":13,"tag":34,"props":655,"children":657},{"className":656},[],[658],{"type":18,"value":407},{"type":18,"value":409},{"type":13,"tag":411,"props":661,"children":662},{"type":413},[],{"type":18,"value":416},{"type":13,"tag":311,"props":665,"children":666},{"href":419},[667],{"type":18,"value":422},{"type":18,"value":424},{"type":13,"tag":385,"props":670,"children":672},{"name":671},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pNext-07779",[673],{"type":13,"tag":14,"props":674,"children":675},{},[676,677,681,682,687,688,693,694,699,700,703,704,708],{"type":18,"value":482},{"type":13,"tag":311,"props":678,"children":679},{"href":591},[680],{"type":18,"value":594},{"type":18,"value":596},{"type":13,"tag":34,"props":683,"children":685},{"className":684},[],[686],{"type":18,"value":496},{"type":18,"value":498},{"type":13,"tag":34,"props":689,"children":691},{"className":690},[],[692],{"type":18,"value":351},{"type":18,"value":78},{"type":13,"tag":34,"props":695,"children":697},{"className":696},[],[698],{"type":18,"value":407},{"type":18,"value":409},{"type":13,"tag":411,"props":701,"children":702},{"type":413},[],{"type":18,"value":416},{"type":13,"tag":311,"props":705,"children":706},{"href":419},[707],{"type":18,"value":422},{"type":18,"value":424},{"type":13,"tag":380,"props":710,"children":712},{"name":711},"Valid Usage (Implicit)",[713,737,761],{"type":13,"tag":385,"props":714,"children":716},{"name":715},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-physicalDevice-parameter",[717],{"type":13,"tag":14,"props":718,"children":719},{},[720,725,726,729,730,736],{"type":13,"tag":34,"props":721,"children":723},{"className":722},[],[724],{"type":18,"value":73},{"type":18,"value":409},{"type":13,"tag":411,"props":727,"children":728},{"type":413},[],{"type":18,"value":416},{"type":13,"tag":311,"props":731,"children":733},{"href":732},"/man/VkPhysicalDevice",[734],{"type":18,"value":735},"VkPhysicalDevice",{"type":18,"value":424},{"type":13,"tag":385,"props":738,"children":740},{"name":739},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pSurfaceInfo-parameter",[741],{"type":13,"tag":14,"props":742,"children":743},{},[744,749,750,753,755,759],{"type":13,"tag":34,"props":745,"children":747},{"className":746},[],[748],{"type":18,"value":327},{"type":18,"value":409},{"type":13,"tag":411,"props":751,"children":752},{"type":413},[],{"type":18,"value":754}," be a valid pointer to a valid ",{"type":13,"tag":311,"props":756,"children":757},{"href":332},[758],{"type":18,"value":335},{"type":18,"value":760}," structure",{"type":13,"tag":385,"props":762,"children":764},{"name":763},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2KHR-pSurfaceCapabilities-parameter",[765],{"type":13,"tag":14,"props":766,"children":767},{},[768,773,774,777,779,783],{"type":13,"tag":34,"props":769,"children":771},{"className":770},[],[772],{"type":18,"value":351},{"type":18,"value":409},{"type":13,"tag":411,"props":775,"children":776},{"type":413},[],{"type":18,"value":778}," be a valid pointer to a ",{"type":13,"tag":311,"props":780,"children":781},{"href":355},[782],{"type":18,"value":358},{"type":18,"value":760},{"type":13,"tag":785,"props":786,"children":787},"style",{},[788],{"type":18,"value":789},"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":791},[],"markdown",1725732620476]