[{"data":1,"prerenderedAt":654},["ShallowReactive",2],{"nXdCpVejPB":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":653,"_id":4},"vkGetMemoryHostPointerPropertiesEXT","Get properties of external memory host pointer","VK_EXT_external_memory_host","protos",[],{"type":10,"children":11,"toc":651},"root",[12,20,337,414,550,645],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To determine the correct parameters to use when importing host pointers,\ncall:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,145],{"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 vkGetMemoryHostPointerPropertiesEXT(\n VkDevice device,\n VkExternalMemoryHandleTypeFlagBits handleType,\n const void* pHostPointer,\n VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,97,121],{"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,88,93],{"type":13,"tag":38,"props":84,"children":85},{"style":45},[86],{"type":18,"value":87}," VkExternalMemoryHandleTypeFlagBits ",{"type":13,"tag":38,"props":89,"children":90},{"style":70},[91],{"type":18,"value":92},"handleType",{"type":13,"tag":38,"props":94,"children":95},{"style":45},[96],{"type":18,"value":78},{"type":13,"tag":38,"props":98,"children":100},{"class":40,"line":99},4,[101,107,112,117],{"type":13,"tag":38,"props":102,"children":104},{"style":103},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[105],{"type":18,"value":106}," const",{"type":13,"tag":38,"props":108,"children":109},{"style":103},[110],{"type":18,"value":111}," void*",{"type":13,"tag":38,"props":113,"children":114},{"style":70},[115],{"type":18,"value":116}," pHostPointer",{"type":13,"tag":38,"props":118,"children":119},{"style":45},[120],{"type":18,"value":78},{"type":13,"tag":38,"props":122,"children":124},{"class":40,"line":123},5,[125,130,135,140],{"type":13,"tag":38,"props":126,"children":127},{"style":45},[128],{"type":18,"value":129}," VkMemoryHostPointerPropertiesEXT",{"type":13,"tag":38,"props":131,"children":132},{"style":103},[133],{"type":18,"value":134},"*",{"type":13,"tag":38,"props":136,"children":137},{"style":70},[138],{"type":18,"value":139}," pMemoryHostPointerProperties",{"type":13,"tag":38,"props":141,"children":142},{"style":45},[143],{"type":18,"value":144},");\n",{"type":13,"tag":25,"props":146,"children":151},{"className":147,"code":148,"filename":149,"language":150,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_memory_host_pointer_properties_ext(\n device: crate :: vk :: vk::Device,\n handle_type: ExternalMemoryHandleTypeFlags,\n p_host_pointer: *const c_void,\n p_memory_host_pointer_properties: *mut vk::MemoryHostPointerPropertiesEXT,\n) -> vk::Result;\n","Rust","rs",[152],{"type":13,"tag":34,"props":153,"children":154},{"__ignoreMap":31},[155,177,228,249,271,305],{"type":13,"tag":38,"props":156,"children":157},{"class":40,"line":41},[158,163,168,173],{"type":13,"tag":38,"props":159,"children":160},{"style":103},[161],{"type":18,"value":162},"pub",{"type":13,"tag":38,"props":164,"children":165},{"style":103},[166],{"type":18,"value":167}," fn",{"type":13,"tag":38,"props":169,"children":170},{"style":51},[171],{"type":18,"value":172}," get_memory_host_pointer_properties_ext",{"type":13,"tag":38,"props":174,"children":175},{"style":45},[176],{"type":18,"value":58},{"type":13,"tag":38,"props":178,"children":179},{"class":40,"line":61},[180,185,190,195,200,205,210,215,219,224],{"type":13,"tag":38,"props":181,"children":182},{"style":45},[183],{"type":18,"value":184}," device",{"type":13,"tag":38,"props":186,"children":187},{"style":103},[188],{"type":18,"value":189},":",{"type":13,"tag":38,"props":191,"children":192},{"style":103},[193],{"type":18,"value":194}," crate",{"type":13,"tag":38,"props":196,"children":197},{"style":103},[198],{"type":18,"value":199}," ::",{"type":13,"tag":38,"props":201,"children":202},{"style":45},[203],{"type":18,"value":204}," vk ",{"type":13,"tag":38,"props":206,"children":207},{"style":103},[208],{"type":18,"value":209},"::",{"type":13,"tag":38,"props":211,"children":212},{"style":70},[213],{"type":18,"value":214}," vk",{"type":13,"tag":38,"props":216,"children":217},{"style":103},[218],{"type":18,"value":209},{"type":13,"tag":38,"props":220,"children":221},{"style":70},[222],{"type":18,"value":223},"Device",{"type":13,"tag":38,"props":225,"children":226},{"style":45},[227],{"type":18,"value":78},{"type":13,"tag":38,"props":229,"children":230},{"class":40,"line":81},[231,236,240,245],{"type":13,"tag":38,"props":232,"children":233},{"style":45},[234],{"type":18,"value":235}," handle_type",{"type":13,"tag":38,"props":237,"children":238},{"style":103},[239],{"type":18,"value":189},{"type":13,"tag":38,"props":241,"children":242},{"style":70},[243],{"type":18,"value":244}," ExternalMemoryHandleTypeFlags",{"type":13,"tag":38,"props":246,"children":247},{"style":45},[248],{"type":18,"value":78},{"type":13,"tag":38,"props":250,"children":251},{"class":40,"line":99},[252,257,261,266],{"type":13,"tag":38,"props":253,"children":254},{"style":45},[255],{"type":18,"value":256}," p_host_pointer",{"type":13,"tag":38,"props":258,"children":259},{"style":103},[260],{"type":18,"value":189},{"type":13,"tag":38,"props":262,"children":263},{"style":103},[264],{"type":18,"value":265}," *const",{"type":13,"tag":38,"props":267,"children":268},{"style":45},[269],{"type":18,"value":270}," c_void,\n",{"type":13,"tag":38,"props":272,"children":273},{"class":40,"line":123},[274,279,283,288,292,296,301],{"type":13,"tag":38,"props":275,"children":276},{"style":45},[277],{"type":18,"value":278}," p_memory_host_pointer_properties",{"type":13,"tag":38,"props":280,"children":281},{"style":103},[282],{"type":18,"value":189},{"type":13,"tag":38,"props":284,"children":285},{"style":103},[286],{"type":18,"value":287}," *mut",{"type":13,"tag":38,"props":289,"children":290},{"style":70},[291],{"type":18,"value":214},{"type":13,"tag":38,"props":293,"children":294},{"style":103},[295],{"type":18,"value":209},{"type":13,"tag":38,"props":297,"children":298},{"style":70},[299],{"type":18,"value":300},"MemoryHostPointerPropertiesEXT",{"type":13,"tag":38,"props":302,"children":303},{"style":45},[304],{"type":18,"value":78},{"type":13,"tag":38,"props":306,"children":308},{"class":40,"line":307},6,[309,314,319,323,327,332],{"type":13,"tag":38,"props":310,"children":311},{"style":45},[312],{"type":18,"value":313},") ",{"type":13,"tag":38,"props":315,"children":316},{"style":103},[317],{"type":18,"value":318},"->",{"type":13,"tag":38,"props":320,"children":321},{"style":70},[322],{"type":18,"value":214},{"type":13,"tag":38,"props":324,"children":325},{"style":103},[326],{"type":18,"value":209},{"type":13,"tag":38,"props":328,"children":329},{"style":70},[330],{"type":18,"value":331},"Result",{"type":13,"tag":38,"props":333,"children":334},{"style":45},[335],{"type":18,"value":336},";\n",{"type":13,"tag":338,"props":339,"children":340},"ul",{},[341,360,385,395],{"type":13,"tag":342,"props":343,"children":344},"li",{},[345,350,352,358],{"type":13,"tag":34,"props":346,"children":348},{"className":347},[],[349],{"type":18,"value":73},{"type":18,"value":351}," is the logical device that will be importing\n",{"type":13,"tag":34,"props":353,"children":355},{"className":354},[],[356],{"type":18,"value":357},"pHostPointer",{"type":18,"value":359},".",{"type":13,"tag":342,"props":361,"children":362},{},[363,368,370,377,379,384],{"type":13,"tag":34,"props":364,"children":366},{"className":365},[],[367],{"type":18,"value":92},{"type":18,"value":369}," is a ",{"type":13,"tag":371,"props":372,"children":374},"a",{"href":373},"/man/VkExternalMemoryHandleTypeFlagBits",[375],{"type":18,"value":376},"VkExternalMemoryHandleTypeFlagBits",{"type":18,"value":378}," value\nspecifying the type of the handle ",{"type":13,"tag":34,"props":380,"children":382},{"className":381},[],[383],{"type":18,"value":357},{"type":18,"value":359},{"type":13,"tag":342,"props":386,"children":387},{},[388,393],{"type":13,"tag":34,"props":389,"children":391},{"className":390},[],[392],{"type":18,"value":357},{"type":18,"value":394}," is the host pointer to import from.",{"type":13,"tag":342,"props":396,"children":397},{},[398,404,406,412],{"type":13,"tag":34,"props":399,"children":401},{"className":400},[],[402],{"type":18,"value":403},"pMemoryHostPointerProperties",{"type":18,"value":405}," is a pointer to a\n",{"type":13,"tag":371,"props":407,"children":409},{"href":408},"/man/VkMemoryHostPointerPropertiesEXT",[410],{"type":18,"value":411},"VkMemoryHostPointerPropertiesEXT",{"type":18,"value":413}," structure in which the host\npointer properties are returned.",{"type":13,"tag":415,"props":416,"children":418},"validity-group",{"name":417},"Valid Usage",[419,455,486,519],{"type":13,"tag":420,"props":421,"children":423},"validity-field",{"name":422},"VUID-vkGetMemoryHostPointerPropertiesEXT-handleType-01752",[424],{"type":13,"tag":14,"props":425,"children":426},{},[427,432,434,439,441,447,449],{"type":13,"tag":34,"props":428,"children":430},{"className":429},[],[431],{"type":18,"value":92},{"type":18,"value":433}," ",{"type":13,"tag":435,"props":436,"children":438},"normative",{"type":437},"must",[],{"type":18,"value":440}," be\n",{"type":13,"tag":34,"props":442,"children":444},{"className":443},[],[445],{"type":18,"value":446},"VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT",{"type":18,"value":448}," or\n",{"type":13,"tag":34,"props":450,"children":452},{"className":451},[],[453],{"type":18,"value":454},"VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT",{"type":13,"tag":420,"props":456,"children":458},{"name":457},"VUID-vkGetMemoryHostPointerPropertiesEXT-pHostPointer-01753",[459],{"type":13,"tag":14,"props":460,"children":461},{},[462,467,468,471,473,479,480],{"type":13,"tag":34,"props":463,"children":465},{"className":464},[],[466],{"type":18,"value":357},{"type":18,"value":433},{"type":13,"tag":435,"props":469,"children":470},{"type":437},[],{"type":18,"value":472}," be a pointer aligned to an integer multiple of\n",{"type":13,"tag":34,"props":474,"children":476},{"className":475},[],[477],{"type":18,"value":478},"VkPhysicalDeviceExternalMemoryHostPropertiesEXT",{"type":18,"value":209},{"type":13,"tag":34,"props":481,"children":483},{"className":482},[],[484],{"type":18,"value":485},"minImportedHostPointerAlignment",{"type":13,"tag":420,"props":487,"children":489},{"name":488},"VUID-vkGetMemoryHostPointerPropertiesEXT-handleType-01754",[490],{"type":13,"tag":14,"props":491,"children":492},{},[493,495,500,502,507,508,513,514,517],{"type":18,"value":494},"If ",{"type":13,"tag":34,"props":496,"children":498},{"className":497},[],[499],{"type":18,"value":92},{"type":18,"value":501}," is\n",{"type":13,"tag":34,"props":503,"children":505},{"className":504},[],[506],{"type":18,"value":446},{"type":18,"value":78},{"type":13,"tag":34,"props":509,"children":511},{"className":510},[],[512],{"type":18,"value":357},{"type":18,"value":433},{"type":13,"tag":435,"props":515,"children":516},{"type":437},[],{"type":18,"value":518}," be a pointer to host memory",{"type":13,"tag":420,"props":520,"children":522},{"name":521},"VUID-vkGetMemoryHostPointerPropertiesEXT-handleType-01755",[523],{"type":13,"tag":14,"props":524,"children":525},{},[526,527,532,533,538,539,544,545,548],{"type":18,"value":494},{"type":13,"tag":34,"props":528,"children":530},{"className":529},[],[531],{"type":18,"value":92},{"type":18,"value":501},{"type":13,"tag":34,"props":534,"children":536},{"className":535},[],[537],{"type":18,"value":454},{"type":18,"value":78},{"type":13,"tag":34,"props":540,"children":542},{"className":541},[],[543],{"type":18,"value":357},{"type":18,"value":433},{"type":13,"tag":435,"props":546,"children":547},{"type":437},[],{"type":18,"value":549}," be a pointer to host mapped foreign memory",{"type":13,"tag":415,"props":551,"children":553},{"name":552},"Valid Usage (Implicit)",[554,580,603,621],{"type":13,"tag":420,"props":555,"children":557},{"name":556},"VUID-vkGetMemoryHostPointerPropertiesEXT-device-parameter",[558],{"type":13,"tag":14,"props":559,"children":560},{},[561,566,567,570,572,578],{"type":13,"tag":34,"props":562,"children":564},{"className":563},[],[565],{"type":18,"value":73},{"type":18,"value":433},{"type":13,"tag":435,"props":568,"children":569},{"type":437},[],{"type":18,"value":571}," be a valid ",{"type":13,"tag":371,"props":573,"children":575},{"href":574},"/man/VkDevice",[576],{"type":18,"value":577},"VkDevice",{"type":18,"value":579}," handle",{"type":13,"tag":420,"props":581,"children":583},{"name":582},"VUID-vkGetMemoryHostPointerPropertiesEXT-handleType-parameter",[584],{"type":13,"tag":14,"props":585,"children":586},{},[587,592,593,596,597,601],{"type":13,"tag":34,"props":588,"children":590},{"className":589},[],[591],{"type":18,"value":92},{"type":18,"value":433},{"type":13,"tag":435,"props":594,"children":595},{"type":437},[],{"type":18,"value":571},{"type":13,"tag":371,"props":598,"children":599},{"href":373},[600],{"type":18,"value":376},{"type":18,"value":602}," value",{"type":13,"tag":420,"props":604,"children":606},{"name":605},"VUID-vkGetMemoryHostPointerPropertiesEXT-pHostPointer-parameter",[607],{"type":13,"tag":14,"props":608,"children":609},{},[610,615,616,619],{"type":13,"tag":34,"props":611,"children":613},{"className":612},[],[614],{"type":18,"value":357},{"type":18,"value":433},{"type":13,"tag":435,"props":617,"children":618},{"type":437},[],{"type":18,"value":620}," be a pointer value",{"type":13,"tag":420,"props":622,"children":624},{"name":623},"VUID-vkGetMemoryHostPointerPropertiesEXT-pMemoryHostPointerProperties-parameter",[625],{"type":13,"tag":14,"props":626,"children":627},{},[628,633,634,637,639,643],{"type":13,"tag":34,"props":629,"children":631},{"className":630},[],[632],{"type":18,"value":403},{"type":18,"value":433},{"type":13,"tag":435,"props":635,"children":636},{"type":437},[],{"type":18,"value":638}," be a valid pointer to a ",{"type":13,"tag":371,"props":640,"children":641},{"href":408},[642],{"type":18,"value":411},{"type":18,"value":644}," structure",{"type":13,"tag":646,"props":647,"children":648},"style",{},[649],{"type":18,"value":650},"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":652},[],"markdown",1729612516069]