[{"data":1,"prerenderedAt":760},["ShallowReactive",2],{"4UoSRvRraq":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":759,"_id":4},"VkExportSemaphoreWin32HandleInfoKHR","Structure specifying additional attributes of Windows handles exported from a semaphore","VK_KHR_external_semaphore_win32","structs",[],{"type":10,"children":11,"toc":756},"root",[12,52,332,422,442,522,527,536,548,552,561,571,580,643,711,750],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26,28,34,36,43,45,50],{"type":18,"value":19},"text","To specify additional attributes of NT handles exported from a semaphore,\nadd a ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure to the ",{"type":13,"tag":21,"props":29,"children":31},{"className":30},[],[32],{"type":18,"value":33},"pNext",{"type":18,"value":35},"\nchain of the ",{"type":13,"tag":37,"props":38,"children":40},"a",{"href":39},"/man/VkSemaphoreCreateInfo",[41],{"type":18,"value":42},"VkSemaphoreCreateInfo",{"type":18,"value":44}," structure.\nThe ",{"type":13,"tag":21,"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 VkExportSemaphoreWin32HandleInfoKHR {\n VkStructureType sType;\n const void* pNext;\n const SECURITY_ATTRIBUTES* pAttributes;\n DWORD dwAccess;\n LPCWSTR name;\n} VkExportSemaphoreWin32HandleInfoKHR;\n","C","c","",[65],{"type":13,"tag":21,"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}," VkExportSemaphoreWin32HandleInfoKHR {\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},"} VkExportSemaphoreWin32HandleInfoKHR;\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 ExportSemaphoreWin32HandleInfoKHR {\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":21,"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}," ExportSemaphoreWin32HandleInfoKHR",{"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":21,"props":341,"children":343},{"className":342},[],[344],{"type":18,"value":345},"sType",{"type":18,"value":347}," is a ",{"type":13,"tag":37,"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":21,"props":360,"children":362},{"className":361},[],[363],{"type":18,"value":33},{"type":18,"value":365}," is ",{"type":13,"tag":21,"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":21,"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":21,"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":21,"props":397,"children":399},{"className":398},[],[400],{"type":18,"value":401},"dwAccess",{"type":18,"value":347},{"type":13,"tag":21,"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":21,"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\nunderlying synchronization primitive referenced by NT handles exported\nfrom the created semaphore.",{"type":13,"tag":14,"props":423,"children":424},{},[425,427,433,435,440],{"type":18,"value":426},"If ",{"type":13,"tag":37,"props":428,"children":430},{"href":429},"/man/VkExportSemaphoreCreateInfo",[431],{"type":18,"value":432},"VkExportSemaphoreCreateInfo",{"type":18,"value":434}," is not included in the same ",{"type":13,"tag":21,"props":436,"children":438},{"className":437},[],[439],{"type":18,"value":33},{"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":37,"props":447,"children":448},{"href":429},[449],{"type":18,"value":432},{"type":18,"value":451}," is included in the ",{"type":13,"tag":21,"props":453,"children":455},{"className":454},[],[456],{"type":18,"value":33},{"type":18,"value":458}," chain of\n",{"type":13,"tag":37,"props":460,"children":461},{"href":39},[462],{"type":18,"value":42},{"type":18,"value":464}," with a Windows ",{"type":13,"tag":21,"props":466,"children":468},{"className":467},[],[469],{"type":18,"value":470},"handleType",{"type":18,"value":472},", but either\n",{"type":13,"tag":21,"props":474,"children":476},{"className":475},[],[477],{"type":18,"value":4},{"type":18,"value":479}," is not included in the ",{"type":13,"tag":21,"props":481,"children":483},{"className":482},[],[484],{"type":18,"value":33},{"type":18,"value":486},"\nchain, or it is included but ",{"type":13,"tag":21,"props":488,"children":490},{"className":489},[],[491],{"type":18,"value":382},{"type":18,"value":493}," is set to ",{"type":13,"tag":21,"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":21,"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":37,"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":14,"props":528,"children":529},{},[530],{"type":13,"tag":21,"props":531,"children":533},{"className":532},[],[534],{"type":18,"value":535},"VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT",{"type":13,"tag":14,"props":537,"children":538},{},[539,541,546],{"type":18,"value":540},"The implementation ",{"type":13,"tag":542,"props":543,"children":545},"normative",{"type":544},"must",[],{"type":18,"value":547}," ensure the access rights allow both signal and wait\noperations on the semaphore.",{"type":13,"tag":14,"props":549,"children":550},{},[551],{"type":18,"value":526},{"type":13,"tag":14,"props":553,"children":554},{},[555],{"type":13,"tag":21,"props":556,"children":558},{"className":557},[],[559],{"type":18,"value":560},"VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT",{"type":13,"tag":14,"props":562,"children":563},{},[564,566,569],{"type":18,"value":565},"The access rights ",{"type":13,"tag":542,"props":567,"children":568},{"type":544},[],{"type":18,"value":570}," be:",{"type":13,"tag":14,"props":572,"children":573},{},[574],{"type":13,"tag":21,"props":575,"children":577},{"className":576},[],[578],{"type":18,"value":579},"GENERIC_ALL",{"type":13,"tag":581,"props":582,"children":584},"validity-group",{"name":583},"Valid Usage",[585],{"type":13,"tag":586,"props":587,"children":589},"validity-field",{"name":588},"VUID-VkExportSemaphoreWin32HandleInfoKHR-handleTypes-01125",[590],{"type":13,"tag":14,"props":591,"children":592},{},[593,594,598,599,605,607,612,614,619,620,625,627,630,632,637,639],{"type":18,"value":426},{"type":13,"tag":37,"props":595,"children":596},{"href":429},[597],{"type":18,"value":432},{"type":18,"value":224},{"type":13,"tag":21,"props":600,"children":602},{"className":601},[],[603],{"type":18,"value":604},"handleTypes",{"type":18,"value":606}," does not include\n",{"type":13,"tag":21,"props":608,"children":610},{"className":609},[],[611],{"type":18,"value":535},{"type":18,"value":613}," or\n",{"type":13,"tag":21,"props":615,"children":617},{"className":616},[],[618],{"type":18,"value":560},{"type":18,"value":234},{"type":13,"tag":21,"props":621,"children":623},{"className":622},[],[624],{"type":18,"value":4},{"type":18,"value":626}," ",{"type":13,"tag":542,"props":628,"children":629},{"type":544},[],{"type":18,"value":631}," not be included in the\n",{"type":13,"tag":21,"props":633,"children":635},{"className":634},[],[636],{"type":18,"value":33},{"type":18,"value":638}," chain of ",{"type":13,"tag":37,"props":640,"children":641},{"href":39},[642],{"type":18,"value":42},{"type":13,"tag":581,"props":644,"children":646},{"name":645},"Valid Usage (Implicit)",[647,671],{"type":13,"tag":586,"props":648,"children":650},{"name":649},"VUID-VkExportSemaphoreWin32HandleInfoKHR-sType-sType",[651],{"type":13,"tag":14,"props":652,"children":653},{},[654,659,660,663,665],{"type":13,"tag":21,"props":655,"children":657},{"className":656},[],[658],{"type":18,"value":345},{"type":18,"value":626},{"type":13,"tag":542,"props":661,"children":662},{"type":544},[],{"type":18,"value":664}," be ",{"type":13,"tag":21,"props":666,"children":668},{"className":667},[],[669],{"type":18,"value":670},"VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR",{"type":13,"tag":586,"props":672,"children":674},{"name":673},"VUID-VkExportSemaphoreWin32HandleInfoKHR-pAttributes-parameter",[675],{"type":13,"tag":14,"props":676,"children":677},{},[678,679,684,686,691,693,698,699,702,704,709],{"type":18,"value":426},{"type":13,"tag":21,"props":680,"children":682},{"className":681},[],[683],{"type":18,"value":382},{"type":18,"value":685}," is not ",{"type":13,"tag":21,"props":687,"children":689},{"className":688},[],[690],{"type":18,"value":371},{"type":18,"value":692},", ",{"type":13,"tag":21,"props":694,"children":696},{"className":695},[],[697],{"type":18,"value":382},{"type":18,"value":626},{"type":13,"tag":542,"props":700,"children":701},{"type":544},[],{"type":18,"value":703}," be a valid pointer to a valid ",{"type":13,"tag":21,"props":705,"children":707},{"className":706},[],[708],{"type":18,"value":390},{"type":18,"value":710}," value",{"type":13,"tag":712,"props":713,"children":716},"section",{"className":714,"dataFootnotes":63},[715],"footnotes",[717,725],{"type":13,"tag":718,"props":719,"children":722},"h2",{"className":720,"id":515},[721],"sr-only",[723],{"type":18,"value":724},"Footnotes",{"type":13,"tag":726,"props":727,"children":728},"ol",{},[729],{"type":13,"tag":337,"props":730,"children":732},{"id":731},"user-content-fn-1",[733,740,741],{"type":13,"tag":37,"props":734,"children":738},{"href":735,"rel":736},"https://docs.microsoft.com/en-us/windows/win32/sync/synchronization-object-security-and-access-rights",[737],"nofollow",[739],{"type":18,"value":735},{"type":18,"value":626},{"type":13,"tag":37,"props":742,"children":747},{"href":743,"ariaLabel":744,"className":745,"dataFootnoteBackref":63},"#user-content-fnref-1","Back to reference 1",[746],"data-footnote-backref",[748],{"type":18,"value":749},"↩",{"type":13,"tag":751,"props":752,"children":753},"style",{},[754],{"type":18,"value":755},"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":757},[758],{"id":515,"depth":93,"text":724},"markdown",1725732552072]