[{"data":1,"prerenderedAt":437},["ShallowReactive",2],{"U1xcUwSfDA":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":436,"_id":4},"vkGetBufferMemoryRequirements","Returns the memory requirements for specified Vulkan object","VK_VERSION_1_0","protos",[],{"type":10,"children":11,"toc":434},"root",[12,20,277,322,428],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To determine the memory requirements for a buffer resource, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,123],{"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","void vkGetBufferMemoryRequirements(\n VkDevice device,\n VkBuffer buffer,\n VkMemoryRequirements* pMemoryRequirements);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,61,81,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:#CF222E;--shiki-dark:#FF7B72",[47],{"type":18,"value":48},"void",{"type":13,"tag":38,"props":50,"children":52},{"style":51},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[53],{"type":18,"value":54}," vkGetBufferMemoryRequirements",{"type":13,"tag":38,"props":56,"children":58},{"style":57},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[59],{"type":18,"value":60},"(\n",{"type":13,"tag":38,"props":62,"children":64},{"class":40,"line":63},2,[65,70,76],{"type":13,"tag":38,"props":66,"children":67},{"style":57},[68],{"type":18,"value":69}," VkDevice ",{"type":13,"tag":38,"props":71,"children":73},{"style":72},"--shiki-default:#953800;--shiki-dark:#FFA657",[74],{"type":18,"value":75},"device",{"type":13,"tag":38,"props":77,"children":78},{"style":57},[79],{"type":18,"value":80},",\n",{"type":13,"tag":38,"props":82,"children":84},{"class":40,"line":83},3,[85,90,95],{"type":13,"tag":38,"props":86,"children":87},{"style":57},[88],{"type":18,"value":89}," VkBuffer ",{"type":13,"tag":38,"props":91,"children":92},{"style":72},[93],{"type":18,"value":94},"buffer",{"type":13,"tag":38,"props":96,"children":97},{"style":57},[98],{"type":18,"value":80},{"type":13,"tag":38,"props":100,"children":102},{"class":40,"line":101},4,[103,108,113,118],{"type":13,"tag":38,"props":104,"children":105},{"style":57},[106],{"type":18,"value":107}," VkMemoryRequirements",{"type":13,"tag":38,"props":109,"children":110},{"style":45},[111],{"type":18,"value":112},"*",{"type":13,"tag":38,"props":114,"children":115},{"style":72},[116],{"type":18,"value":117}," pMemoryRequirements",{"type":13,"tag":38,"props":119,"children":120},{"style":57},[121],{"type":18,"value":122},");\n",{"type":13,"tag":25,"props":124,"children":129},{"className":125,"code":126,"filename":127,"language":128,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_buffer_memory_requirements(\n device: crate :: vk :: vk::Device,\n buffer: vk::Buffer,\n p_memory_requirements: *mut vk::MemoryRequirements,\n);\n","Rust","rs",[130],{"type":13,"tag":34,"props":131,"children":132},{"__ignoreMap":31},[133,155,206,235,269],{"type":13,"tag":38,"props":134,"children":135},{"class":40,"line":41},[136,141,146,151],{"type":13,"tag":38,"props":137,"children":138},{"style":45},[139],{"type":18,"value":140},"pub",{"type":13,"tag":38,"props":142,"children":143},{"style":45},[144],{"type":18,"value":145}," fn",{"type":13,"tag":38,"props":147,"children":148},{"style":51},[149],{"type":18,"value":150}," get_buffer_memory_requirements",{"type":13,"tag":38,"props":152,"children":153},{"style":57},[154],{"type":18,"value":60},{"type":13,"tag":38,"props":156,"children":157},{"class":40,"line":63},[158,163,168,173,178,183,188,193,197,202],{"type":13,"tag":38,"props":159,"children":160},{"style":57},[161],{"type":18,"value":162}," device",{"type":13,"tag":38,"props":164,"children":165},{"style":45},[166],{"type":18,"value":167},":",{"type":13,"tag":38,"props":169,"children":170},{"style":45},[171],{"type":18,"value":172}," crate",{"type":13,"tag":38,"props":174,"children":175},{"style":45},[176],{"type":18,"value":177}," ::",{"type":13,"tag":38,"props":179,"children":180},{"style":57},[181],{"type":18,"value":182}," vk ",{"type":13,"tag":38,"props":184,"children":185},{"style":45},[186],{"type":18,"value":187},"::",{"type":13,"tag":38,"props":189,"children":190},{"style":72},[191],{"type":18,"value":192}," vk",{"type":13,"tag":38,"props":194,"children":195},{"style":45},[196],{"type":18,"value":187},{"type":13,"tag":38,"props":198,"children":199},{"style":72},[200],{"type":18,"value":201},"Device",{"type":13,"tag":38,"props":203,"children":204},{"style":57},[205],{"type":18,"value":80},{"type":13,"tag":38,"props":207,"children":208},{"class":40,"line":83},[209,214,218,222,226,231],{"type":13,"tag":38,"props":210,"children":211},{"style":57},[212],{"type":18,"value":213}," buffer",{"type":13,"tag":38,"props":215,"children":216},{"style":45},[217],{"type":18,"value":167},{"type":13,"tag":38,"props":219,"children":220},{"style":72},[221],{"type":18,"value":192},{"type":13,"tag":38,"props":223,"children":224},{"style":45},[225],{"type":18,"value":187},{"type":13,"tag":38,"props":227,"children":228},{"style":72},[229],{"type":18,"value":230},"Buffer",{"type":13,"tag":38,"props":232,"children":233},{"style":57},[234],{"type":18,"value":80},{"type":13,"tag":38,"props":236,"children":237},{"class":40,"line":101},[238,243,247,252,256,260,265],{"type":13,"tag":38,"props":239,"children":240},{"style":57},[241],{"type":18,"value":242}," p_memory_requirements",{"type":13,"tag":38,"props":244,"children":245},{"style":45},[246],{"type":18,"value":167},{"type":13,"tag":38,"props":248,"children":249},{"style":45},[250],{"type":18,"value":251}," *mut",{"type":13,"tag":38,"props":253,"children":254},{"style":72},[255],{"type":18,"value":192},{"type":13,"tag":38,"props":257,"children":258},{"style":45},[259],{"type":18,"value":187},{"type":13,"tag":38,"props":261,"children":262},{"style":72},[263],{"type":18,"value":264},"MemoryRequirements",{"type":13,"tag":38,"props":266,"children":267},{"style":57},[268],{"type":18,"value":80},{"type":13,"tag":38,"props":270,"children":272},{"class":40,"line":271},5,[273],{"type":13,"tag":38,"props":274,"children":275},{"style":57},[276],{"type":18,"value":122},{"type":13,"tag":278,"props":279,"children":280},"ul",{},[281,292,302],{"type":13,"tag":282,"props":283,"children":284},"li",{},[285,290],{"type":13,"tag":34,"props":286,"children":288},{"className":287},[],[289],{"type":18,"value":75},{"type":18,"value":291}," is the logical device that owns the buffer.",{"type":13,"tag":282,"props":293,"children":294},{},[295,300],{"type":13,"tag":34,"props":296,"children":298},{"className":297},[],[299],{"type":18,"value":94},{"type":18,"value":301}," is the buffer to query.",{"type":13,"tag":282,"props":303,"children":304},{},[305,311,313,320],{"type":13,"tag":34,"props":306,"children":308},{"className":307},[],[309],{"type":18,"value":310},"pMemoryRequirements",{"type":18,"value":312}," is a pointer to a ",{"type":13,"tag":314,"props":315,"children":317},"a",{"href":316},"/man/VkMemoryRequirements",[318],{"type":18,"value":319},"VkMemoryRequirements",{"type":18,"value":321},"\nstructure in which the memory requirements of the buffer object are\nreturned.",{"type":13,"tag":323,"props":324,"children":326},"validity-group",{"name":325},"Valid Usage (Implicit)",[327,357,381,405],{"type":13,"tag":328,"props":329,"children":331},"validity-field",{"name":330},"VUID-vkGetBufferMemoryRequirements-device-parameter",[332],{"type":13,"tag":14,"props":333,"children":334},{},[335,340,342,347,349,355],{"type":13,"tag":34,"props":336,"children":338},{"className":337},[],[339],{"type":18,"value":75},{"type":18,"value":341}," ",{"type":13,"tag":343,"props":344,"children":346},"normative",{"type":345},"must",[],{"type":18,"value":348}," be a valid ",{"type":13,"tag":314,"props":350,"children":352},{"href":351},"/man/VkDevice",[353],{"type":18,"value":354},"VkDevice",{"type":18,"value":356}," handle",{"type":13,"tag":328,"props":358,"children":360},{"name":359},"VUID-vkGetBufferMemoryRequirements-buffer-parameter",[361],{"type":13,"tag":14,"props":362,"children":363},{},[364,369,370,373,374,380],{"type":13,"tag":34,"props":365,"children":367},{"className":366},[],[368],{"type":18,"value":94},{"type":18,"value":341},{"type":13,"tag":343,"props":371,"children":372},{"type":345},[],{"type":18,"value":348},{"type":13,"tag":314,"props":375,"children":377},{"href":376},"/man/VkBuffer",[378],{"type":18,"value":379},"VkBuffer",{"type":18,"value":356},{"type":13,"tag":328,"props":382,"children":384},{"name":383},"VUID-vkGetBufferMemoryRequirements-pMemoryRequirements-parameter",[385],{"type":13,"tag":14,"props":386,"children":387},{},[388,393,394,397,399,403],{"type":13,"tag":34,"props":389,"children":391},{"className":390},[],[392],{"type":18,"value":310},{"type":18,"value":341},{"type":13,"tag":343,"props":395,"children":396},{"type":345},[],{"type":18,"value":398}," be a valid pointer to a ",{"type":13,"tag":314,"props":400,"children":401},{"href":316},[402],{"type":18,"value":319},{"type":18,"value":404}," structure",{"type":13,"tag":328,"props":406,"children":408},{"name":407},"VUID-vkGetBufferMemoryRequirements-buffer-parent",[409],{"type":13,"tag":14,"props":410,"children":411},{},[412,417,418,421,423],{"type":13,"tag":34,"props":413,"children":415},{"className":414},[],[416],{"type":18,"value":94},{"type":18,"value":341},{"type":13,"tag":343,"props":419,"children":420},{"type":345},[],{"type":18,"value":422}," have been created, allocated, or retrieved from ",{"type":13,"tag":34,"props":424,"children":426},{"className":425},[],[427],{"type":18,"value":75},{"type":13,"tag":429,"props":430,"children":431},"style",{},[432],{"type":18,"value":433},"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":63,"depth":63,"links":435},[],"markdown",1729612513301]