[{"data":1,"prerenderedAt":481},["ShallowReactive",2],{"buQECriD9C":3},{"title":4,"description":5,"parent":6,"cmd_buf_level":7,"render_pass_scope":10,"supported_queue_types":11,"tasks":14,"type":16,"xrefs":17,"body":18,"_type":480,"_id":4},"vkCmdBindDescriptorSets2KHR","Binds descriptor sets to a command buffer","VK_KHR_maintenance6",[8,9],"primary","secondary","both",[12,13],"graphics","compute",[15],"state","protos",[],{"type":19,"children":20,"toc":478},"root",[21,29,225,259,304,426,472],{"type":22,"tag":23,"props":24,"children":25},"element","p",{},[26],{"type":27,"value":28},"text","Alternatively, to bind one or more descriptor sets to a command buffer,\ncall:",{"type":22,"tag":30,"props":31,"children":32},"code-group",{},[33,119],{"type":22,"tag":34,"props":35,"children":41},"pre",{"className":36,"code":37,"filename":38,"language":39,"meta":40,"style":40},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdBindDescriptorSets2KHR(\n VkCommandBuffer commandBuffer,\n const VkBindDescriptorSetsInfoKHR* pBindDescriptorSetsInfo);\n","C","c","",[42],{"type":22,"tag":43,"props":44,"children":45},"code",{"__ignoreMap":40},[46,70,90],{"type":22,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,64],{"type":22,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[56],{"type":27,"value":57},"void",{"type":22,"tag":47,"props":59,"children":61},{"style":60},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[62],{"type":27,"value":63}," vkCmdBindDescriptorSets2KHR",{"type":22,"tag":47,"props":65,"children":67},{"style":66},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[68],{"type":27,"value":69},"(\n",{"type":22,"tag":47,"props":71,"children":73},{"class":49,"line":72},2,[74,79,85],{"type":22,"tag":47,"props":75,"children":76},{"style":66},[77],{"type":27,"value":78}," VkCommandBuffer ",{"type":22,"tag":47,"props":80,"children":82},{"style":81},"--shiki-default:#953800;--shiki-dark:#FFA657",[83],{"type":27,"value":84},"commandBuffer",{"type":22,"tag":47,"props":86,"children":87},{"style":66},[88],{"type":27,"value":89},",\n",{"type":22,"tag":47,"props":91,"children":93},{"class":49,"line":92},3,[94,99,104,109,114],{"type":22,"tag":47,"props":95,"children":96},{"style":54},[97],{"type":27,"value":98}," const",{"type":22,"tag":47,"props":100,"children":101},{"style":66},[102],{"type":27,"value":103}," VkBindDescriptorSetsInfoKHR",{"type":22,"tag":47,"props":105,"children":106},{"style":54},[107],{"type":27,"value":108},"*",{"type":22,"tag":47,"props":110,"children":111},{"style":81},[112],{"type":27,"value":113}," pBindDescriptorSetsInfo",{"type":22,"tag":47,"props":115,"children":116},{"style":66},[117],{"type":27,"value":118},");\n",{"type":22,"tag":34,"props":120,"children":125},{"className":121,"code":122,"filename":123,"language":124,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_bind_descriptor_sets2_khr(\n command_buffer: vk::CommandBuffer,\n p_bind_descriptor_sets_info: *const vk::BindDescriptorSetsInfoKHR,\n);\n","Rust","rs",[126],{"type":22,"tag":43,"props":127,"children":128},{"__ignoreMap":40},[129,151,183,217],{"type":22,"tag":47,"props":130,"children":131},{"class":49,"line":50},[132,137,142,147],{"type":22,"tag":47,"props":133,"children":134},{"style":54},[135],{"type":27,"value":136},"pub",{"type":22,"tag":47,"props":138,"children":139},{"style":54},[140],{"type":27,"value":141}," fn",{"type":22,"tag":47,"props":143,"children":144},{"style":60},[145],{"type":27,"value":146}," cmd_bind_descriptor_sets2_khr",{"type":22,"tag":47,"props":148,"children":149},{"style":66},[150],{"type":27,"value":69},{"type":22,"tag":47,"props":152,"children":153},{"class":49,"line":72},[154,159,164,169,174,179],{"type":22,"tag":47,"props":155,"children":156},{"style":66},[157],{"type":27,"value":158}," command_buffer",{"type":22,"tag":47,"props":160,"children":161},{"style":54},[162],{"type":27,"value":163},":",{"type":22,"tag":47,"props":165,"children":166},{"style":81},[167],{"type":27,"value":168}," vk",{"type":22,"tag":47,"props":170,"children":171},{"style":54},[172],{"type":27,"value":173},"::",{"type":22,"tag":47,"props":175,"children":176},{"style":81},[177],{"type":27,"value":178},"CommandBuffer",{"type":22,"tag":47,"props":180,"children":181},{"style":66},[182],{"type":27,"value":89},{"type":22,"tag":47,"props":184,"children":185},{"class":49,"line":92},[186,191,195,200,204,208,213],{"type":22,"tag":47,"props":187,"children":188},{"style":66},[189],{"type":27,"value":190}," p_bind_descriptor_sets_info",{"type":22,"tag":47,"props":192,"children":193},{"style":54},[194],{"type":27,"value":163},{"type":22,"tag":47,"props":196,"children":197},{"style":54},[198],{"type":27,"value":199}," *const",{"type":22,"tag":47,"props":201,"children":202},{"style":81},[203],{"type":27,"value":168},{"type":22,"tag":47,"props":205,"children":206},{"style":54},[207],{"type":27,"value":173},{"type":22,"tag":47,"props":209,"children":210},{"style":81},[211],{"type":27,"value":212},"BindDescriptorSetsInfoKHR",{"type":22,"tag":47,"props":214,"children":215},{"style":66},[216],{"type":27,"value":89},{"type":22,"tag":47,"props":218,"children":220},{"class":49,"line":219},4,[221],{"type":22,"tag":47,"props":222,"children":223},{"style":66},[224],{"type":27,"value":118},{"type":22,"tag":226,"props":227,"children":228},"ul",{},[229,240],{"type":22,"tag":230,"props":231,"children":232},"li",{},[233,238],{"type":22,"tag":43,"props":234,"children":236},{"className":235},[],[237],{"type":27,"value":84},{"type":27,"value":239}," is the command buffer that the descriptor sets will\nbe bound to.",{"type":22,"tag":230,"props":241,"children":242},{},[243,249,251,257],{"type":22,"tag":43,"props":244,"children":246},{"className":245},[],[247],{"type":27,"value":248},"pBindDescriptorSetsInfo",{"type":27,"value":250}," is a pointer to a\n",{"type":22,"tag":43,"props":252,"children":254},{"className":253},[],[255],{"type":27,"value":256},"VkBindDescriptorSetsInfoKHR",{"type":27,"value":258}," structure.",{"type":22,"tag":260,"props":261,"children":263},"validity-group",{"name":262},"Valid Usage",[264],{"type":22,"tag":265,"props":266,"children":268},"validity-field",{"name":267},"VUID-vkCmdBindDescriptorSets2KHR-pBindDescriptorSetsInfo-09467",[269],{"type":22,"tag":23,"props":270,"children":271},{},[272,274,280,282,287,289,294,296,302],{"type":27,"value":273},"Each bit in ",{"type":22,"tag":43,"props":275,"children":277},{"className":276},[],[278],{"type":27,"value":279},"pBindDescriptorSetsInfo→stageFlags",{"type":27,"value":281}," ",{"type":22,"tag":283,"props":284,"children":286},"normative",{"type":285},"must",[],{"type":27,"value":288}," be a stage\nsupported by the ",{"type":22,"tag":43,"props":290,"children":292},{"className":291},[],[293],{"type":27,"value":84},{"type":27,"value":295},"’s parent ",{"type":22,"tag":43,"props":297,"children":299},{"className":298},[],[300],{"type":27,"value":301},"VkCommandPool",{"type":27,"value":303},"’s\nqueue family",{"type":22,"tag":260,"props":305,"children":307},{"name":306},"Valid Usage (Implicit)",[308,335,360,384,412],{"type":22,"tag":265,"props":309,"children":311},{"name":310},"VUID-vkCmdBindDescriptorSets2KHR-commandBuffer-parameter",[312],{"type":22,"tag":23,"props":313,"children":314},{},[315,320,321,324,326,333],{"type":22,"tag":43,"props":316,"children":318},{"className":317},[],[319],{"type":27,"value":84},{"type":27,"value":281},{"type":22,"tag":283,"props":322,"children":323},{"type":285},[],{"type":27,"value":325}," be a valid ",{"type":22,"tag":327,"props":328,"children":330},"a",{"href":329},"/man/VkCommandBuffer",[331],{"type":27,"value":332},"VkCommandBuffer",{"type":27,"value":334}," handle",{"type":22,"tag":265,"props":336,"children":338},{"name":337},"VUID-vkCmdBindDescriptorSets2KHR-pBindDescriptorSetsInfo-parameter",[339],{"type":22,"tag":23,"props":340,"children":341},{},[342,347,348,351,353,358],{"type":22,"tag":43,"props":343,"children":345},{"className":344},[],[346],{"type":27,"value":248},{"type":27,"value":281},{"type":22,"tag":283,"props":349,"children":350},{"type":285},[],{"type":27,"value":352}," be a valid pointer to a valid ",{"type":22,"tag":327,"props":354,"children":356},{"href":355},"/man/VkBindDescriptorSetsInfoKHR",[357],{"type":27,"value":256},{"type":27,"value":359}," structure",{"type":22,"tag":265,"props":361,"children":363},{"name":362},"VUID-vkCmdBindDescriptorSets2KHR-commandBuffer-recording",[364],{"type":22,"tag":23,"props":365,"children":366},{},[367,372,373,376,378],{"type":22,"tag":43,"props":368,"children":370},{"className":369},[],[371],{"type":27,"value":84},{"type":27,"value":281},{"type":22,"tag":283,"props":374,"children":375},{"type":285},[],{"type":27,"value":377}," be in the ",{"type":22,"tag":327,"props":379,"children":381},{"href":380},"/chapters/commandbuffers#commandbuffers-lifecycle",[382],{"type":27,"value":383},"recording state",{"type":22,"tag":265,"props":385,"children":387},{"name":386},"VUID-vkCmdBindDescriptorSets2KHR-commandBuffer-cmdpool",[388],{"type":22,"tag":23,"props":389,"children":390},{},[391,393,398,400,405,407,410],{"type":27,"value":392},"The ",{"type":22,"tag":43,"props":394,"children":396},{"className":395},[],[397],{"type":27,"value":301},{"type":27,"value":399}," that ",{"type":22,"tag":43,"props":401,"children":403},{"className":402},[],[404],{"type":27,"value":84},{"type":27,"value":406}," was allocated from ",{"type":22,"tag":283,"props":408,"children":409},{"type":285},[],{"type":27,"value":411}," support graphics, or compute operations",{"type":22,"tag":265,"props":413,"children":415},{"name":414},"VUID-vkCmdBindDescriptorSets2KHR-videocoding",[416],{"type":22,"tag":23,"props":417,"children":418},{},[419,421,424],{"type":27,"value":420},"This command ",{"type":22,"tag":283,"props":422,"children":423},{"type":285},[],{"type":27,"value":425}," only be called outside of a video coding scope",{"type":22,"tag":427,"props":428,"children":430},"validity-box",{"name":429},"Host Synchronization",[431],{"type":22,"tag":226,"props":432,"children":433},{},[434,450],{"type":22,"tag":230,"props":435,"children":436},{},[437,439,444,445,448],{"type":27,"value":438},"Host access to ",{"type":22,"tag":43,"props":440,"children":442},{"className":441},[],[443],{"type":27,"value":84},{"type":27,"value":281},{"type":22,"tag":283,"props":446,"children":447},{"type":285},[],{"type":27,"value":449}," be externally synchronized",{"type":22,"tag":230,"props":451,"children":452},{},[453,455,460,461,466,467,470],{"type":27,"value":454},"Host access to the ",{"type":22,"tag":43,"props":456,"children":458},{"className":457},[],[459],{"type":27,"value":301},{"type":27,"value":399},{"type":22,"tag":43,"props":462,"children":464},{"className":463},[],[465],{"type":27,"value":84},{"type":27,"value":406},{"type":22,"tag":283,"props":468,"children":469},{"type":285},[],{"type":27,"value":471}," be externally synchronized\n::",{"type":22,"tag":473,"props":474,"children":475},"style",{},[476],{"type":27,"value":477},"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":40,"searchDepth":72,"depth":72,"links":479},[],"markdown",1729612491730]