[{"data":1,"prerenderedAt":726},["ShallowReactive",2],{"akyYCOeQKh":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":725,"_id":4},"VkExportMemoryWin32HandleInfoKHR","Structure specifying additional attributes of Windows handles exported from a memory","VK_KHR_external_memory_win32","structs",[],{"type":10,"children":11,"toc":722},"root",[12,52,332,422,442,522,527,539,551,608,677,716],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26,28,35,37,43,45,50],{"type":18,"value":19},"text","To specify additional attributes of NT handles exported from a memory\nobject, add a ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkExportMemoryWin32HandleInfoKHR",[25],{"type":18,"value":4},{"type":18,"value":27}," structure to the\n",{"type":13,"tag":29,"props":30,"children":32},"code",{"className":31},[],[33],{"type":18,"value":34},"pNext",{"type":18,"value":36}," chain of the ",{"type":13,"tag":21,"props":38,"children":40},{"href":39},"/man/VkMemoryAllocateInfo",[41],{"type":18,"value":42},"VkMemoryAllocateInfo",{"type":18,"value":44}," structure.\nThe ",{"type":13,"tag":29,"props":46,"children":48},{"className":47},[],[49],{"type":18,"value":4},{"type":18,"value":51}," structure is defined as:",{"type":13,"tag":53,"props":54,"children":55},"code-group",{},[56,169],{"type":13,"tag":57,"props":58,"children":64},"pre",{"className":59,"code":60,"filename":61,"language":62,"meta":63,"style":63},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkExportMemoryWin32HandleInfoKHR {\n VkStructureType sType;\n const void* pNext;\n const SECURITY_ATTRIBUTES* pAttributes;\n DWORD dwAccess;\n LPCWSTR name;\n} VkExportMemoryWin32HandleInfoKHR;\n","C","c","",[65],{"type":13,"tag":29,"props":66,"children":67},{"__ignoreMap":63},[68,91,100,119,142,151,160],{"type":13,"tag":69,"props":70,"children":73},"span",{"class":71,"line":72},"line",1,[74,80,85],{"type":13,"tag":69,"props":75,"children":77},{"style":76},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[78],{"type":18,"value":79},"typedef",{"type":13,"tag":69,"props":81,"children":82},{"style":76},[83],{"type":18,"value":84}," struct",{"type":13,"tag":69,"props":86,"children":88},{"style":87},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[89],{"type":18,"value":90}," VkExportMemoryWin32HandleInfoKHR {\n",{"type":13,"tag":69,"props":92,"children":94},{"class":71,"line":93},2,[95],{"type":13,"tag":69,"props":96,"children":97},{"style":87},[98],{"type":18,"value":99}," VkStructureType sType;\n",{"type":13,"tag":69,"props":101,"children":103},{"class":71,"line":102},3,[104,109,114],{"type":13,"tag":69,"props":105,"children":106},{"style":76},[107],{"type":18,"value":108}," const",{"type":13,"tag":69,"props":110,"children":111},{"style":76},[112],{"type":18,"value":113}," void*",{"type":13,"tag":69,"props":115,"children":116},{"style":87},[117],{"type":18,"value":118}," pNext;\n",{"type":13,"tag":69,"props":120,"children":122},{"class":71,"line":121},4,[123,127,132,137],{"type":13,"tag":69,"props":124,"children":125},{"style":76},[126],{"type":18,"value":108},{"type":13,"tag":69,"props":128,"children":129},{"style":87},[130],{"type":18,"value":131}," SECURITY_ATTRIBUTES",{"type":13,"tag":69,"props":133,"children":134},{"style":76},[135],{"type":18,"value":136},"*",{"type":13,"tag":69,"props":138,"children":139},{"style":87},[140],{"type":18,"value":141}," pAttributes;\n",{"type":13,"tag":69,"props":143,"children":145},{"class":71,"line":144},5,[146],{"type":13,"tag":69,"props":147,"children":148},{"style":87},[149],{"type":18,"value":150}," DWORD dwAccess;\n",{"type":13,"tag":69,"props":152,"children":154},{"class":71,"line":153},6,[155],{"type":13,"tag":69,"props":156,"children":157},{"style":87},[158],{"type":18,"value":159}," LPCWSTR name;\n",{"type":13,"tag":69,"props":161,"children":163},{"class":71,"line":162},7,[164],{"type":13,"tag":69,"props":165,"children":166},{"style":87},[167],{"type":18,"value":168},"} VkExportMemoryWin32HandleInfoKHR;\n",{"type":13,"tag":57,"props":170,"children":175},{"className":171,"code":172,"filename":173,"language":174,"meta":63,"style":63},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ExportMemoryWin32HandleInfoKHR {\n s_type: vk::StructureType,\n p_next: *const c_void,\n p_attributes: *const SECURITY_ATTRIBUTES,\n dw_access: DWORD,\n name: LPCWSTR,\n}\n","Rust","rs",[176],{"type":13,"tag":29,"props":177,"children":178},{"__ignoreMap":63},[179,202,235,257,282,303,324],{"type":13,"tag":69,"props":180,"children":181},{"class":71,"line":72},[182,187,191,197],{"type":13,"tag":69,"props":183,"children":184},{"style":76},[185],{"type":18,"value":186},"pub",{"type":13,"tag":69,"props":188,"children":189},{"style":76},[190],{"type":18,"value":84},{"type":13,"tag":69,"props":192,"children":194},{"style":193},"--shiki-default:#953800;--shiki-dark:#FFA657",[195],{"type":18,"value":196}," ExportMemoryWin32HandleInfoKHR",{"type":13,"tag":69,"props":198,"children":199},{"style":87},[200],{"type":18,"value":201}," {\n",{"type":13,"tag":69,"props":203,"children":204},{"class":71,"line":93},[205,210,215,220,225,230],{"type":13,"tag":69,"props":206,"children":207},{"style":87},[208],{"type":18,"value":209}," s_type",{"type":13,"tag":69,"props":211,"children":212},{"style":76},[213],{"type":18,"value":214},":",{"type":13,"tag":69,"props":216,"children":217},{"style":193},[218],{"type":18,"value":219}," vk",{"type":13,"tag":69,"props":221,"children":222},{"style":76},[223],{"type":18,"value":224},"::",{"type":13,"tag":69,"props":226,"children":227},{"style":193},[228],{"type":18,"value":229},"StructureType",{"type":13,"tag":69,"props":231,"children":232},{"style":87},[233],{"type":18,"value":234},",\n",{"type":13,"tag":69,"props":236,"children":237},{"class":71,"line":102},[238,243,247,252],{"type":13,"tag":69,"props":239,"children":240},{"style":87},[241],{"type":18,"value":242}," p_next",{"type":13,"tag":69,"props":244,"children":245},{"style":76},[246],{"type":18,"value":214},{"type":13,"tag":69,"props":248,"children":249},{"style":76},[250],{"type":18,"value":251}," *const",{"type":13,"tag":69,"props":253,"children":254},{"style":87},[255],{"type":18,"value":256}," c_void,\n",{"type":13,"tag":69,"props":258,"children":259},{"class":71,"line":121},[260,265,269,273,278],{"type":13,"tag":69,"props":261,"children":262},{"style":87},[263],{"type":18,"value":264}," p_attributes",{"type":13,"tag":69,"props":266,"children":267},{"style":76},[268],{"type":18,"value":214},{"type":13,"tag":69,"props":270,"children":271},{"style":76},[272],{"type":18,"value":251},{"type":13,"tag":69,"props":274,"children":276},{"style":275},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[277],{"type":18,"value":131},{"type":13,"tag":69,"props":279,"children":280},{"style":87},[281],{"type":18,"value":234},{"type":13,"tag":69,"props":283,"children":284},{"class":71,"line":144},[285,290,294,299],{"type":13,"tag":69,"props":286,"children":287},{"style":87},[288],{"type":18,"value":289}," dw_access",{"type":13,"tag":69,"props":291,"children":292},{"style":76},[293],{"type":18,"value":214},{"type":13,"tag":69,"props":295,"children":296},{"style":275},[297],{"type":18,"value":298}," DWORD",{"type":13,"tag":69,"props":300,"children":301},{"style":87},[302],{"type":18,"value":234},{"type":13,"tag":69,"props":304,"children":305},{"class":71,"line":153},[306,311,315,320],{"type":13,"tag":69,"props":307,"children":308},{"style":87},[309],{"type":18,"value":310}," name",{"type":13,"tag":69,"props":312,"children":313},{"style":76},[314],{"type":18,"value":214},{"type":13,"tag":69,"props":316,"children":317},{"style":275},[318],{"type":18,"value":319}," LPCWSTR",{"type":13,"tag":69,"props":321,"children":322},{"style":87},[323],{"type":18,"value":234},{"type":13,"tag":69,"props":325,"children":326},{"class":71,"line":162},[327],{"type":13,"tag":69,"props":328,"children":329},{"style":87},[330],{"type":18,"value":331},"}\n",{"type":13,"tag":333,"props":334,"children":335},"ul",{},[336,356,374,393,411],{"type":13,"tag":337,"props":338,"children":339},"li",{},[340,346,348,354],{"type":13,"tag":29,"props":341,"children":343},{"className":342},[],[344],{"type":18,"value":345},"sType",{"type":18,"value":347}," is a ",{"type":13,"tag":21,"props":349,"children":351},{"href":350},"/man/VkStructureType",[352],{"type":18,"value":353},"VkStructureType",{"type":18,"value":355}," value identifying this structure.",{"type":13,"tag":337,"props":357,"children":358},{},[359,364,366,372],{"type":13,"tag":29,"props":360,"children":362},{"className":361},[],[363],{"type":18,"value":34},{"type":18,"value":365}," is ",{"type":13,"tag":29,"props":367,"children":369},{"className":368},[],[370],{"type":18,"value":371},"NULL",{"type":18,"value":373}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":337,"props":375,"children":376},{},[377,383,385,391],{"type":13,"tag":29,"props":378,"children":380},{"className":379},[],[381],{"type":18,"value":382},"pAttributes",{"type":18,"value":384}," is a pointer to a Windows ",{"type":13,"tag":29,"props":386,"children":388},{"className":387},[],[389],{"type":18,"value":390},"SECURITY_ATTRIBUTES",{"type":18,"value":392},"\nstructure specifying security attributes of the handle.",{"type":13,"tag":337,"props":394,"children":395},{},[396,402,403,409],{"type":13,"tag":29,"props":397,"children":399},{"className":398},[],[400],{"type":18,"value":401},"dwAccess",{"type":18,"value":347},{"type":13,"tag":29,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":408},"DWORD",{"type":18,"value":410}," specifying access rights of the handle.",{"type":13,"tag":337,"props":412,"children":413},{},[414,420],{"type":13,"tag":29,"props":415,"children":417},{"className":416},[],[418],{"type":18,"value":419},"name",{"type":18,"value":421}," is a null-terminated UTF-16 string to associate with the\npayload referenced by NT handles exported from the created memory.",{"type":13,"tag":14,"props":423,"children":424},{},[425,427,433,435,440],{"type":18,"value":426},"If ",{"type":13,"tag":21,"props":428,"children":430},{"href":429},"/man/VkExportMemoryAllocateInfo",[431],{"type":18,"value":432},"VkExportMemoryAllocateInfo",{"type":18,"value":434}," is not included in the same ",{"type":13,"tag":29,"props":436,"children":438},{"className":437},[],[439],{"type":18,"value":34},{"type":18,"value":441},"\nchain, this structure is ignored.",{"type":13,"tag":14,"props":443,"children":444},{},[445,446,450,452,457,459,463,465,471,473,478,480,485,487,492,494,499,501,507,520],{"type":18,"value":426},{"type":13,"tag":21,"props":447,"children":448},{"href":429},[449],{"type":18,"value":432},{"type":18,"value":451}," is included in the ",{"type":13,"tag":29,"props":453,"children":455},{"className":454},[],[456],{"type":18,"value":34},{"type":18,"value":458}," chain of\n",{"type":13,"tag":21,"props":460,"children":461},{"href":39},[462],{"type":18,"value":42},{"type":18,"value":464}," with a Windows ",{"type":13,"tag":29,"props":466,"children":468},{"className":467},[],[469],{"type":18,"value":470},"handleType",{"type":18,"value":472},", but either\n",{"type":13,"tag":29,"props":474,"children":476},{"className":475},[],[477],{"type":18,"value":4},{"type":18,"value":479}," is not included in the ",{"type":13,"tag":29,"props":481,"children":483},{"className":482},[],[484],{"type":18,"value":34},{"type":18,"value":486},"\nchain, or it is included but ",{"type":13,"tag":29,"props":488,"children":490},{"className":489},[],[491],{"type":18,"value":382},{"type":18,"value":493}," is set to ",{"type":13,"tag":29,"props":495,"children":497},{"className":496},[],[498],{"type":18,"value":371},{"type":18,"value":500},", default\nsecurity descriptor values will be used, and child processes created by the\napplication will not inherit the handle, as described in the MSDN\ndocumentation for ",{"type":13,"tag":29,"props":502,"children":504},{"className":503},[],[505],{"type":18,"value":506},"Synchronization Object Security and Access Rights",{"type":13,"tag":508,"props":509,"children":510},"sup",{},[511],{"type":13,"tag":21,"props":512,"children":517},{"href":513,"ariaDescribedBy":514,"dataFootnoteRef":63,"id":516},"#user-content-fn-1",[515],"footnote-label","user-content-fnref-1",[518],{"type":18,"value":519},"1",{"type":18,"value":521},".\nFurther, if the structure is not present, the access rights used depend on\nthe handle type.",{"type":13,"tag":14,"props":523,"children":524},{},[525],{"type":18,"value":526},"For handles of the following types:",{"type":13,"tag":333,"props":528,"children":529},{},[530],{"type":13,"tag":337,"props":531,"children":532},{},[533],{"type":13,"tag":29,"props":534,"children":536},{"className":535},[],[537],{"type":18,"value":538},"VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT",{"type":13,"tag":14,"props":540,"children":541},{},[542,544,549],{"type":18,"value":543},"The implementation ",{"type":13,"tag":545,"props":546,"children":548},"normative",{"type":547},"must",[],{"type":18,"value":550}," ensure the access rights allow read and write\naccess to the memory.",{"type":13,"tag":552,"props":553,"children":555},"validity-group",{"name":554},"Valid Usage",[556],{"type":13,"tag":557,"props":558,"children":560},"validity-field",{"name":559},"VUID-VkExportMemoryWin32HandleInfoKHR-handleTypes-00657",[561],{"type":13,"tag":14,"props":562,"children":563},{},[564,565,569,570,576,578,583,585,590,592,595,597,602,604],{"type":18,"value":426},{"type":13,"tag":21,"props":566,"children":567},{"href":429},[568],{"type":18,"value":432},{"type":18,"value":224},{"type":13,"tag":29,"props":571,"children":573},{"className":572},[],[574],{"type":18,"value":575},"handleTypes",{"type":18,"value":577}," does not include\n",{"type":13,"tag":29,"props":579,"children":581},{"className":580},[],[582],{"type":18,"value":538},{"type":18,"value":584},", a\n",{"type":13,"tag":29,"props":586,"children":588},{"className":587},[],[589],{"type":18,"value":4},{"type":18,"value":591}," structure ",{"type":13,"tag":545,"props":593,"children":594},{"type":547},[],{"type":18,"value":596}," not be included\nin the ",{"type":13,"tag":29,"props":598,"children":600},{"className":599},[],[601],{"type":18,"value":34},{"type":18,"value":603}," chain of ",{"type":13,"tag":21,"props":605,"children":606},{"href":39},[607],{"type":18,"value":42},{"type":13,"tag":552,"props":609,"children":611},{"name":610},"Valid Usage (Implicit)",[612,637],{"type":13,"tag":557,"props":613,"children":615},{"name":614},"VUID-VkExportMemoryWin32HandleInfoKHR-sType-sType",[616],{"type":13,"tag":14,"props":617,"children":618},{},[619,624,626,629,631],{"type":13,"tag":29,"props":620,"children":622},{"className":621},[],[623],{"type":18,"value":345},{"type":18,"value":625}," ",{"type":13,"tag":545,"props":627,"children":628},{"type":547},[],{"type":18,"value":630}," be ",{"type":13,"tag":29,"props":632,"children":634},{"className":633},[],[635],{"type":18,"value":636},"VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR",{"type":13,"tag":557,"props":638,"children":640},{"name":639},"VUID-VkExportMemoryWin32HandleInfoKHR-pAttributes-parameter",[641],{"type":13,"tag":14,"props":642,"children":643},{},[644,645,650,652,657,659,664,665,668,670,675],{"type":18,"value":426},{"type":13,"tag":29,"props":646,"children":648},{"className":647},[],[649],{"type":18,"value":382},{"type":18,"value":651}," is not ",{"type":13,"tag":29,"props":653,"children":655},{"className":654},[],[656],{"type":18,"value":371},{"type":18,"value":658},", ",{"type":13,"tag":29,"props":660,"children":662},{"className":661},[],[663],{"type":18,"value":382},{"type":18,"value":625},{"type":13,"tag":545,"props":666,"children":667},{"type":547},[],{"type":18,"value":669}," be a valid pointer to a valid ",{"type":13,"tag":29,"props":671,"children":673},{"className":672},[],[674],{"type":18,"value":390},{"type":18,"value":676}," value",{"type":13,"tag":678,"props":679,"children":682},"section",{"className":680,"dataFootnotes":63},[681],"footnotes",[683,691],{"type":13,"tag":684,"props":685,"children":688},"h2",{"className":686,"id":515},[687],"sr-only",[689],{"type":18,"value":690},"Footnotes",{"type":13,"tag":692,"props":693,"children":694},"ol",{},[695],{"type":13,"tag":337,"props":696,"children":698},{"id":697},"user-content-fn-1",[699,706,707],{"type":13,"tag":21,"props":700,"children":704},{"href":701,"rel":702},"https://docs.microsoft.com/en-us/windows/win32/sync/synchronization-object-security-and-access-rights",[703],"nofollow",[705],{"type":18,"value":701},{"type":18,"value":625},{"type":13,"tag":21,"props":708,"children":713},{"href":709,"ariaLabel":710,"className":711,"dataFootnoteBackref":63},"#user-content-fnref-1","Back to reference 1",[712],"data-footnote-backref",[714],{"type":18,"value":715},"↩",{"type":13,"tag":717,"props":718,"children":719},"style",{},[720],{"type":18,"value":721},"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":63,"searchDepth":93,"depth":93,"links":723},[724],{"id":515,"depth":93,"text":690},"markdown",1725732551449]