[{"data":1,"prerenderedAt":506},["ShallowReactive",2],{"EjbtQCHYKD":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":505,"_id":4},"vkCmdSetDescriptorBufferOffsets2EXT","Setting descriptor buffer offsets in a command buffer","VK_KHR_maintenance6",[8,9],"primary","secondary","both",[12,13],"graphics","compute",[15],"state","protos",[],{"type":19,"children":20,"toc":503},"root",[21,29,225,259,331,451,497],{"type":22,"tag":23,"props":24,"children":25},"element","p",{},[26],{"type":27,"value":28},"text","Alternatively, to set descriptor buffer offsets in a command buffer, call:",{"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 vkCmdSetDescriptorBufferOffsets2EXT(\n VkCommandBuffer commandBuffer,\n const VkSetDescriptorBufferOffsetsInfoEXT* pSetDescriptorBufferOffsetsInfo);\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}," vkCmdSetDescriptorBufferOffsets2EXT",{"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}," VkSetDescriptorBufferOffsetsInfoEXT",{"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}," pSetDescriptorBufferOffsetsInfo",{"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_set_descriptor_buffer_offsets2_ext(\n command_buffer: vk::CommandBuffer,\n p_set_descriptor_buffer_offsets_info: *const vk::SetDescriptorBufferOffsetsInfoEXT,\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_set_descriptor_buffer_offsets2_ext",{"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_set_descriptor_buffer_offsets_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},"SetDescriptorBufferOffsetsInfoEXT",{"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 in which the descriptor buffer\noffsets will be set.",{"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},"pSetDescriptorBufferOffsetsInfo",{"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},"VkSetDescriptorBufferOffsetsInfoEXT",{"type":27,"value":258}," structure.",{"type":22,"tag":260,"props":261,"children":263},"validity-group",{"name":262},"Valid Usage",[264,294],{"type":22,"tag":265,"props":266,"children":268},"validity-field",{"name":267},"VUID-vkCmdSetDescriptorBufferOffsets2EXT-descriptorBuffer-09470",[269],{"type":22,"tag":23,"props":270,"children":271},{},[272,274,285,287,292],{"type":27,"value":273},"The ",{"type":22,"tag":275,"props":276,"children":278},"a",{"href":277},"/man/VkPhysicalDeviceDescriptorBufferFeaturesEXT#features-descriptorBuffer",[279],{"type":22,"tag":43,"props":280,"children":282},{"className":281},[],[283],{"type":27,"value":284},"descriptorBuffer",{"type":27,"value":286}," feature ",{"type":22,"tag":288,"props":289,"children":291},"normative",{"type":290},"must",[],{"type":27,"value":293},"\nbe enabled",{"type":22,"tag":265,"props":295,"children":297},{"name":296},"VUID-vkCmdSetDescriptorBufferOffsets2EXT-pSetDescriptorBufferOffsetsInfo-09471",[298],{"type":22,"tag":23,"props":299,"children":300},{},[301,303,309,311,314,316,321,323,329],{"type":27,"value":302},"Each bit in ",{"type":22,"tag":43,"props":304,"children":306},{"className":305},[],[307],{"type":27,"value":308},"pSetDescriptorBufferOffsetsInfo→stageFlags",{"type":27,"value":310}," ",{"type":22,"tag":288,"props":312,"children":313},{"type":290},[],{"type":27,"value":315}," be a\nstage supported by the ",{"type":22,"tag":43,"props":317,"children":319},{"className":318},[],[320],{"type":27,"value":84},{"type":27,"value":322},"’s parent\n",{"type":22,"tag":43,"props":324,"children":326},{"className":325},[],[327],{"type":27,"value":328},"VkCommandPool",{"type":27,"value":330},"’s queue family",{"type":22,"tag":260,"props":332,"children":334},{"name":333},"Valid Usage (Implicit)",[335,361,386,410,437],{"type":22,"tag":265,"props":336,"children":338},{"name":337},"VUID-vkCmdSetDescriptorBufferOffsets2EXT-commandBuffer-parameter",[339],{"type":22,"tag":23,"props":340,"children":341},{},[342,347,348,351,353,359],{"type":22,"tag":43,"props":343,"children":345},{"className":344},[],[346],{"type":27,"value":84},{"type":27,"value":310},{"type":22,"tag":288,"props":349,"children":350},{"type":290},[],{"type":27,"value":352}," be a valid ",{"type":22,"tag":275,"props":354,"children":356},{"href":355},"/man/VkCommandBuffer",[357],{"type":27,"value":358},"VkCommandBuffer",{"type":27,"value":360}," handle",{"type":22,"tag":265,"props":362,"children":364},{"name":363},"VUID-vkCmdSetDescriptorBufferOffsets2EXT-pSetDescriptorBufferOffsetsInfo-parameter",[365],{"type":22,"tag":23,"props":366,"children":367},{},[368,373,374,377,379,384],{"type":22,"tag":43,"props":369,"children":371},{"className":370},[],[372],{"type":27,"value":248},{"type":27,"value":310},{"type":22,"tag":288,"props":375,"children":376},{"type":290},[],{"type":27,"value":378}," be a valid pointer to a valid ",{"type":22,"tag":275,"props":380,"children":382},{"href":381},"/man/VkSetDescriptorBufferOffsetsInfoEXT",[383],{"type":27,"value":256},{"type":27,"value":385}," structure",{"type":22,"tag":265,"props":387,"children":389},{"name":388},"VUID-vkCmdSetDescriptorBufferOffsets2EXT-commandBuffer-recording",[390],{"type":22,"tag":23,"props":391,"children":392},{},[393,398,399,402,404],{"type":22,"tag":43,"props":394,"children":396},{"className":395},[],[397],{"type":27,"value":84},{"type":27,"value":310},{"type":22,"tag":288,"props":400,"children":401},{"type":290},[],{"type":27,"value":403}," be in the ",{"type":22,"tag":275,"props":405,"children":407},{"href":406},"/chapters/commandbuffers#commandbuffers-lifecycle",[408],{"type":27,"value":409},"recording state",{"type":22,"tag":265,"props":411,"children":413},{"name":412},"VUID-vkCmdSetDescriptorBufferOffsets2EXT-commandBuffer-cmdpool",[414],{"type":22,"tag":23,"props":415,"children":416},{},[417,418,423,425,430,432,435],{"type":27,"value":273},{"type":22,"tag":43,"props":419,"children":421},{"className":420},[],[422],{"type":27,"value":328},{"type":27,"value":424}," that ",{"type":22,"tag":43,"props":426,"children":428},{"className":427},[],[429],{"type":27,"value":84},{"type":27,"value":431}," was allocated from ",{"type":22,"tag":288,"props":433,"children":434},{"type":290},[],{"type":27,"value":436}," support graphics, or compute operations",{"type":22,"tag":265,"props":438,"children":440},{"name":439},"VUID-vkCmdSetDescriptorBufferOffsets2EXT-videocoding",[441],{"type":22,"tag":23,"props":442,"children":443},{},[444,446,449],{"type":27,"value":445},"This command ",{"type":22,"tag":288,"props":447,"children":448},{"type":290},[],{"type":27,"value":450}," only be called outside of a video coding scope",{"type":22,"tag":452,"props":453,"children":455},"validity-box",{"name":454},"Host Synchronization",[456],{"type":22,"tag":226,"props":457,"children":458},{},[459,475],{"type":22,"tag":230,"props":460,"children":461},{},[462,464,469,470,473],{"type":27,"value":463},"Host access to ",{"type":22,"tag":43,"props":465,"children":467},{"className":466},[],[468],{"type":27,"value":84},{"type":27,"value":310},{"type":22,"tag":288,"props":471,"children":472},{"type":290},[],{"type":27,"value":474}," be externally synchronized",{"type":22,"tag":230,"props":476,"children":477},{},[478,480,485,486,491,492,495],{"type":27,"value":479},"Host access to the ",{"type":22,"tag":43,"props":481,"children":483},{"className":482},[],[484],{"type":27,"value":328},{"type":27,"value":424},{"type":22,"tag":43,"props":487,"children":489},{"className":488},[],[490],{"type":27,"value":84},{"type":27,"value":431},{"type":22,"tag":288,"props":493,"children":494},{"type":290},[],{"type":27,"value":496}," be externally synchronized\n::",{"type":22,"tag":498,"props":499,"children":500},"style",{},[501],{"type":27,"value":502},"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":504},[],"markdown",1729612505008]