[{"data":1,"prerenderedAt":593},["ShallowReactive",2],{"miN1CMU5cK":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":592,"_id":4},"vkBindBufferMemory2","Bind device memory to buffer objects","VK_VERSION_1_1","protos",[],{"type":10,"children":11,"toc":590},"root",[12,20,298,360,372,407,439,496,584],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To attach memory to buffer objects for one or more buffers at a time, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,128],{"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 vkBindBufferMemory2KHR(\n VkDevice device,\n uint32_t bindInfoCount,\n const VkBindBufferMemoryInfo* pBindInfos);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,60,80,99],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,55],{"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":54},"vkBindBufferMemory2KHR",{"type":13,"tag":38,"props":56,"children":57},{"style":45},[58],{"type":18,"value":59},"(\n",{"type":13,"tag":38,"props":61,"children":63},{"class":40,"line":62},2,[64,69,75],{"type":13,"tag":38,"props":65,"children":66},{"style":45},[67],{"type":18,"value":68}," VkDevice ",{"type":13,"tag":38,"props":70,"children":72},{"style":71},"--shiki-default:#953800;--shiki-dark:#FFA657",[73],{"type":18,"value":74},"device",{"type":13,"tag":38,"props":76,"children":77},{"style":45},[78],{"type":18,"value":79},",\n",{"type":13,"tag":38,"props":81,"children":83},{"class":40,"line":82},3,[84,90,95],{"type":13,"tag":38,"props":85,"children":87},{"style":86},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[88],{"type":18,"value":89}," uint32_t",{"type":13,"tag":38,"props":91,"children":92},{"style":71},[93],{"type":18,"value":94}," bindInfoCount",{"type":13,"tag":38,"props":96,"children":97},{"style":45},[98],{"type":18,"value":79},{"type":13,"tag":38,"props":100,"children":102},{"class":40,"line":101},4,[103,108,113,118,123],{"type":13,"tag":38,"props":104,"children":105},{"style":86},[106],{"type":18,"value":107}," const",{"type":13,"tag":38,"props":109,"children":110},{"style":45},[111],{"type":18,"value":112}," VkBindBufferMemoryInfo",{"type":13,"tag":38,"props":114,"children":115},{"style":86},[116],{"type":18,"value":117},"*",{"type":13,"tag":38,"props":119,"children":120},{"style":71},[121],{"type":18,"value":122}," pBindInfos",{"type":13,"tag":38,"props":124,"children":125},{"style":45},[126],{"type":18,"value":127},");\n",{"type":13,"tag":25,"props":129,"children":134},{"className":130,"code":131,"filename":132,"language":133,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn bind_buffer_memory2_khr(\n device: crate :: vk :: vk::Device,\n bind_info_count: u32,\n p_bind_infos: *const vk::BindBufferMemoryInfo,\n) -> vk::Result;\n","Rust","rs",[135],{"type":13,"tag":34,"props":136,"children":137},{"__ignoreMap":31},[138,160,211,232,266],{"type":13,"tag":38,"props":139,"children":140},{"class":40,"line":41},[141,146,151,156],{"type":13,"tag":38,"props":142,"children":143},{"style":86},[144],{"type":18,"value":145},"pub",{"type":13,"tag":38,"props":147,"children":148},{"style":86},[149],{"type":18,"value":150}," fn",{"type":13,"tag":38,"props":152,"children":153},{"style":51},[154],{"type":18,"value":155}," bind_buffer_memory2_khr",{"type":13,"tag":38,"props":157,"children":158},{"style":45},[159],{"type":18,"value":59},{"type":13,"tag":38,"props":161,"children":162},{"class":40,"line":62},[163,168,173,178,183,188,193,198,202,207],{"type":13,"tag":38,"props":164,"children":165},{"style":45},[166],{"type":18,"value":167}," device",{"type":13,"tag":38,"props":169,"children":170},{"style":86},[171],{"type":18,"value":172},":",{"type":13,"tag":38,"props":174,"children":175},{"style":86},[176],{"type":18,"value":177}," crate",{"type":13,"tag":38,"props":179,"children":180},{"style":86},[181],{"type":18,"value":182}," ::",{"type":13,"tag":38,"props":184,"children":185},{"style":45},[186],{"type":18,"value":187}," vk ",{"type":13,"tag":38,"props":189,"children":190},{"style":86},[191],{"type":18,"value":192},"::",{"type":13,"tag":38,"props":194,"children":195},{"style":71},[196],{"type":18,"value":197}," vk",{"type":13,"tag":38,"props":199,"children":200},{"style":86},[201],{"type":18,"value":192},{"type":13,"tag":38,"props":203,"children":204},{"style":71},[205],{"type":18,"value":206},"Device",{"type":13,"tag":38,"props":208,"children":209},{"style":45},[210],{"type":18,"value":79},{"type":13,"tag":38,"props":212,"children":213},{"class":40,"line":82},[214,219,223,228],{"type":13,"tag":38,"props":215,"children":216},{"style":45},[217],{"type":18,"value":218}," bind_info_count",{"type":13,"tag":38,"props":220,"children":221},{"style":86},[222],{"type":18,"value":172},{"type":13,"tag":38,"props":224,"children":225},{"style":71},[226],{"type":18,"value":227}," u32",{"type":13,"tag":38,"props":229,"children":230},{"style":45},[231],{"type":18,"value":79},{"type":13,"tag":38,"props":233,"children":234},{"class":40,"line":101},[235,240,244,249,253,257,262],{"type":13,"tag":38,"props":236,"children":237},{"style":45},[238],{"type":18,"value":239}," p_bind_infos",{"type":13,"tag":38,"props":241,"children":242},{"style":86},[243],{"type":18,"value":172},{"type":13,"tag":38,"props":245,"children":246},{"style":86},[247],{"type":18,"value":248}," *const",{"type":13,"tag":38,"props":250,"children":251},{"style":71},[252],{"type":18,"value":197},{"type":13,"tag":38,"props":254,"children":255},{"style":86},[256],{"type":18,"value":192},{"type":13,"tag":38,"props":258,"children":259},{"style":71},[260],{"type":18,"value":261},"BindBufferMemoryInfo",{"type":13,"tag":38,"props":263,"children":264},{"style":45},[265],{"type":18,"value":79},{"type":13,"tag":38,"props":267,"children":269},{"class":40,"line":268},5,[270,275,280,284,288,293],{"type":13,"tag":38,"props":271,"children":272},{"style":45},[273],{"type":18,"value":274},") ",{"type":13,"tag":38,"props":276,"children":277},{"style":86},[278],{"type":18,"value":279},"->",{"type":13,"tag":38,"props":281,"children":282},{"style":71},[283],{"type":18,"value":197},{"type":13,"tag":38,"props":285,"children":286},{"style":86},[287],{"type":18,"value":192},{"type":13,"tag":38,"props":289,"children":290},{"style":71},[291],{"type":18,"value":292},"Result",{"type":13,"tag":38,"props":294,"children":295},{"style":45},[296],{"type":18,"value":297},";\n",{"type":13,"tag":299,"props":300,"children":301},"ul",{},[302,313,332],{"type":13,"tag":303,"props":304,"children":305},"li",{},[306,311],{"type":13,"tag":34,"props":307,"children":309},{"className":308},[],[310],{"type":18,"value":74},{"type":18,"value":312}," is the logical device that owns the buffers and memory.",{"type":13,"tag":303,"props":314,"children":315},{},[316,322,324,330],{"type":13,"tag":34,"props":317,"children":319},{"className":318},[],[320],{"type":18,"value":321},"bindInfoCount",{"type":18,"value":323}," is the number of elements in ",{"type":13,"tag":34,"props":325,"children":327},{"className":326},[],[328],{"type":18,"value":329},"pBindInfos",{"type":18,"value":331},".",{"type":13,"tag":303,"props":333,"children":334},{},[335,340,342,347,351,358],{"type":13,"tag":34,"props":336,"children":338},{"className":337},[],[339],{"type":18,"value":329},{"type":18,"value":341}," is a pointer to an array of ",{"type":13,"tag":34,"props":343,"children":345},{"className":344},[],[346],{"type":18,"value":321},{"type":13,"tag":348,"props":349,"children":350},"br",{},[],{"type":13,"tag":352,"props":353,"children":355},"a",{"href":354},"/man/VkBindBufferMemoryInfo",[356],{"type":18,"value":357},"VkBindBufferMemoryInfo",{"type":18,"value":359}," structures describing buffers and memory to\nbind.",{"type":13,"tag":14,"props":361,"children":362},{},[363,365,370],{"type":18,"value":364},"On some implementations, it ",{"type":13,"tag":366,"props":367,"children":369},"normative",{"type":368},"may",[],{"type":18,"value":371}," be more efficient to batch memory bindings\ninto a single command.",{"type":13,"tag":14,"props":373,"children":374},{},[375,377,387,389,393,395,400,402,405],{"type":18,"value":376},"If the ",{"type":13,"tag":352,"props":378,"children":380},{"href":379},"/man/VkPhysicalDeviceMaintenance6FeaturesKHR#features-maintenance6",[381],{"type":13,"tag":34,"props":382,"children":384},{"className":383},[],[385],{"type":18,"value":386},"maintenance6",{"type":18,"value":388}," feature is enabled,\nthis command ",{"type":13,"tag":366,"props":390,"children":392},{"type":391},"must",[],{"type":18,"value":394}," attempt to perform all of the memory binding operations\ndescribed by ",{"type":13,"tag":34,"props":396,"children":398},{"className":397},[],[399],{"type":18,"value":329},{"type":18,"value":401},", and ",{"type":13,"tag":366,"props":403,"children":404},{"type":391},[],{"type":18,"value":406}," not early exit on the first\nfailure.",{"type":13,"tag":14,"props":408,"children":409},{},[410,412,417,419,425,427,430,432,438],{"type":18,"value":411},"If any of the memory binding operations described by ",{"type":13,"tag":34,"props":413,"children":415},{"className":414},[],[416],{"type":18,"value":329},{"type":18,"value":418}," fail,\nthe ",{"type":13,"tag":352,"props":420,"children":422},{"href":421},"/man/VkResult",[423],{"type":18,"value":424},"VkResult",{"type":18,"value":426}," returned by this command ",{"type":13,"tag":366,"props":428,"children":429},{"type":391},[],{"type":18,"value":431}," be the return value of any\none of the memory binding operations which did not return ",{"type":13,"tag":34,"props":433,"children":435},{"className":434},[],[436],{"type":18,"value":437},"VK_SUCCESS",{"type":18,"value":331},{"type":13,"tag":440,"props":441,"children":442},"note",{},[443,491],{"type":13,"tag":14,"props":444,"children":445},{},[446,447,452,454,460,462,468,470,475,477,482,484,489],{"type":18,"value":376},{"type":13,"tag":34,"props":448,"children":450},{"className":449},[],[451],{"type":18,"value":4},{"type":18,"value":453}," command failed,\n",{"type":13,"tag":352,"props":455,"children":457},{"href":456},"/man/VkBindMemoryStatusKHR",[458],{"type":18,"value":459},"VkBindMemoryStatusKHR",{"type":18,"value":461}," structures were not included in the ",{"type":13,"tag":34,"props":463,"children":465},{"className":464},[],[466],{"type":18,"value":467},"pNext",{"type":18,"value":469},"\nchains of each element of ",{"type":13,"tag":34,"props":471,"children":473},{"className":472},[],[474],{"type":18,"value":329},{"type":18,"value":476},",\nand ",{"type":13,"tag":34,"props":478,"children":480},{"className":479},[],[481],{"type":18,"value":321},{"type":18,"value":483}," was greater than one, then the buffers referenced by\n",{"type":13,"tag":34,"props":485,"children":487},{"className":486},[],[488],{"type":18,"value":329},{"type":18,"value":490}," will be in an indeterminate state, and must not be used.",{"type":13,"tag":14,"props":492,"children":493},{},[494],{"type":18,"value":495},"Applications should destroy these buffers.",{"type":13,"tag":497,"props":498,"children":500},"validity-group",{"name":499},"Valid Usage (Implicit)",[501,529,560],{"type":13,"tag":502,"props":503,"children":505},"validity-field",{"name":504},"VUID-vkBindBufferMemory2-device-parameter",[506],{"type":13,"tag":14,"props":507,"children":508},{},[509,514,516,519,521,527],{"type":13,"tag":34,"props":510,"children":512},{"className":511},[],[513],{"type":18,"value":74},{"type":18,"value":515}," ",{"type":13,"tag":366,"props":517,"children":518},{"type":391},[],{"type":18,"value":520}," be a valid ",{"type":13,"tag":352,"props":522,"children":524},{"href":523},"/man/VkDevice",[525],{"type":18,"value":526},"VkDevice",{"type":18,"value":528}," handle",{"type":13,"tag":502,"props":530,"children":532},{"name":531},"VUID-vkBindBufferMemory2-pBindInfos-parameter",[533],{"type":13,"tag":14,"props":534,"children":535},{},[536,541,542,545,547,552,554,558],{"type":13,"tag":34,"props":537,"children":539},{"className":538},[],[540],{"type":18,"value":329},{"type":18,"value":515},{"type":13,"tag":366,"props":543,"children":544},{"type":391},[],{"type":18,"value":546}," be a valid pointer to an array of ",{"type":13,"tag":34,"props":548,"children":550},{"className":549},[],[551],{"type":18,"value":321},{"type":18,"value":553}," valid ",{"type":13,"tag":352,"props":555,"children":556},{"href":354},[557],{"type":18,"value":357},{"type":18,"value":559}," structures",{"type":13,"tag":502,"props":561,"children":563},{"name":562},"VUID-vkBindBufferMemory2-bindInfoCount-arraylength",[564],{"type":13,"tag":14,"props":565,"children":566},{},[567,572,573,576,578],{"type":13,"tag":34,"props":568,"children":570},{"className":569},[],[571],{"type":18,"value":321},{"type":18,"value":515},{"type":13,"tag":366,"props":574,"children":575},{"type":391},[],{"type":18,"value":577}," be greater than ",{"type":13,"tag":34,"props":579,"children":581},{"className":580},[],[582],{"type":18,"value":583},"0",{"type":13,"tag":585,"props":586,"children":587},"style",{},[588],{"type":18,"value":589},"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":62,"depth":62,"links":591},[],"markdown",1725732596940]