[{"data":1,"prerenderedAt":622},["ShallowReactive",2],{"UGXD6wotgm":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":621,"_id":4},"vkDestroySurfaceKHR","Destroy a VkSurfaceKHR object","VK_KHR_surface","protos",[],{"type":10,"children":11,"toc":619},"root",[12,29,290,335,347,457,589,613],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27],{"type":18,"value":19},"text","To destroy a ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":26},"VkSurfaceKHR",{"type":18,"value":28}," object, call:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,136],{"type":13,"tag":34,"props":35,"children":41},"pre",{"className":36,"code":37,"filename":38,"language":39,"meta":40,"style":40},"language-c shiki shiki-themes github-light-default github-dark-default","void vkDestroySurfaceKHR(\n VkInstance instance,\n VkSurfaceKHR surface,\n const VkAllocationCallbacks* pAllocator);\n","C","c","",[42],{"type":13,"tag":21,"props":43,"children":44},{"__ignoreMap":40},[45,69,89,107],{"type":13,"tag":46,"props":47,"children":50},"span",{"class":48,"line":49},"line",1,[51,57,63],{"type":13,"tag":46,"props":52,"children":54},{"style":53},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[55],{"type":18,"value":56},"void",{"type":13,"tag":46,"props":58,"children":60},{"style":59},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[61],{"type":18,"value":62}," vkDestroySurfaceKHR",{"type":13,"tag":46,"props":64,"children":66},{"style":65},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[67],{"type":18,"value":68},"(\n",{"type":13,"tag":46,"props":70,"children":72},{"class":48,"line":71},2,[73,78,84],{"type":13,"tag":46,"props":74,"children":75},{"style":65},[76],{"type":18,"value":77}," VkInstance ",{"type":13,"tag":46,"props":79,"children":81},{"style":80},"--shiki-default:#953800;--shiki-dark:#FFA657",[82],{"type":18,"value":83},"instance",{"type":13,"tag":46,"props":85,"children":86},{"style":65},[87],{"type":18,"value":88},",\n",{"type":13,"tag":46,"props":90,"children":92},{"class":48,"line":91},3,[93,98,103],{"type":13,"tag":46,"props":94,"children":95},{"style":65},[96],{"type":18,"value":97}," VkSurfaceKHR ",{"type":13,"tag":46,"props":99,"children":100},{"style":80},[101],{"type":18,"value":102},"surface",{"type":13,"tag":46,"props":104,"children":105},{"style":65},[106],{"type":18,"value":88},{"type":13,"tag":46,"props":108,"children":110},{"class":48,"line":109},4,[111,116,121,126,131],{"type":13,"tag":46,"props":112,"children":113},{"style":53},[114],{"type":18,"value":115}," const",{"type":13,"tag":46,"props":117,"children":118},{"style":65},[119],{"type":18,"value":120}," VkAllocationCallbacks",{"type":13,"tag":46,"props":122,"children":123},{"style":53},[124],{"type":18,"value":125},"*",{"type":13,"tag":46,"props":127,"children":128},{"style":80},[129],{"type":18,"value":130}," pAllocator",{"type":13,"tag":46,"props":132,"children":133},{"style":65},[134],{"type":18,"value":135},");\n",{"type":13,"tag":34,"props":137,"children":142},{"className":138,"code":139,"filename":140,"language":141,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn destroy_surface_khr(\n instance: crate :: vk :: vk::Instance,\n surface: vk::SurfaceKHR,\n p_allocator: *const vk::AllocationCallbacks,\n);\n","Rust","rs",[143],{"type":13,"tag":21,"props":144,"children":145},{"__ignoreMap":40},[146,168,219,248,282],{"type":13,"tag":46,"props":147,"children":148},{"class":48,"line":49},[149,154,159,164],{"type":13,"tag":46,"props":150,"children":151},{"style":53},[152],{"type":18,"value":153},"pub",{"type":13,"tag":46,"props":155,"children":156},{"style":53},[157],{"type":18,"value":158}," fn",{"type":13,"tag":46,"props":160,"children":161},{"style":59},[162],{"type":18,"value":163}," destroy_surface_khr",{"type":13,"tag":46,"props":165,"children":166},{"style":65},[167],{"type":18,"value":68},{"type":13,"tag":46,"props":169,"children":170},{"class":48,"line":71},[171,176,181,186,191,196,201,206,210,215],{"type":13,"tag":46,"props":172,"children":173},{"style":65},[174],{"type":18,"value":175}," instance",{"type":13,"tag":46,"props":177,"children":178},{"style":53},[179],{"type":18,"value":180},":",{"type":13,"tag":46,"props":182,"children":183},{"style":53},[184],{"type":18,"value":185}," crate",{"type":13,"tag":46,"props":187,"children":188},{"style":53},[189],{"type":18,"value":190}," ::",{"type":13,"tag":46,"props":192,"children":193},{"style":65},[194],{"type":18,"value":195}," vk ",{"type":13,"tag":46,"props":197,"children":198},{"style":53},[199],{"type":18,"value":200},"::",{"type":13,"tag":46,"props":202,"children":203},{"style":80},[204],{"type":18,"value":205}," vk",{"type":13,"tag":46,"props":207,"children":208},{"style":53},[209],{"type":18,"value":200},{"type":13,"tag":46,"props":211,"children":212},{"style":80},[213],{"type":18,"value":214},"Instance",{"type":13,"tag":46,"props":216,"children":217},{"style":65},[218],{"type":18,"value":88},{"type":13,"tag":46,"props":220,"children":221},{"class":48,"line":91},[222,227,231,235,239,244],{"type":13,"tag":46,"props":223,"children":224},{"style":65},[225],{"type":18,"value":226}," surface",{"type":13,"tag":46,"props":228,"children":229},{"style":53},[230],{"type":18,"value":180},{"type":13,"tag":46,"props":232,"children":233},{"style":80},[234],{"type":18,"value":205},{"type":13,"tag":46,"props":236,"children":237},{"style":53},[238],{"type":18,"value":200},{"type":13,"tag":46,"props":240,"children":241},{"style":80},[242],{"type":18,"value":243},"SurfaceKHR",{"type":13,"tag":46,"props":245,"children":246},{"style":65},[247],{"type":18,"value":88},{"type":13,"tag":46,"props":249,"children":250},{"class":48,"line":109},[251,256,260,265,269,273,278],{"type":13,"tag":46,"props":252,"children":253},{"style":65},[254],{"type":18,"value":255}," p_allocator",{"type":13,"tag":46,"props":257,"children":258},{"style":53},[259],{"type":18,"value":180},{"type":13,"tag":46,"props":261,"children":262},{"style":53},[263],{"type":18,"value":264}," *const",{"type":13,"tag":46,"props":266,"children":267},{"style":80},[268],{"type":18,"value":205},{"type":13,"tag":46,"props":270,"children":271},{"style":53},[272],{"type":18,"value":200},{"type":13,"tag":46,"props":274,"children":275},{"style":80},[276],{"type":18,"value":277},"AllocationCallbacks",{"type":13,"tag":46,"props":279,"children":280},{"style":65},[281],{"type":18,"value":88},{"type":13,"tag":46,"props":283,"children":285},{"class":48,"line":284},5,[286],{"type":13,"tag":46,"props":287,"children":288},{"style":65},[289],{"type":18,"value":135},{"type":13,"tag":291,"props":292,"children":293},"ul",{},[294,305,315],{"type":13,"tag":295,"props":296,"children":297},"li",{},[298,303],{"type":13,"tag":21,"props":299,"children":301},{"className":300},[],[302],{"type":18,"value":83},{"type":18,"value":304}," is the instance used to create the surface.",{"type":13,"tag":295,"props":306,"children":307},{},[308,313],{"type":13,"tag":21,"props":309,"children":311},{"className":310},[],[312],{"type":18,"value":102},{"type":18,"value":314}," is the surface to destroy.",{"type":13,"tag":295,"props":316,"children":317},{},[318,324,326,333],{"type":13,"tag":21,"props":319,"children":321},{"className":320},[],[322],{"type":18,"value":323},"pAllocator",{"type":18,"value":325}," is the allocator used for host memory allocated for the\nsurface object when there is no more specific allocator available (see\n",{"type":13,"tag":327,"props":328,"children":330},"a",{"href":329},"/chapters/memory#memory-allocation",[331],{"type":18,"value":332},"Memory Allocation",{"type":18,"value":334},").",{"type":13,"tag":14,"props":336,"children":337},{},[338,340,345],{"type":18,"value":339},"Destroying a ",{"type":13,"tag":21,"props":341,"children":343},{"className":342},[],[344],{"type":18,"value":26},{"type":18,"value":346}," merely severs the connection between Vulkan\nand the native surface, and does not imply destroying the native surface,\nclosing a window, or similar behavior.",{"type":13,"tag":348,"props":349,"children":351},"validity-group",{"name":350},"Valid Usage",[352,389,418],{"type":13,"tag":353,"props":354,"children":356},"validity-field",{"name":355},"VUID-vkDestroySurfaceKHR-surface-01266",[357],{"type":13,"tag":14,"props":358,"children":359},{},[360,362,368,370,375,377,382,384],{"type":18,"value":361},"All ",{"type":13,"tag":21,"props":363,"children":365},{"className":364},[],[366],{"type":18,"value":367},"VkSwapchainKHR",{"type":18,"value":369}," objects created for ",{"type":13,"tag":21,"props":371,"children":373},{"className":372},[],[374],{"type":18,"value":102},{"type":18,"value":376}," ",{"type":13,"tag":378,"props":379,"children":381},"normative",{"type":380},"must",[],{"type":18,"value":383}," have\nbeen destroyed prior to destroying ",{"type":13,"tag":21,"props":385,"children":387},{"className":386},[],[388],{"type":18,"value":102},{"type":13,"tag":353,"props":390,"children":392},{"name":391},"VUID-vkDestroySurfaceKHR-surface-01267",[393],{"type":13,"tag":14,"props":394,"children":395},{},[396,398,404,406,411,413,416],{"type":18,"value":397},"If ",{"type":13,"tag":21,"props":399,"children":401},{"className":400},[],[402],{"type":18,"value":403},"VkAllocationCallbacks",{"type":18,"value":405}," were provided when ",{"type":13,"tag":21,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":102},{"type":18,"value":412}," was\ncreated, a compatible set of callbacks ",{"type":13,"tag":378,"props":414,"children":415},{"type":380},[],{"type":18,"value":417}," be provided here",{"type":13,"tag":353,"props":419,"children":421},{"name":420},"VUID-vkDestroySurfaceKHR-surface-01268",[422],{"type":13,"tag":14,"props":423,"children":424},{},[425,427,432,433,438,440,445,446,449,451],{"type":18,"value":426},"If no ",{"type":13,"tag":21,"props":428,"children":430},{"className":429},[],[431],{"type":18,"value":403},{"type":18,"value":405},{"type":13,"tag":21,"props":434,"children":436},{"className":435},[],[437],{"type":18,"value":102},{"type":18,"value":439}," was\ncreated, ",{"type":13,"tag":21,"props":441,"children":443},{"className":442},[],[444],{"type":18,"value":323},{"type":18,"value":376},{"type":13,"tag":378,"props":447,"children":448},{"type":380},[],{"type":18,"value":450}," be ",{"type":13,"tag":21,"props":452,"children":454},{"className":453},[],[455],{"type":18,"value":456},"NULL",{"type":13,"tag":348,"props":458,"children":460},{"name":459},"Valid Usage (Implicit)",[461,487,526,564],{"type":13,"tag":353,"props":462,"children":464},{"name":463},"VUID-vkDestroySurfaceKHR-instance-parameter",[465],{"type":13,"tag":14,"props":466,"children":467},{},[468,473,474,477,479,485],{"type":13,"tag":21,"props":469,"children":471},{"className":470},[],[472],{"type":18,"value":83},{"type":18,"value":376},{"type":13,"tag":378,"props":475,"children":476},{"type":380},[],{"type":18,"value":478}," be a valid ",{"type":13,"tag":327,"props":480,"children":482},{"href":481},"/man/VkInstance",[483],{"type":18,"value":484},"VkInstance",{"type":18,"value":486}," handle",{"type":13,"tag":353,"props":488,"children":490},{"name":489},"VUID-vkDestroySurfaceKHR-surface-parameter",[491],{"type":13,"tag":14,"props":492,"children":493},{},[494,495,500,502,508,510,515,516,519,520,525],{"type":18,"value":397},{"type":13,"tag":21,"props":496,"children":498},{"className":497},[],[499],{"type":18,"value":102},{"type":18,"value":501}," is not ",{"type":13,"tag":327,"props":503,"children":505},{"href":504},"/man/VK_NULL_HANDLE",[506],{"type":18,"value":507},"VK_NULL_HANDLE",{"type":18,"value":509},", ",{"type":13,"tag":21,"props":511,"children":513},{"className":512},[],[514],{"type":18,"value":102},{"type":18,"value":376},{"type":13,"tag":378,"props":517,"children":518},{"type":380},[],{"type":18,"value":478},{"type":13,"tag":327,"props":521,"children":523},{"href":522},"/man/VkSurfaceKHR",[524],{"type":18,"value":26},{"type":18,"value":486},{"type":13,"tag":353,"props":527,"children":529},{"name":528},"VUID-vkDestroySurfaceKHR-pAllocator-parameter",[530],{"type":13,"tag":14,"props":531,"children":532},{},[533,534,539,540,545,546,551,552,555,557,562],{"type":18,"value":397},{"type":13,"tag":21,"props":535,"children":537},{"className":536},[],[538],{"type":18,"value":323},{"type":18,"value":501},{"type":13,"tag":21,"props":541,"children":543},{"className":542},[],[544],{"type":18,"value":456},{"type":18,"value":509},{"type":13,"tag":21,"props":547,"children":549},{"className":548},[],[550],{"type":18,"value":323},{"type":18,"value":376},{"type":13,"tag":378,"props":553,"children":554},{"type":380},[],{"type":18,"value":556}," be a valid pointer to a valid ",{"type":13,"tag":327,"props":558,"children":560},{"href":559},"/man/VkAllocationCallbacks",[561],{"type":18,"value":403},{"type":18,"value":563}," structure",{"type":13,"tag":353,"props":565,"children":567},{"name":566},"VUID-vkDestroySurfaceKHR-surface-parent",[568],{"type":13,"tag":14,"props":569,"children":570},{},[571,572,577,579,582,584],{"type":18,"value":397},{"type":13,"tag":21,"props":573,"children":575},{"className":574},[],[576],{"type":18,"value":102},{"type":18,"value":578}," is a valid handle, it ",{"type":13,"tag":378,"props":580,"children":581},{"type":380},[],{"type":18,"value":583}," have been created, allocated, or retrieved from ",{"type":13,"tag":21,"props":585,"children":587},{"className":586},[],[588],{"type":18,"value":83},{"type":13,"tag":590,"props":591,"children":593},"validity-box",{"name":592},"Host Synchronization",[594],{"type":13,"tag":291,"props":595,"children":596},{},[597],{"type":13,"tag":295,"props":598,"children":599},{},[600,602,607,608,611],{"type":18,"value":601},"Host access to ",{"type":13,"tag":21,"props":603,"children":605},{"className":604},[],[606],{"type":18,"value":102},{"type":18,"value":376},{"type":13,"tag":378,"props":609,"children":610},{"type":380},[],{"type":18,"value":612}," be externally synchronized\n::",{"type":13,"tag":614,"props":615,"children":616},"style",{},[617],{"type":18,"value":618},"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":40,"searchDepth":71,"depth":71,"links":620},[],"markdown",1729612512218]