[{"data":1,"prerenderedAt":564},["ShallowReactive",2],{"EyuGANHDBB":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":563,"_id":4},"vkEndCommandBuffer","Finish recording a command buffer","VK_VERSION_1_0","protos",[],{"type":10,"children":11,"toc":561},"root",[12,20,177,192,220,238,265,287,476,506,555],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To complete recording of a command buffer, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,79],{"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 vkEndCommandBuffer(\n VkCommandBuffer commandBuffer);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59],{"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":25,"props":80,"children":85},{"className":81,"code":82,"filename":83,"language":84,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn end_command_buffer(\n command_buffer: vk::CommandBuffer,\n) -> vk::Result;\n","Rust","rs",[86],{"type":13,"tag":34,"props":87,"children":88},{"__ignoreMap":31},[89,112,145],{"type":13,"tag":38,"props":90,"children":91},{"class":40,"line":41},[92,98,103,108],{"type":13,"tag":38,"props":93,"children":95},{"style":94},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[96],{"type":18,"value":97},"pub",{"type":13,"tag":38,"props":99,"children":100},{"style":94},[101],{"type":18,"value":102}," fn",{"type":13,"tag":38,"props":104,"children":105},{"style":51},[106],{"type":18,"value":107}," end_command_buffer",{"type":13,"tag":38,"props":109,"children":110},{"style":45},[111],{"type":18,"value":58},{"type":13,"tag":38,"props":113,"children":114},{"class":40,"line":61},[115,120,125,130,135,140],{"type":13,"tag":38,"props":116,"children":117},{"style":45},[118],{"type":18,"value":119}," command_buffer",{"type":13,"tag":38,"props":121,"children":122},{"style":94},[123],{"type":18,"value":124},":",{"type":13,"tag":38,"props":126,"children":127},{"style":70},[128],{"type":18,"value":129}," vk",{"type":13,"tag":38,"props":131,"children":132},{"style":94},[133],{"type":18,"value":134},"::",{"type":13,"tag":38,"props":136,"children":137},{"style":70},[138],{"type":18,"value":139},"CommandBuffer",{"type":13,"tag":38,"props":141,"children":142},{"style":45},[143],{"type":18,"value":144},",\n",{"type":13,"tag":38,"props":146,"children":148},{"class":40,"line":147},3,[149,154,159,163,167,172],{"type":13,"tag":38,"props":150,"children":151},{"style":45},[152],{"type":18,"value":153},") ",{"type":13,"tag":38,"props":155,"children":156},{"style":94},[157],{"type":18,"value":158},"->",{"type":13,"tag":38,"props":160,"children":161},{"style":70},[162],{"type":18,"value":129},{"type":13,"tag":38,"props":164,"children":165},{"style":94},[166],{"type":18,"value":134},{"type":13,"tag":38,"props":168,"children":169},{"style":70},[170],{"type":18,"value":171},"Result",{"type":13,"tag":38,"props":173,"children":174},{"style":45},[175],{"type":18,"value":176},";\n",{"type":13,"tag":178,"props":179,"children":180},"ul",{},[181],{"type":13,"tag":182,"props":183,"children":184},"li",{},[185,190],{"type":13,"tag":34,"props":186,"children":188},{"className":187},[],[189],{"type":18,"value":73},{"type":18,"value":191}," is the command buffer to complete recording.",{"type":13,"tag":14,"props":193,"children":194},{},[195,197,202,204,211,213,218],{"type":18,"value":196},"The command buffer ",{"type":13,"tag":198,"props":199,"children":201},"normative",{"type":200},"must",[],{"type":18,"value":203}," have been in the ",{"type":13,"tag":205,"props":206,"children":208},"a",{"href":207},"/chapters/commandbuffers#commandbuffers-lifecycle",[209],{"type":18,"value":210},"recording state",{"type":18,"value":212},", and, if successful, is moved to the\n",{"type":13,"tag":205,"props":214,"children":215},{"href":207},[216],{"type":18,"value":217},"executable state",{"type":18,"value":219},".",{"type":13,"tag":14,"props":221,"children":222},{},[223,225,230,232,237],{"type":18,"value":224},"If there was an error during recording, the application will be notified by\nan unsuccessful return code returned by ",{"type":13,"tag":34,"props":226,"children":228},{"className":227},[],[229],{"type":18,"value":4},{"type":18,"value":231},", and the\ncommand buffer will be moved to the ",{"type":13,"tag":205,"props":233,"children":234},{"href":207},[235],{"type":18,"value":236},"invalid\nstate",{"type":18,"value":219},{"type":13,"tag":14,"props":239,"children":240},{},[241,243,249,251,255,257,263],{"type":18,"value":242},"In case the application recorded one or more ",{"type":13,"tag":205,"props":244,"children":246},{"href":245},"/chapters/video-coding#video-encode-operations",[247],{"type":18,"value":248},"video\nencode operations",{"type":18,"value":250}," into the command buffer, implementations ",{"type":13,"tag":198,"props":252,"children":254},{"type":253},"may",[],{"type":18,"value":256}," return the\n",{"type":13,"tag":34,"props":258,"children":260},{"className":259},[],[261],{"type":18,"value":262},"VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR",{"type":18,"value":264}," error if any of the\nspecified Video Std parameters do not adhere to the syntactic or semantic\nrequirements of the used video compression standard, or if values derived\nfrom parameters according to the rules defined by the used video compression\nstandard do not adhere to the capabilities of the video compression standard\nor the implementation.",{"type":13,"tag":266,"props":267,"children":268},"note",{},[269],{"type":13,"tag":14,"props":270,"children":271},{},[272,274,278,280,285],{"type":18,"value":273},"Applications ",{"type":13,"tag":198,"props":275,"children":277},{"type":276},"should",[],{"type":18,"value":279}," not rely on the\n",{"type":13,"tag":34,"props":281,"children":283},{"className":282},[],[284],{"type":18,"value":262},{"type":18,"value":286}," error being returned by any\ncommand as a means to verify Video Std parameters, as implementations are\nnot required to report the error in any specific set of cases.",{"type":13,"tag":288,"props":289,"children":291},"validity-group",{"name":290},"Valid Usage",[292,316,337,365,384,398,439],{"type":13,"tag":293,"props":294,"children":296},"validity-field",{"name":295},"VUID-vkEndCommandBuffer-commandBuffer-00059",[297],{"type":13,"tag":14,"props":298,"children":299},{},[300,305,307,310,312],{"type":13,"tag":34,"props":301,"children":303},{"className":302},[],[304],{"type":18,"value":73},{"type":18,"value":306}," ",{"type":13,"tag":198,"props":308,"children":309},{"type":200},[],{"type":18,"value":311}," be in the ",{"type":13,"tag":205,"props":313,"children":314},{"href":207},[315],{"type":18,"value":210},{"type":13,"tag":293,"props":317,"children":319},{"name":318},"VUID-vkEndCommandBuffer-commandBuffer-00060",[320],{"type":13,"tag":14,"props":321,"children":322},{},[323,325,330,332,335],{"type":18,"value":324},"If ",{"type":13,"tag":34,"props":326,"children":328},{"className":327},[],[329],{"type":18,"value":73},{"type":18,"value":331}," is a primary command buffer, there ",{"type":13,"tag":198,"props":333,"children":334},{"type":200},[],{"type":18,"value":336}," not be\nan active render pass instance",{"type":13,"tag":293,"props":338,"children":340},{"name":339},"VUID-vkEndCommandBuffer-commandBuffer-00061",[341],{"type":13,"tag":14,"props":342,"children":343},{},[344,346,352,354,359,360,363],{"type":18,"value":345},"All queries made ",{"type":13,"tag":205,"props":347,"children":349},{"href":348},"/man/vkCmdBeginQuery#queries-operation-active",[350],{"type":18,"value":351},"active",{"type":18,"value":353}," during the\nrecording of ",{"type":13,"tag":34,"props":355,"children":357},{"className":356},[],[358],{"type":18,"value":73},{"type":18,"value":306},{"type":13,"tag":198,"props":361,"children":362},{"type":200},[],{"type":18,"value":364}," have been made inactive",{"type":13,"tag":293,"props":366,"children":368},{"name":367},"VUID-vkEndCommandBuffer-None-01978",[369],{"type":13,"tag":14,"props":370,"children":371},{},[372,374,377,379],{"type":18,"value":373},"Conditional rendering ",{"type":13,"tag":198,"props":375,"children":376},{"type":200},[],{"type":18,"value":378}," not be\n",{"type":13,"tag":205,"props":380,"children":382},{"href":381},"/chapters/drawing#active-conditional-rendering",[383],{"type":18,"value":351},{"type":13,"tag":293,"props":385,"children":387},{"name":386},"VUID-vkEndCommandBuffer-None-06991",[388],{"type":13,"tag":14,"props":389,"children":390},{},[391,393,396],{"type":18,"value":392},"There ",{"type":13,"tag":198,"props":394,"children":395},{"type":200},[],{"type":18,"value":397}," be no video session object bound",{"type":13,"tag":293,"props":399,"children":401},{"name":400},"VUID-vkEndCommandBuffer-commandBuffer-01815",[402],{"type":13,"tag":14,"props":403,"children":404},{},[405,406,411,413,416,418,424,426,431,433],{"type":18,"value":324},{"type":13,"tag":34,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":73},{"type":18,"value":412}," is a secondary command buffer, there ",{"type":13,"tag":198,"props":414,"children":415},{"type":200},[],{"type":18,"value":417}," not be\nan outstanding ",{"type":13,"tag":205,"props":419,"children":421},{"href":420},"/man/vkCmdBeginDebugUtilsLabelEXT",[422],{"type":18,"value":423},"vkCmdBeginDebugUtilsLabelEXT",{"type":18,"value":425}," command recorded to\n",{"type":13,"tag":34,"props":427,"children":429},{"className":428},[],[430],{"type":18,"value":73},{"type":18,"value":432}," that has not previously been ended by a call to\n",{"type":13,"tag":205,"props":434,"children":436},{"href":435},"/man/vkCmdEndDebugUtilsLabelEXT",[437],{"type":18,"value":438},"vkCmdEndDebugUtilsLabelEXT",{"type":13,"tag":293,"props":440,"children":442},{"name":441},"VUID-vkEndCommandBuffer-commandBuffer-00062",[443],{"type":13,"tag":14,"props":444,"children":445},{},[446,447,452,453,456,457,463,464,469,470],{"type":18,"value":324},{"type":13,"tag":34,"props":448,"children":450},{"className":449},[],[451],{"type":18,"value":73},{"type":18,"value":412},{"type":13,"tag":198,"props":454,"children":455},{"type":200},[],{"type":18,"value":417},{"type":13,"tag":205,"props":458,"children":460},{"href":459},"/man/vkCmdDebugMarkerBeginEXT",[461],{"type":18,"value":462},"vkCmdDebugMarkerBeginEXT",{"type":18,"value":425},{"type":13,"tag":34,"props":465,"children":467},{"className":466},[],[468],{"type":18,"value":73},{"type":18,"value":432},{"type":13,"tag":205,"props":471,"children":473},{"href":472},"/man/vkCmdDebugMarkerEndEXT",[474],{"type":18,"value":475},"vkCmdDebugMarkerEndEXT",{"type":13,"tag":288,"props":477,"children":479},{"name":478},"Valid Usage (Implicit)",[480],{"type":13,"tag":293,"props":481,"children":483},{"name":482},"VUID-vkEndCommandBuffer-commandBuffer-parameter",[484],{"type":13,"tag":14,"props":485,"children":486},{},[487,492,493,496,498,504],{"type":13,"tag":34,"props":488,"children":490},{"className":489},[],[491],{"type":18,"value":73},{"type":18,"value":306},{"type":13,"tag":198,"props":494,"children":495},{"type":200},[],{"type":18,"value":497}," be a valid ",{"type":13,"tag":205,"props":499,"children":501},{"href":500},"/man/VkCommandBuffer",[502],{"type":18,"value":503},"VkCommandBuffer",{"type":18,"value":505}," handle",{"type":13,"tag":507,"props":508,"children":510},"validity-box",{"name":509},"Host Synchronization",[511],{"type":13,"tag":178,"props":512,"children":513},{},[514,530],{"type":13,"tag":182,"props":515,"children":516},{},[517,519,524,525,528],{"type":18,"value":518},"Host access to ",{"type":13,"tag":34,"props":520,"children":522},{"className":521},[],[523],{"type":18,"value":73},{"type":18,"value":306},{"type":13,"tag":198,"props":526,"children":527},{"type":200},[],{"type":18,"value":529}," be externally synchronized",{"type":13,"tag":182,"props":531,"children":532},{},[533,535,541,543,548,550,553],{"type":18,"value":534},"Host access to the ",{"type":13,"tag":34,"props":536,"children":538},{"className":537},[],[539],{"type":18,"value":540},"VkCommandPool",{"type":18,"value":542}," that ",{"type":13,"tag":34,"props":544,"children":546},{"className":545},[],[547],{"type":18,"value":73},{"type":18,"value":549}," was allocated from ",{"type":13,"tag":198,"props":551,"children":552},{"type":200},[],{"type":18,"value":554}," be externally synchronized\n::",{"type":13,"tag":556,"props":557,"children":558},"style",{},[559],{"type":18,"value":560},"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":562},[],"markdown",1725732616115]