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