[{"data":1,"prerenderedAt":541},["ShallowReactive",2],{"PRKe31x9d4":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":540,"_id":4},"vkGetImageMemoryRequirements","Returns the memory requirements for specified Vulkan object","VK_VERSION_1_0","protos",[],{"type":10,"children":11,"toc":538},"root",[12,29,285,330,431,532],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27],{"type":18,"value":19},"text","To determine the memory requirements for an image resource which is not\ncreated with the ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":26},"VK_IMAGE_CREATE_DISJOINT_BIT",{"type":18,"value":28}," flag set, call:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,131],{"type":13,"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 vkGetImageMemoryRequirements(\n VkDevice device,\n VkImage image,\n VkMemoryRequirements* pMemoryRequirements);\n","C","c","",[42],{"type":13,"tag":21,"props":43,"children":44},{"__ignoreMap":40},[45,69,89,107],{"type":13,"tag":46,"props":47,"children":50},"span",{"class":48,"line":49},"line",1,[51,57,63],{"type":13,"tag":46,"props":52,"children":54},{"style":53},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[55],{"type":18,"value":56},"void",{"type":13,"tag":46,"props":58,"children":60},{"style":59},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[61],{"type":18,"value":62}," vkGetImageMemoryRequirements",{"type":13,"tag":46,"props":64,"children":66},{"style":65},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[67],{"type":18,"value":68},"(\n",{"type":13,"tag":46,"props":70,"children":72},{"class":48,"line":71},2,[73,78,84],{"type":13,"tag":46,"props":74,"children":75},{"style":65},[76],{"type":18,"value":77}," VkDevice ",{"type":13,"tag":46,"props":79,"children":81},{"style":80},"--shiki-default:#953800;--shiki-dark:#FFA657",[82],{"type":18,"value":83},"device",{"type":13,"tag":46,"props":85,"children":86},{"style":65},[87],{"type":18,"value":88},",\n",{"type":13,"tag":46,"props":90,"children":92},{"class":48,"line":91},3,[93,98,103],{"type":13,"tag":46,"props":94,"children":95},{"style":65},[96],{"type":18,"value":97}," VkImage ",{"type":13,"tag":46,"props":99,"children":100},{"style":80},[101],{"type":18,"value":102},"image",{"type":13,"tag":46,"props":104,"children":105},{"style":65},[106],{"type":18,"value":88},{"type":13,"tag":46,"props":108,"children":110},{"class":48,"line":109},4,[111,116,121,126],{"type":13,"tag":46,"props":112,"children":113},{"style":65},[114],{"type":18,"value":115}," VkMemoryRequirements",{"type":13,"tag":46,"props":117,"children":118},{"style":53},[119],{"type":18,"value":120},"*",{"type":13,"tag":46,"props":122,"children":123},{"style":80},[124],{"type":18,"value":125}," pMemoryRequirements",{"type":13,"tag":46,"props":127,"children":128},{"style":65},[129],{"type":18,"value":130},");\n",{"type":13,"tag":34,"props":132,"children":137},{"className":133,"code":134,"filename":135,"language":136,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_image_memory_requirements(\n device: crate :: vk :: vk::Device,\n image: vk::Image,\n p_memory_requirements: *mut vk::MemoryRequirements,\n);\n","Rust","rs",[138],{"type":13,"tag":21,"props":139,"children":140},{"__ignoreMap":40},[141,163,214,243,277],{"type":13,"tag":46,"props":142,"children":143},{"class":48,"line":49},[144,149,154,159],{"type":13,"tag":46,"props":145,"children":146},{"style":53},[147],{"type":18,"value":148},"pub",{"type":13,"tag":46,"props":150,"children":151},{"style":53},[152],{"type":18,"value":153}," fn",{"type":13,"tag":46,"props":155,"children":156},{"style":59},[157],{"type":18,"value":158}," get_image_memory_requirements",{"type":13,"tag":46,"props":160,"children":161},{"style":65},[162],{"type":18,"value":68},{"type":13,"tag":46,"props":164,"children":165},{"class":48,"line":71},[166,171,176,181,186,191,196,201,205,210],{"type":13,"tag":46,"props":167,"children":168},{"style":65},[169],{"type":18,"value":170}," device",{"type":13,"tag":46,"props":172,"children":173},{"style":53},[174],{"type":18,"value":175},":",{"type":13,"tag":46,"props":177,"children":178},{"style":53},[179],{"type":18,"value":180}," crate",{"type":13,"tag":46,"props":182,"children":183},{"style":53},[184],{"type":18,"value":185}," ::",{"type":13,"tag":46,"props":187,"children":188},{"style":65},[189],{"type":18,"value":190}," vk ",{"type":13,"tag":46,"props":192,"children":193},{"style":53},[194],{"type":18,"value":195},"::",{"type":13,"tag":46,"props":197,"children":198},{"style":80},[199],{"type":18,"value":200}," vk",{"type":13,"tag":46,"props":202,"children":203},{"style":53},[204],{"type":18,"value":195},{"type":13,"tag":46,"props":206,"children":207},{"style":80},[208],{"type":18,"value":209},"Device",{"type":13,"tag":46,"props":211,"children":212},{"style":65},[213],{"type":18,"value":88},{"type":13,"tag":46,"props":215,"children":216},{"class":48,"line":91},[217,222,226,230,234,239],{"type":13,"tag":46,"props":218,"children":219},{"style":65},[220],{"type":18,"value":221}," image",{"type":13,"tag":46,"props":223,"children":224},{"style":53},[225],{"type":18,"value":175},{"type":13,"tag":46,"props":227,"children":228},{"style":80},[229],{"type":18,"value":200},{"type":13,"tag":46,"props":231,"children":232},{"style":53},[233],{"type":18,"value":195},{"type":13,"tag":46,"props":235,"children":236},{"style":80},[237],{"type":18,"value":238},"Image",{"type":13,"tag":46,"props":240,"children":241},{"style":65},[242],{"type":18,"value":88},{"type":13,"tag":46,"props":244,"children":245},{"class":48,"line":109},[246,251,255,260,264,268,273],{"type":13,"tag":46,"props":247,"children":248},{"style":65},[249],{"type":18,"value":250}," p_memory_requirements",{"type":13,"tag":46,"props":252,"children":253},{"style":53},[254],{"type":18,"value":175},{"type":13,"tag":46,"props":256,"children":257},{"style":53},[258],{"type":18,"value":259}," *mut",{"type":13,"tag":46,"props":261,"children":262},{"style":80},[263],{"type":18,"value":200},{"type":13,"tag":46,"props":265,"children":266},{"style":53},[267],{"type":18,"value":195},{"type":13,"tag":46,"props":269,"children":270},{"style":80},[271],{"type":18,"value":272},"MemoryRequirements",{"type":13,"tag":46,"props":274,"children":275},{"style":65},[276],{"type":18,"value":88},{"type":13,"tag":46,"props":278,"children":280},{"class":48,"line":279},5,[281],{"type":13,"tag":46,"props":282,"children":283},{"style":65},[284],{"type":18,"value":130},{"type":13,"tag":286,"props":287,"children":288},"ul",{},[289,300,310],{"type":13,"tag":290,"props":291,"children":292},"li",{},[293,298],{"type":13,"tag":21,"props":294,"children":296},{"className":295},[],[297],{"type":18,"value":83},{"type":18,"value":299}," is the logical device that owns the image.",{"type":13,"tag":290,"props":301,"children":302},{},[303,308],{"type":13,"tag":21,"props":304,"children":306},{"className":305},[],[307],{"type":18,"value":102},{"type":18,"value":309}," is the image to query.",{"type":13,"tag":290,"props":311,"children":312},{},[313,319,321,328],{"type":13,"tag":21,"props":314,"children":316},{"className":315},[],[317],{"type":18,"value":318},"pMemoryRequirements",{"type":18,"value":320}," is a pointer to a ",{"type":13,"tag":322,"props":323,"children":325},"a",{"href":324},"/man/VkMemoryRequirements",[326],{"type":18,"value":327},"VkMemoryRequirements",{"type":18,"value":329},"\nstructure in which the memory requirements of the image object are\nreturned.",{"type":13,"tag":331,"props":332,"children":334},"validity-group",{"name":333},"Valid Usage",[335,364,399],{"type":13,"tag":336,"props":337,"children":339},"validity-field",{"name":338},"VUID-vkGetImageMemoryRequirements-image-01588",[340],{"type":13,"tag":14,"props":341,"children":342},{},[343,348,350,355,357,362],{"type":13,"tag":21,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":102},{"type":18,"value":349}," ",{"type":13,"tag":351,"props":352,"children":354},"normative",{"type":353},"must",[],{"type":18,"value":356}," not have been created with the\n",{"type":13,"tag":21,"props":358,"children":360},{"className":359},[],[361],{"type":18,"value":26},{"type":18,"value":363}," flag set",{"type":13,"tag":336,"props":365,"children":367},{"name":366},"VUID-vkGetImageMemoryRequirements-image-04004",[368],{"type":13,"tag":14,"props":369,"children":370},{},[371,373,378,380,386,388,393,394,397],{"type":18,"value":372},"If ",{"type":13,"tag":21,"props":374,"children":376},{"className":375},[],[377],{"type":18,"value":102},{"type":18,"value":379}," was created with the\n",{"type":13,"tag":21,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":385},"VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID",{"type":18,"value":387},"\nexternal memory handle type, then ",{"type":13,"tag":21,"props":389,"children":391},{"className":390},[],[392],{"type":18,"value":102},{"type":18,"value":349},{"type":13,"tag":351,"props":395,"children":396},{"type":353},[],{"type":18,"value":398}," be bound to memory",{"type":13,"tag":336,"props":400,"children":402},{"name":401},"VUID-vkGetImageMemoryRequirements-image-08960",[403],{"type":13,"tag":14,"props":404,"children":405},{},[406,407,412,413,419,421,426,427,430],{"type":18,"value":372},{"type":13,"tag":21,"props":408,"children":410},{"className":409},[],[411],{"type":18,"value":102},{"type":18,"value":379},{"type":13,"tag":21,"props":414,"children":416},{"className":415},[],[417],{"type":18,"value":418},"VK_EXTERNAL_MEMORY_HANDLE_TYPE_SCREEN_BUFFER_BIT_QNX",{"type":18,"value":420}," external\nmemory handle type, then ",{"type":13,"tag":21,"props":422,"children":424},{"className":423},[],[425],{"type":18,"value":102},{"type":18,"value":349},{"type":13,"tag":351,"props":428,"children":429},{"type":353},[],{"type":18,"value":398},{"type":13,"tag":331,"props":432,"children":434},{"name":433},"Valid Usage (Implicit)",[435,461,485,509],{"type":13,"tag":336,"props":436,"children":438},{"name":437},"VUID-vkGetImageMemoryRequirements-device-parameter",[439],{"type":13,"tag":14,"props":440,"children":441},{},[442,447,448,451,453,459],{"type":13,"tag":21,"props":443,"children":445},{"className":444},[],[446],{"type":18,"value":83},{"type":18,"value":349},{"type":13,"tag":351,"props":449,"children":450},{"type":353},[],{"type":18,"value":452}," be a valid ",{"type":13,"tag":322,"props":454,"children":456},{"href":455},"/man/VkDevice",[457],{"type":18,"value":458},"VkDevice",{"type":18,"value":460}," handle",{"type":13,"tag":336,"props":462,"children":464},{"name":463},"VUID-vkGetImageMemoryRequirements-image-parameter",[465],{"type":13,"tag":14,"props":466,"children":467},{},[468,473,474,477,478,484],{"type":13,"tag":21,"props":469,"children":471},{"className":470},[],[472],{"type":18,"value":102},{"type":18,"value":349},{"type":13,"tag":351,"props":475,"children":476},{"type":353},[],{"type":18,"value":452},{"type":13,"tag":322,"props":479,"children":481},{"href":480},"/man/VkImage",[482],{"type":18,"value":483},"VkImage",{"type":18,"value":460},{"type":13,"tag":336,"props":486,"children":488},{"name":487},"VUID-vkGetImageMemoryRequirements-pMemoryRequirements-parameter",[489],{"type":13,"tag":14,"props":490,"children":491},{},[492,497,498,501,503,507],{"type":13,"tag":21,"props":493,"children":495},{"className":494},[],[496],{"type":18,"value":318},{"type":18,"value":349},{"type":13,"tag":351,"props":499,"children":500},{"type":353},[],{"type":18,"value":502}," be a valid pointer to a ",{"type":13,"tag":322,"props":504,"children":505},{"href":324},[506],{"type":18,"value":327},{"type":18,"value":508}," structure",{"type":13,"tag":336,"props":510,"children":512},{"name":511},"VUID-vkGetImageMemoryRequirements-image-parent",[513],{"type":13,"tag":14,"props":514,"children":515},{},[516,521,522,525,527],{"type":13,"tag":21,"props":517,"children":519},{"className":518},[],[520],{"type":18,"value":102},{"type":18,"value":349},{"type":13,"tag":351,"props":523,"children":524},{"type":353},[],{"type":18,"value":526}," have been created, allocated, or retrieved from ",{"type":13,"tag":21,"props":528,"children":530},{"className":529},[],[531],{"type":18,"value":83},{"type":13,"tag":533,"props":534,"children":535},"style",{},[536],{"type":18,"value":537},"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":71,"depth":71,"links":539},[],"markdown",1729612515454]