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