[{"data":1,"prerenderedAt":518},["ShallowReactive",2],{"164olHLhbp":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":517,"_id":4},"vkGetPhysicalDeviceSurfaceCapabilitiesKHR","Query surface capabilities","VK_KHR_surface","protos",[],{"type":10,"children":11,"toc":515},"root",[12,20,281,334,402,509],{"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 vkGetPhysicalDeviceSurfaceCapabilitiesKHR(\n VkPhysicalDevice physicalDevice,\n VkSurfaceKHR surface,\n VkSurfaceCapabilitiesKHR* 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}," VkSurfaceCapabilitiesKHR",{"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_capabilities_khr(\n physical_device: vk::PhysicalDevice,\n surface: vk::SurfaceKHR,\n p_surface_capabilities: *mut vk::SurfaceCapabilitiesKHR,\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_capabilities_khr",{"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},"SurfaceCapabilitiesKHR",{"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/VkSurfaceCapabilitiesKHR",[330],{"type":18,"value":331},"VkSurfaceCapabilitiesKHR",{"type":18,"value":333}," structure in which the capabilities are\nreturned.",{"type":13,"tag":335,"props":336,"children":338},"validity-group",{"name":337},"Valid Usage",[339,369],{"type":13,"tag":340,"props":341,"children":343},"validity-field",{"name":342},"VUID-vkGetPhysicalDeviceSurfaceCapabilitiesKHR-surface-06523",[344],{"type":13,"tag":14,"props":345,"children":346},{},[347,352,354,359,361,367],{"type":13,"tag":34,"props":348,"children":350},{"className":349},[],[351],{"type":18,"value":92},{"type":18,"value":353}," ",{"type":13,"tag":355,"props":356,"children":358},"normative",{"type":357},"must",[],{"type":18,"value":360}," be a valid ",{"type":13,"tag":297,"props":362,"children":364},{"href":363},"/man/VkSurfaceKHR",[365],{"type":18,"value":366},"VkSurfaceKHR",{"type":18,"value":368}," handle",{"type":13,"tag":340,"props":370,"children":372},{"name":371},"VUID-vkGetPhysicalDeviceSurfaceCapabilitiesKHR-surface-06211",[373],{"type":13,"tag":14,"props":374,"children":375},{},[376,381,382,385,387,392,394,400],{"type":13,"tag":34,"props":377,"children":379},{"className":378},[],[380],{"type":18,"value":92},{"type":18,"value":353},{"type":13,"tag":355,"props":383,"children":384},{"type":357},[],{"type":18,"value":386}," be supported by ",{"type":13,"tag":34,"props":388,"children":390},{"className":389},[],[391],{"type":18,"value":73},{"type":18,"value":393},", as reported by\n",{"type":13,"tag":297,"props":395,"children":397},{"href":396},"/man/vkGetPhysicalDeviceSurfaceSupportKHR",[398],{"type":18,"value":399},"vkGetPhysicalDeviceSurfaceSupportKHR",{"type":18,"value":401}," or an equivalent\nplatform-specific mechanism",{"type":13,"tag":335,"props":403,"children":405},{"name":404},"Valid Usage (Implicit)",[406,430,452,476],{"type":13,"tag":340,"props":407,"children":409},{"name":408},"VUID-vkGetPhysicalDeviceSurfaceCapabilitiesKHR-physicalDevice-parameter",[410],{"type":13,"tag":14,"props":411,"children":412},{},[413,418,419,422,423,429],{"type":13,"tag":34,"props":414,"children":416},{"className":415},[],[417],{"type":18,"value":73},{"type":18,"value":353},{"type":13,"tag":355,"props":420,"children":421},{"type":357},[],{"type":18,"value":360},{"type":13,"tag":297,"props":424,"children":426},{"href":425},"/man/VkPhysicalDevice",[427],{"type":18,"value":428},"VkPhysicalDevice",{"type":18,"value":368},{"type":13,"tag":340,"props":431,"children":433},{"name":432},"VUID-vkGetPhysicalDeviceSurfaceCapabilitiesKHR-surface-parameter",[434],{"type":13,"tag":14,"props":435,"children":436},{},[437,442,443,446,447,451],{"type":13,"tag":34,"props":438,"children":440},{"className":439},[],[441],{"type":18,"value":92},{"type":18,"value":353},{"type":13,"tag":355,"props":444,"children":445},{"type":357},[],{"type":18,"value":360},{"type":13,"tag":297,"props":448,"children":449},{"href":363},[450],{"type":18,"value":366},{"type":18,"value":368},{"type":13,"tag":340,"props":453,"children":455},{"name":454},"VUID-vkGetPhysicalDeviceSurfaceCapabilitiesKHR-pSurfaceCapabilities-parameter",[456],{"type":13,"tag":14,"props":457,"children":458},{},[459,464,465,468,470,474],{"type":13,"tag":34,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":323},{"type":18,"value":353},{"type":13,"tag":355,"props":466,"children":467},{"type":357},[],{"type":18,"value":469}," be a valid pointer to a ",{"type":13,"tag":297,"props":471,"children":472},{"href":328},[473],{"type":18,"value":331},{"type":18,"value":475}," structure",{"type":13,"tag":340,"props":477,"children":479},{"name":478},"VUID-vkGetPhysicalDeviceSurfaceCapabilitiesKHR-commonparent",[480],{"type":13,"tag":14,"props":481,"children":482},{},[483,485,490,492,497,498,501,503],{"type":18,"value":484},"Both of ",{"type":13,"tag":34,"props":486,"children":488},{"className":487},[],[489],{"type":18,"value":73},{"type":18,"value":491},", and ",{"type":13,"tag":34,"props":493,"children":495},{"className":494},[],[496],{"type":18,"value":92},{"type":18,"value":353},{"type":13,"tag":355,"props":499,"children":500},{"type":357},[],{"type":18,"value":502}," have been created, allocated, or retrieved from the same ",{"type":13,"tag":297,"props":504,"children":506},{"href":505},"/man/VkInstance",[507],{"type":18,"value":508},"VkInstance",{"type":13,"tag":510,"props":511,"children":512},"style",{},[513],{"type":18,"value":514},"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":516},[],"markdown",1725732620542]