[{"data":1,"prerenderedAt":551},["ShallowReactive",2],{"DTWyhIbjoi":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":550,"_id":4},"vkGetPhysicalDeviceSurfaceCapabilities2EXT","Query surface capabilities","VK_EXT_display_surface_counter","protos",[],{"type":10,"children":11,"toc":548},"root",[12,20,281,334,367,435,542],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To query the basic capabilities of a surface, needed in order to create a\nswapchain, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,122],{"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 vkGetPhysicalDeviceSurfaceCapabilities2EXT(\n VkPhysicalDevice physicalDevice,\n VkSurfaceKHR surface,\n VkSurfaceCapabilities2EXT* pSurfaceCapabilities);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,97],{"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}," VkSurfaceKHR ",{"type":13,"tag":38,"props":89,"children":90},{"style":70},[91],{"type":18,"value":92},"surface",{"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,106,112,117],{"type":13,"tag":38,"props":102,"children":103},{"style":45},[104],{"type":18,"value":105}," VkSurfaceCapabilities2EXT",{"type":13,"tag":38,"props":107,"children":109},{"style":108},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[110],{"type":18,"value":111},"*",{"type":13,"tag":38,"props":113,"children":114},{"style":70},[115],{"type":18,"value":116}," pSurfaceCapabilities",{"type":13,"tag":38,"props":118,"children":119},{"style":45},[120],{"type":18,"value":121},");\n",{"type":13,"tag":25,"props":123,"children":128},{"className":124,"code":125,"filename":126,"language":127,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_physical_device_surface_capabilities2_ext(\n physical_device: vk::PhysicalDevice,\n surface: vk::SurfaceKHR,\n p_surface_capabilities: *mut vk::SurfaceCapabilities2EXT,\n) -> vk::Result;\n","Rust","rs",[129],{"type":13,"tag":34,"props":130,"children":131},{"__ignoreMap":31},[132,154,186,215,249],{"type":13,"tag":38,"props":133,"children":134},{"class":40,"line":41},[135,140,145,150],{"type":13,"tag":38,"props":136,"children":137},{"style":108},[138],{"type":18,"value":139},"pub",{"type":13,"tag":38,"props":141,"children":142},{"style":108},[143],{"type":18,"value":144}," fn",{"type":13,"tag":38,"props":146,"children":147},{"style":51},[148],{"type":18,"value":149}," get_physical_device_surface_capabilities2_ext",{"type":13,"tag":38,"props":151,"children":152},{"style":45},[153],{"type":18,"value":58},{"type":13,"tag":38,"props":155,"children":156},{"class":40,"line":61},[157,162,167,172,177,182],{"type":13,"tag":38,"props":158,"children":159},{"style":45},[160],{"type":18,"value":161}," physical_device",{"type":13,"tag":38,"props":163,"children":164},{"style":108},[165],{"type":18,"value":166},":",{"type":13,"tag":38,"props":168,"children":169},{"style":70},[170],{"type":18,"value":171}," vk",{"type":13,"tag":38,"props":173,"children":174},{"style":108},[175],{"type":18,"value":176},"::",{"type":13,"tag":38,"props":178,"children":179},{"style":70},[180],{"type":18,"value":181},"PhysicalDevice",{"type":13,"tag":38,"props":183,"children":184},{"style":45},[185],{"type":18,"value":78},{"type":13,"tag":38,"props":187,"children":188},{"class":40,"line":81},[189,194,198,202,206,211],{"type":13,"tag":38,"props":190,"children":191},{"style":45},[192],{"type":18,"value":193}," surface",{"type":13,"tag":38,"props":195,"children":196},{"style":108},[197],{"type":18,"value":166},{"type":13,"tag":38,"props":199,"children":200},{"style":70},[201],{"type":18,"value":171},{"type":13,"tag":38,"props":203,"children":204},{"style":108},[205],{"type":18,"value":176},{"type":13,"tag":38,"props":207,"children":208},{"style":70},[209],{"type":18,"value":210},"SurfaceKHR",{"type":13,"tag":38,"props":212,"children":213},{"style":45},[214],{"type":18,"value":78},{"type":13,"tag":38,"props":216,"children":217},{"class":40,"line":99},[218,223,227,232,236,240,245],{"type":13,"tag":38,"props":219,"children":220},{"style":45},[221],{"type":18,"value":222}," p_surface_capabilities",{"type":13,"tag":38,"props":224,"children":225},{"style":108},[226],{"type":18,"value":166},{"type":13,"tag":38,"props":228,"children":229},{"style":108},[230],{"type":18,"value":231}," *mut",{"type":13,"tag":38,"props":233,"children":234},{"style":70},[235],{"type":18,"value":171},{"type":13,"tag":38,"props":237,"children":238},{"style":108},[239],{"type":18,"value":176},{"type":13,"tag":38,"props":241,"children":242},{"style":70},[243],{"type":18,"value":244},"SurfaceCapabilities2EXT",{"type":13,"tag":38,"props":246,"children":247},{"style":45},[248],{"type":18,"value":78},{"type":13,"tag":38,"props":250,"children":252},{"class":40,"line":251},5,[253,258,263,267,271,276],{"type":13,"tag":38,"props":254,"children":255},{"style":45},[256],{"type":18,"value":257},") ",{"type":13,"tag":38,"props":259,"children":260},{"style":108},[261],{"type":18,"value":262},"->",{"type":13,"tag":38,"props":264,"children":265},{"style":70},[266],{"type":18,"value":171},{"type":13,"tag":38,"props":268,"children":269},{"style":108},[270],{"type":18,"value":176},{"type":13,"tag":38,"props":272,"children":273},{"style":70},[274],{"type":18,"value":275},"Result",{"type":13,"tag":38,"props":277,"children":278},{"style":45},[279],{"type":18,"value":280},";\n",{"type":13,"tag":282,"props":283,"children":284},"ul",{},[285,305,315],{"type":13,"tag":286,"props":287,"children":288},"li",{},[289,294,296,303],{"type":13,"tag":34,"props":290,"children":292},{"className":291},[],[293],{"type":18,"value":73},{"type":18,"value":295}," is the physical device that will be associated with\nthe swapchain to be created, as described for\n",{"type":13,"tag":297,"props":298,"children":300},"a",{"href":299},"/man/vkCreateSwapchainKHR",[301],{"type":18,"value":302},"vkCreateSwapchainKHR",{"type":18,"value":304},".",{"type":13,"tag":286,"props":306,"children":307},{},[308,313],{"type":13,"tag":34,"props":309,"children":311},{"className":310},[],[312],{"type":18,"value":92},{"type":18,"value":314}," is the surface that will be associated with the swapchain.",{"type":13,"tag":286,"props":316,"children":317},{},[318,324,326,332],{"type":13,"tag":34,"props":319,"children":321},{"className":320},[],[322],{"type":18,"value":323},"pSurfaceCapabilities",{"type":18,"value":325}," is a pointer to a\n",{"type":13,"tag":297,"props":327,"children":329},{"href":328},"/man/VkSurfaceCapabilities2EXT",[330],{"type":18,"value":331},"VkSurfaceCapabilities2EXT",{"type":18,"value":333}," structure in which the capabilities are\nreturned.",{"type":13,"tag":14,"props":335,"children":336},{},[337,342,344,350,352,358,360,365],{"type":13,"tag":34,"props":338,"children":340},{"className":339},[],[341],{"type":18,"value":4},{"type":18,"value":343}," behaves similarly to\n",{"type":13,"tag":297,"props":345,"children":347},{"href":346},"/man/vkGetPhysicalDeviceSurfaceCapabilitiesKHR",[348],{"type":18,"value":349},"vkGetPhysicalDeviceSurfaceCapabilitiesKHR",{"type":18,"value":351},", with the ability to return\nextended information by adding extending structures to the ",{"type":13,"tag":34,"props":353,"children":355},{"className":354},[],[356],{"type":18,"value":357},"pNext",{"type":18,"value":359}," chain\nof its ",{"type":13,"tag":34,"props":361,"children":363},{"className":362},[],[364],{"type":18,"value":323},{"type":18,"value":366}," parameter.",{"type":13,"tag":368,"props":369,"children":371},"validity-group",{"name":370},"Valid Usage",[372,402],{"type":13,"tag":373,"props":374,"children":376},"validity-field",{"name":375},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2EXT-surface-06523",[377],{"type":13,"tag":14,"props":378,"children":379},{},[380,385,387,392,394,400],{"type":13,"tag":34,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":92},{"type":18,"value":386}," ",{"type":13,"tag":388,"props":389,"children":391},"normative",{"type":390},"must",[],{"type":18,"value":393}," be a valid ",{"type":13,"tag":297,"props":395,"children":397},{"href":396},"/man/VkSurfaceKHR",[398],{"type":18,"value":399},"VkSurfaceKHR",{"type":18,"value":401}," handle",{"type":13,"tag":373,"props":403,"children":405},{"name":404},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2EXT-surface-06211",[406],{"type":13,"tag":14,"props":407,"children":408},{},[409,414,415,418,420,425,427,433],{"type":13,"tag":34,"props":410,"children":412},{"className":411},[],[413],{"type":18,"value":92},{"type":18,"value":386},{"type":13,"tag":388,"props":416,"children":417},{"type":390},[],{"type":18,"value":419}," be supported by ",{"type":13,"tag":34,"props":421,"children":423},{"className":422},[],[424],{"type":18,"value":73},{"type":18,"value":426},", as reported by\n",{"type":13,"tag":297,"props":428,"children":430},{"href":429},"/man/vkGetPhysicalDeviceSurfaceSupportKHR",[431],{"type":18,"value":432},"vkGetPhysicalDeviceSurfaceSupportKHR",{"type":18,"value":434}," or an equivalent\nplatform-specific mechanism",{"type":13,"tag":368,"props":436,"children":438},{"name":437},"Valid Usage (Implicit)",[439,463,485,509],{"type":13,"tag":373,"props":440,"children":442},{"name":441},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2EXT-physicalDevice-parameter",[443],{"type":13,"tag":14,"props":444,"children":445},{},[446,451,452,455,456,462],{"type":13,"tag":34,"props":447,"children":449},{"className":448},[],[450],{"type":18,"value":73},{"type":18,"value":386},{"type":13,"tag":388,"props":453,"children":454},{"type":390},[],{"type":18,"value":393},{"type":13,"tag":297,"props":457,"children":459},{"href":458},"/man/VkPhysicalDevice",[460],{"type":18,"value":461},"VkPhysicalDevice",{"type":18,"value":401},{"type":13,"tag":373,"props":464,"children":466},{"name":465},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2EXT-surface-parameter",[467],{"type":13,"tag":14,"props":468,"children":469},{},[470,475,476,479,480,484],{"type":13,"tag":34,"props":471,"children":473},{"className":472},[],[474],{"type":18,"value":92},{"type":18,"value":386},{"type":13,"tag":388,"props":477,"children":478},{"type":390},[],{"type":18,"value":393},{"type":13,"tag":297,"props":481,"children":482},{"href":396},[483],{"type":18,"value":399},{"type":18,"value":401},{"type":13,"tag":373,"props":486,"children":488},{"name":487},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2EXT-pSurfaceCapabilities-parameter",[489],{"type":13,"tag":14,"props":490,"children":491},{},[492,497,498,501,503,507],{"type":13,"tag":34,"props":493,"children":495},{"className":494},[],[496],{"type":18,"value":323},{"type":18,"value":386},{"type":13,"tag":388,"props":499,"children":500},{"type":390},[],{"type":18,"value":502}," be a valid pointer to a ",{"type":13,"tag":297,"props":504,"children":505},{"href":328},[506],{"type":18,"value":331},{"type":18,"value":508}," structure",{"type":13,"tag":373,"props":510,"children":512},{"name":511},"VUID-vkGetPhysicalDeviceSurfaceCapabilities2EXT-commonparent",[513],{"type":13,"tag":14,"props":514,"children":515},{},[516,518,523,525,530,531,534,536],{"type":18,"value":517},"Both of ",{"type":13,"tag":34,"props":519,"children":521},{"className":520},[],[522],{"type":18,"value":73},{"type":18,"value":524},", and ",{"type":13,"tag":34,"props":526,"children":528},{"className":527},[],[529],{"type":18,"value":92},{"type":18,"value":386},{"type":13,"tag":388,"props":532,"children":533},{"type":390},[],{"type":18,"value":535}," have been created, allocated, or retrieved from the same ",{"type":13,"tag":297,"props":537,"children":539},{"href":538},"/man/VkInstance",[540],{"type":18,"value":541},"VkInstance",{"type":13,"tag":543,"props":544,"children":545},"style",{},[546],{"type":18,"value":547},"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":549},[],"markdown",1725732620440]