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