[{"data":1,"prerenderedAt":554},["ShallowReactive",2],{"MzsaIIaaH6":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":553,"_id":4},"vkResetCommandPool","Reset a command pool","VK_VERSION_1_0","protos",[],{"type":10,"children":11,"toc":551},"root",[12,20,290,334,347,380,422,521,545],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To reset a command pool, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,116],{"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 vkResetCommandPool(\n VkDevice device,\n VkCommandPool commandPool,\n VkCommandPoolResetFlags flags);\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}," VkDevice ",{"type":13,"tag":38,"props":69,"children":71},{"style":70},"--shiki-default:#953800;--shiki-dark:#FFA657",[72],{"type":18,"value":73},"device",{"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}," VkCommandPool ",{"type":13,"tag":38,"props":89,"children":90},{"style":70},[91],{"type":18,"value":92},"commandPool",{"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,111],{"type":13,"tag":38,"props":102,"children":103},{"style":45},[104],{"type":18,"value":105}," VkCommandPoolResetFlags ",{"type":13,"tag":38,"props":107,"children":108},{"style":70},[109],{"type":18,"value":110},"flags",{"type":13,"tag":38,"props":112,"children":113},{"style":45},[114],{"type":18,"value":115},");\n",{"type":13,"tag":25,"props":117,"children":122},{"className":118,"code":119,"filename":120,"language":121,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn reset_command_pool(\n device: crate :: vk :: vk::Device,\n command_pool: vk::CommandPool,\n flags: vk::CommandPoolResetFlags,\n) -> vk::Result;\n","Rust","rs",[123],{"type":13,"tag":34,"props":124,"children":125},{"__ignoreMap":31},[126,149,200,229,258],{"type":13,"tag":38,"props":127,"children":128},{"class":40,"line":41},[129,135,140,145],{"type":13,"tag":38,"props":130,"children":132},{"style":131},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[133],{"type":18,"value":134},"pub",{"type":13,"tag":38,"props":136,"children":137},{"style":131},[138],{"type":18,"value":139}," fn",{"type":13,"tag":38,"props":141,"children":142},{"style":51},[143],{"type":18,"value":144}," reset_command_pool",{"type":13,"tag":38,"props":146,"children":147},{"style":45},[148],{"type":18,"value":58},{"type":13,"tag":38,"props":150,"children":151},{"class":40,"line":61},[152,157,162,167,172,177,182,187,191,196],{"type":13,"tag":38,"props":153,"children":154},{"style":45},[155],{"type":18,"value":156}," device",{"type":13,"tag":38,"props":158,"children":159},{"style":131},[160],{"type":18,"value":161},":",{"type":13,"tag":38,"props":163,"children":164},{"style":131},[165],{"type":18,"value":166}," crate",{"type":13,"tag":38,"props":168,"children":169},{"style":131},[170],{"type":18,"value":171}," ::",{"type":13,"tag":38,"props":173,"children":174},{"style":45},[175],{"type":18,"value":176}," vk ",{"type":13,"tag":38,"props":178,"children":179},{"style":131},[180],{"type":18,"value":181},"::",{"type":13,"tag":38,"props":183,"children":184},{"style":70},[185],{"type":18,"value":186}," vk",{"type":13,"tag":38,"props":188,"children":189},{"style":131},[190],{"type":18,"value":181},{"type":13,"tag":38,"props":192,"children":193},{"style":70},[194],{"type":18,"value":195},"Device",{"type":13,"tag":38,"props":197,"children":198},{"style":45},[199],{"type":18,"value":78},{"type":13,"tag":38,"props":201,"children":202},{"class":40,"line":81},[203,208,212,216,220,225],{"type":13,"tag":38,"props":204,"children":205},{"style":45},[206],{"type":18,"value":207}," command_pool",{"type":13,"tag":38,"props":209,"children":210},{"style":131},[211],{"type":18,"value":161},{"type":13,"tag":38,"props":213,"children":214},{"style":70},[215],{"type":18,"value":186},{"type":13,"tag":38,"props":217,"children":218},{"style":131},[219],{"type":18,"value":181},{"type":13,"tag":38,"props":221,"children":222},{"style":70},[223],{"type":18,"value":224},"CommandPool",{"type":13,"tag":38,"props":226,"children":227},{"style":45},[228],{"type":18,"value":78},{"type":13,"tag":38,"props":230,"children":231},{"class":40,"line":99},[232,237,241,245,249,254],{"type":13,"tag":38,"props":233,"children":234},{"style":45},[235],{"type":18,"value":236}," flags",{"type":13,"tag":38,"props":238,"children":239},{"style":131},[240],{"type":18,"value":161},{"type":13,"tag":38,"props":242,"children":243},{"style":70},[244],{"type":18,"value":186},{"type":13,"tag":38,"props":246,"children":247},{"style":131},[248],{"type":18,"value":181},{"type":13,"tag":38,"props":250,"children":251},{"style":70},[252],{"type":18,"value":253},"CommandPoolResetFlags",{"type":13,"tag":38,"props":255,"children":256},{"style":45},[257],{"type":18,"value":78},{"type":13,"tag":38,"props":259,"children":261},{"class":40,"line":260},5,[262,267,272,276,280,285],{"type":13,"tag":38,"props":263,"children":264},{"style":45},[265],{"type":18,"value":266},") ",{"type":13,"tag":38,"props":268,"children":269},{"style":131},[270],{"type":18,"value":271},"->",{"type":13,"tag":38,"props":273,"children":274},{"style":70},[275],{"type":18,"value":186},{"type":13,"tag":38,"props":277,"children":278},{"style":131},[279],{"type":18,"value":181},{"type":13,"tag":38,"props":281,"children":282},{"style":70},[283],{"type":18,"value":284},"Result",{"type":13,"tag":38,"props":286,"children":287},{"style":45},[288],{"type":18,"value":289},";\n",{"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":34,"props":299,"children":301},{"className":300},[],[302],{"type":18,"value":73},{"type":18,"value":304}," is the logical device that owns the command pool.",{"type":13,"tag":295,"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 command pool to reset.",{"type":13,"tag":295,"props":316,"children":317},{},[318,323,325,332],{"type":13,"tag":34,"props":319,"children":321},{"className":320},[],[322],{"type":18,"value":110},{"type":18,"value":324}," is a bitmask of ",{"type":13,"tag":326,"props":327,"children":329},"a",{"href":328},"/man/VkCommandPoolResetFlagBits",[330],{"type":18,"value":331},"VkCommandPoolResetFlagBits",{"type":18,"value":333}," controlling\nthe reset operation.",{"type":13,"tag":14,"props":335,"children":336},{},[337,339,345],{"type":18,"value":338},"Resetting a command pool recycles all of the resources from all of the\ncommand buffers allocated from the command pool back to the command pool.\nAll command buffers that have been allocated from the command pool are put\nin the ",{"type":13,"tag":326,"props":340,"children":342},{"href":341},"/chapters/commandbuffers#commandbuffers-lifecycle",[343],{"type":18,"value":344},"initial state",{"type":18,"value":346},".",{"type":13,"tag":14,"props":348,"children":349},{},[350,352,358,360,365,367,372,374,379],{"type":18,"value":351},"Any primary command buffer allocated from another ",{"type":13,"tag":326,"props":353,"children":355},{"href":354},"/man/VkCommandPool",[356],{"type":18,"value":357},"VkCommandPool",{"type":18,"value":359}," that\nis in the ",{"type":13,"tag":326,"props":361,"children":362},{"href":341},[363],{"type":18,"value":364},"recording or executable state",{"type":18,"value":366}," and\nhas a secondary command buffer allocated from ",{"type":13,"tag":34,"props":368,"children":370},{"className":369},[],[371],{"type":18,"value":92},{"type":18,"value":373}," recorded\ninto it, becomes ",{"type":13,"tag":326,"props":375,"children":376},{"href":341},[377],{"type":18,"value":378},"invalid",{"type":18,"value":346},{"type":13,"tag":381,"props":382,"children":384},"validity-group",{"name":383},"Valid Usage",[385],{"type":13,"tag":386,"props":387,"children":389},"validity-field",{"name":388},"VUID-vkResetCommandPool-commandPool-00040",[390],{"type":13,"tag":14,"props":391,"children":392},{},[393,395,401,403,408,410,415,417],{"type":18,"value":394},"All ",{"type":13,"tag":34,"props":396,"children":398},{"className":397},[],[399],{"type":18,"value":400},"VkCommandBuffer",{"type":18,"value":402}," objects allocated from ",{"type":13,"tag":34,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":92},{"type":18,"value":409}," ",{"type":13,"tag":411,"props":412,"children":414},"normative",{"type":413},"must",[],{"type":18,"value":416},"\nnot be in the ",{"type":13,"tag":326,"props":418,"children":419},{"href":341},[420],{"type":18,"value":421},"pending state",{"type":13,"tag":381,"props":423,"children":425},{"name":424},"Valid Usage (Implicit)",[426,452,474,498],{"type":13,"tag":386,"props":427,"children":429},{"name":428},"VUID-vkResetCommandPool-device-parameter",[430],{"type":13,"tag":14,"props":431,"children":432},{},[433,438,439,442,444,450],{"type":13,"tag":34,"props":434,"children":436},{"className":435},[],[437],{"type":18,"value":73},{"type":18,"value":409},{"type":13,"tag":411,"props":440,"children":441},{"type":413},[],{"type":18,"value":443}," be a valid ",{"type":13,"tag":326,"props":445,"children":447},{"href":446},"/man/VkDevice",[448],{"type":18,"value":449},"VkDevice",{"type":18,"value":451}," handle",{"type":13,"tag":386,"props":453,"children":455},{"name":454},"VUID-vkResetCommandPool-commandPool-parameter",[456],{"type":13,"tag":14,"props":457,"children":458},{},[459,464,465,468,469,473],{"type":13,"tag":34,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":92},{"type":18,"value":409},{"type":13,"tag":411,"props":466,"children":467},{"type":413},[],{"type":18,"value":443},{"type":13,"tag":326,"props":470,"children":471},{"href":354},[472],{"type":18,"value":357},{"type":18,"value":451},{"type":13,"tag":386,"props":475,"children":477},{"name":476},"VUID-vkResetCommandPool-flags-parameter",[478],{"type":13,"tag":14,"props":479,"children":480},{},[481,486,487,490,492,496],{"type":13,"tag":34,"props":482,"children":484},{"className":483},[],[485],{"type":18,"value":110},{"type":18,"value":409},{"type":13,"tag":411,"props":488,"children":489},{"type":413},[],{"type":18,"value":491}," be a valid combination of ",{"type":13,"tag":326,"props":493,"children":494},{"href":328},[495],{"type":18,"value":331},{"type":18,"value":497}," values",{"type":13,"tag":386,"props":499,"children":501},{"name":500},"VUID-vkResetCommandPool-commandPool-parent",[502],{"type":13,"tag":14,"props":503,"children":504},{},[505,510,511,514,516],{"type":13,"tag":34,"props":506,"children":508},{"className":507},[],[509],{"type":18,"value":92},{"type":18,"value":409},{"type":13,"tag":411,"props":512,"children":513},{"type":413},[],{"type":18,"value":515}," have been created, allocated, or retrieved from ",{"type":13,"tag":34,"props":517,"children":519},{"className":518},[],[520],{"type":18,"value":73},{"type":13,"tag":522,"props":523,"children":525},"validity-box",{"name":524},"Host Synchronization",[526],{"type":13,"tag":291,"props":527,"children":528},{},[529],{"type":13,"tag":295,"props":530,"children":531},{},[532,534,539,540,543],{"type":18,"value":533},"Host access to ",{"type":13,"tag":34,"props":535,"children":537},{"className":536},[],[538],{"type":18,"value":92},{"type":18,"value":409},{"type":13,"tag":411,"props":541,"children":542},{"type":413},[],{"type":18,"value":544}," be externally synchronized\n::",{"type":13,"tag":546,"props":547,"children":548},"style",{},[549],{"type":18,"value":550},"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":552},[],"markdown",1725732623199]