[{"data":1,"prerenderedAt":472},["ShallowReactive",2],{"lKkHSb7YI0":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":471,"_id":4},"vkResetCommandBuffer","Reset a command buffer to the initial state","VK_VERSION_1_0","protos",[],{"type":10,"children":11,"toc":469},"root",[12,20,224,280,305,360,414,463],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To reset a command buffer, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,98],{"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 vkResetCommandBuffer(\n VkCommandBuffer commandBuffer,\n VkCommandBufferResetFlags flags);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79],{"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}," VkCommandBuffer ",{"type":13,"tag":38,"props":69,"children":71},{"style":70},"--shiki-default:#953800;--shiki-dark:#FFA657",[72],{"type":18,"value":73},"commandBuffer",{"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}," VkCommandBufferResetFlags ",{"type":13,"tag":38,"props":89,"children":90},{"style":70},[91],{"type":18,"value":92},"flags",{"type":13,"tag":38,"props":94,"children":95},{"style":45},[96],{"type":18,"value":97},");\n",{"type":13,"tag":25,"props":99,"children":104},{"className":100,"code":101,"filename":102,"language":103,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn reset_command_buffer(\n command_buffer: vk::CommandBuffer,\n flags: vk::CommandBufferResetFlags,\n) -> vk::Result;\n","Rust","rs",[105],{"type":13,"tag":34,"props":106,"children":107},{"__ignoreMap":31},[108,131,163,192],{"type":13,"tag":38,"props":109,"children":110},{"class":40,"line":41},[111,117,122,127],{"type":13,"tag":38,"props":112,"children":114},{"style":113},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[115],{"type":18,"value":116},"pub",{"type":13,"tag":38,"props":118,"children":119},{"style":113},[120],{"type":18,"value":121}," fn",{"type":13,"tag":38,"props":123,"children":124},{"style":51},[125],{"type":18,"value":126}," reset_command_buffer",{"type":13,"tag":38,"props":128,"children":129},{"style":45},[130],{"type":18,"value":58},{"type":13,"tag":38,"props":132,"children":133},{"class":40,"line":61},[134,139,144,149,154,159],{"type":13,"tag":38,"props":135,"children":136},{"style":45},[137],{"type":18,"value":138}," command_buffer",{"type":13,"tag":38,"props":140,"children":141},{"style":113},[142],{"type":18,"value":143},":",{"type":13,"tag":38,"props":145,"children":146},{"style":70},[147],{"type":18,"value":148}," vk",{"type":13,"tag":38,"props":150,"children":151},{"style":113},[152],{"type":18,"value":153},"::",{"type":13,"tag":38,"props":155,"children":156},{"style":70},[157],{"type":18,"value":158},"CommandBuffer",{"type":13,"tag":38,"props":160,"children":161},{"style":45},[162],{"type":18,"value":78},{"type":13,"tag":38,"props":164,"children":165},{"class":40,"line":81},[166,171,175,179,183,188],{"type":13,"tag":38,"props":167,"children":168},{"style":45},[169],{"type":18,"value":170}," flags",{"type":13,"tag":38,"props":172,"children":173},{"style":113},[174],{"type":18,"value":143},{"type":13,"tag":38,"props":176,"children":177},{"style":70},[178],{"type":18,"value":148},{"type":13,"tag":38,"props":180,"children":181},{"style":113},[182],{"type":18,"value":153},{"type":13,"tag":38,"props":184,"children":185},{"style":70},[186],{"type":18,"value":187},"CommandBufferResetFlags",{"type":13,"tag":38,"props":189,"children":190},{"style":45},[191],{"type":18,"value":78},{"type":13,"tag":38,"props":193,"children":195},{"class":40,"line":194},4,[196,201,206,210,214,219],{"type":13,"tag":38,"props":197,"children":198},{"style":45},[199],{"type":18,"value":200},") ",{"type":13,"tag":38,"props":202,"children":203},{"style":113},[204],{"type":18,"value":205},"->",{"type":13,"tag":38,"props":207,"children":208},{"style":70},[209],{"type":18,"value":148},{"type":13,"tag":38,"props":211,"children":212},{"style":113},[213],{"type":18,"value":153},{"type":13,"tag":38,"props":215,"children":216},{"style":70},[217],{"type":18,"value":218},"Result",{"type":13,"tag":38,"props":220,"children":221},{"style":45},[222],{"type":18,"value":223},";\n",{"type":13,"tag":225,"props":226,"children":227},"ul",{},[228,262],{"type":13,"tag":229,"props":230,"children":231},"li",{},[232,237,239,244,246,253,255,260],{"type":13,"tag":34,"props":233,"children":235},{"className":234},[],[236],{"type":18,"value":73},{"type":18,"value":238}," is the command buffer to reset.\nThe command buffer ",{"type":13,"tag":240,"props":241,"children":243},"normative",{"type":242},"can",[],{"type":18,"value":245}," be in any state other than\n",{"type":13,"tag":247,"props":248,"children":250},"a",{"href":249},"/chapters/commandbuffers#commandbuffers-lifecycle",[251],{"type":18,"value":252},"pending",{"type":18,"value":254},", and is moved into the\n",{"type":13,"tag":247,"props":256,"children":257},{"href":249},[258],{"type":18,"value":259},"initial state",{"type":18,"value":261},".",{"type":13,"tag":229,"props":263,"children":264},{},[265,270,272,278],{"type":13,"tag":34,"props":266,"children":268},{"className":267},[],[269],{"type":18,"value":92},{"type":18,"value":271}," is a bitmask of ",{"type":13,"tag":247,"props":273,"children":275},{"href":274},"/man/VkCommandBufferResetFlagBits",[276],{"type":18,"value":277},"VkCommandBufferResetFlagBits",{"type":18,"value":279},"\ncontrolling the reset operation.",{"type":13,"tag":14,"props":281,"children":282},{},[283,285,290,292,297,299,304],{"type":18,"value":284},"Any primary command buffer that is in the ",{"type":13,"tag":247,"props":286,"children":287},{"href":249},[288],{"type":18,"value":289},"recording or executable state",{"type":18,"value":291}," and has ",{"type":13,"tag":34,"props":293,"children":295},{"className":294},[],[296],{"type":18,"value":73},{"type":18,"value":298}," recorded into\nit, becomes ",{"type":13,"tag":247,"props":300,"children":301},{"href":249},[302],{"type":18,"value":303},"invalid",{"type":18,"value":261},{"type":13,"tag":306,"props":307,"children":309},"validity-group",{"name":308},"Valid Usage",[310,336],{"type":13,"tag":311,"props":312,"children":314},"validity-field",{"name":313},"VUID-vkResetCommandBuffer-commandBuffer-00045",[315],{"type":13,"tag":14,"props":316,"children":317},{},[318,323,325,329,331],{"type":13,"tag":34,"props":319,"children":321},{"className":320},[],[322],{"type":18,"value":73},{"type":18,"value":324}," ",{"type":13,"tag":240,"props":326,"children":328},{"type":327},"must",[],{"type":18,"value":330}," not be in the ",{"type":13,"tag":247,"props":332,"children":333},{"href":249},[334],{"type":18,"value":335},"pending state",{"type":13,"tag":311,"props":337,"children":339},{"name":338},"VUID-vkResetCommandBuffer-commandBuffer-00046",[340],{"type":13,"tag":14,"props":341,"children":342},{},[343,348,349,352,354],{"type":13,"tag":34,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":73},{"type":18,"value":324},{"type":13,"tag":240,"props":350,"children":351},{"type":327},[],{"type":18,"value":353}," have been allocated from a pool that was\ncreated with the ",{"type":13,"tag":34,"props":355,"children":357},{"className":356},[],[358],{"type":18,"value":359},"VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT",{"type":13,"tag":306,"props":361,"children":363},{"name":362},"Valid Usage (Implicit)",[364,390],{"type":13,"tag":311,"props":365,"children":367},{"name":366},"VUID-vkResetCommandBuffer-commandBuffer-parameter",[368],{"type":13,"tag":14,"props":369,"children":370},{},[371,376,377,380,382,388],{"type":13,"tag":34,"props":372,"children":374},{"className":373},[],[375],{"type":18,"value":73},{"type":18,"value":324},{"type":13,"tag":240,"props":378,"children":379},{"type":327},[],{"type":18,"value":381}," be a valid ",{"type":13,"tag":247,"props":383,"children":385},{"href":384},"/man/VkCommandBuffer",[386],{"type":18,"value":387},"VkCommandBuffer",{"type":18,"value":389}," handle",{"type":13,"tag":311,"props":391,"children":393},{"name":392},"VUID-vkResetCommandBuffer-flags-parameter",[394],{"type":13,"tag":14,"props":395,"children":396},{},[397,402,403,406,408,412],{"type":13,"tag":34,"props":398,"children":400},{"className":399},[],[401],{"type":18,"value":92},{"type":18,"value":324},{"type":13,"tag":240,"props":404,"children":405},{"type":327},[],{"type":18,"value":407}," be a valid combination of ",{"type":13,"tag":247,"props":409,"children":410},{"href":274},[411],{"type":18,"value":277},{"type":18,"value":413}," values",{"type":13,"tag":415,"props":416,"children":418},"validity-box",{"name":417},"Host Synchronization",[419],{"type":13,"tag":225,"props":420,"children":421},{},[422,438],{"type":13,"tag":229,"props":423,"children":424},{},[425,427,432,433,436],{"type":18,"value":426},"Host access to ",{"type":13,"tag":34,"props":428,"children":430},{"className":429},[],[431],{"type":18,"value":73},{"type":18,"value":324},{"type":13,"tag":240,"props":434,"children":435},{"type":327},[],{"type":18,"value":437}," be externally synchronized",{"type":13,"tag":229,"props":439,"children":440},{},[441,443,449,451,456,458,461],{"type":18,"value":442},"Host access to the ",{"type":13,"tag":34,"props":444,"children":446},{"className":445},[],[447],{"type":18,"value":448},"VkCommandPool",{"type":18,"value":450}," that ",{"type":13,"tag":34,"props":452,"children":454},{"className":453},[],[455],{"type":18,"value":73},{"type":18,"value":457}," was allocated from ",{"type":13,"tag":240,"props":459,"children":460},{"type":327},[],{"type":18,"value":462}," be externally synchronized\n::",{"type":13,"tag":464,"props":465,"children":466},"style",{},[467],{"type":18,"value":468},"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":470},[],"markdown",1729612520493]