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