[{"data":1,"prerenderedAt":212},["ShallowReactive",2],{"QcGs9F8Oz2":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":211,"_id":4},"VkFence","Opaque handle to a fence object","VK_VERSION_1_0","handles",[],{"type":10,"children":11,"toc":209},"root",[12,80,85,112,125,203],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25,27,30,32,39,41,44,46,52,54,57,59,65,67,70,72,78],{"type":18,"value":19},"text","Fences are a synchronization primitive that ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"can",[],{"type":18,"value":26}," be used to insert a\ndependency from a queue to the host.\nFences have two states - signaled and unsignaled.\nA fence ",{"type":13,"tag":21,"props":28,"children":29},{"type":23},[],{"type":18,"value":31}," be signaled as part of the execution of a\n",{"type":13,"tag":33,"props":34,"children":36},"a",{"href":35},"/chapters/devsandqueues#devsandqueues-submission",[37],{"type":18,"value":38},"queue submission",{"type":18,"value":40}," command.\nFences ",{"type":13,"tag":21,"props":42,"children":43},{"type":23},[],{"type":18,"value":45}," be unsignaled on the host with ",{"type":13,"tag":33,"props":47,"children":49},{"href":48},"/man/vkResetFences",[50],{"type":18,"value":51},"vkResetFences",{"type":18,"value":53},".\nFences ",{"type":13,"tag":21,"props":55,"children":56},{"type":23},[],{"type":18,"value":58}," be waited on by the host with the ",{"type":13,"tag":33,"props":60,"children":62},{"href":61},"/man/vkWaitForFences",[63],{"type":18,"value":64},"vkWaitForFences",{"type":18,"value":66}," command,\nand the current state ",{"type":13,"tag":21,"props":68,"children":69},{"type":23},[],{"type":18,"value":71}," be queried with ",{"type":13,"tag":33,"props":73,"children":75},{"href":74},"/man/vkGetFenceStatus",[76],{"type":18,"value":77},"vkGetFenceStatus",{"type":18,"value":79},".",{"type":13,"tag":81,"props":82,"children":84},"anchor",{"id":83},"synchronization-fences-payloads",[],{"type":13,"tag":14,"props":86,"children":87},{},[88,90,94,96,102,104,110],{"type":18,"value":89},"The internal data of a fence ",{"type":13,"tag":21,"props":91,"children":93},{"type":92},"may",[],{"type":18,"value":95}," include a reference to any resources and\npending work associated with signal or unsignal operations performed on that\nfence object, collectively referred to as the fence’s ",{"type":13,"tag":97,"props":98,"children":99},"em",{},[100],{"type":18,"value":101},"payload",{"type":18,"value":103},".\nMechanisms to import and export that internal data to and from fences are\nprovided ",{"type":13,"tag":33,"props":105,"children":107},{"href":106},"/man/VkExportFenceCreateInfo#VkExportFenceCreateInfo",[108],{"type":18,"value":109},"below",{"type":18,"value":111},".\nThese mechanisms indirectly enable applications to share fence state between\ntwo or more fences and other synchronization primitives across process and\nAPI boundaries.",{"type":13,"tag":14,"props":113,"children":114},{},[115,117,123],{"type":18,"value":116},"Fences are represented by ",{"type":13,"tag":118,"props":119,"children":121},"code",{"className":120},[],[122],{"type":18,"value":4},{"type":18,"value":124}," handles:",{"type":13,"tag":126,"props":127,"children":128},"code-group",{},[129,159],{"type":13,"tag":130,"props":131,"children":137},"pre",{"className":132,"code":133,"filename":134,"language":135,"meta":136,"style":136},"language-c shiki shiki-themes github-light-default github-dark-default","VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFence)\n","C","c","",[138],{"type":13,"tag":118,"props":139,"children":140},{"__ignoreMap":136},[141],{"type":13,"tag":142,"props":143,"children":146},"span",{"class":144,"line":145},"line",1,[147,153],{"type":13,"tag":142,"props":148,"children":150},{"style":149},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[151],{"type":18,"value":152},"VK_DEFINE_NON_DISPATCHABLE_HANDLE",{"type":13,"tag":142,"props":154,"children":156},{"style":155},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[157],{"type":18,"value":158},"(VkFence)\n",{"type":13,"tag":130,"props":160,"children":165},{"className":161,"code":162,"filename":163,"language":164,"meta":136,"style":136},"language-rs shiki shiki-themes github-light-default github-dark-default","#[repr(transparent)]\npub struct Fence(_);\n","Rust","rs",[166],{"type":13,"tag":118,"props":167,"children":168},{"__ignoreMap":136},[169,177],{"type":13,"tag":142,"props":170,"children":171},{"class":144,"line":145},[172],{"type":13,"tag":142,"props":173,"children":174},{"style":155},[175],{"type":18,"value":176},"#[repr(transparent)]\n",{"type":13,"tag":142,"props":178,"children":180},{"class":144,"line":179},2,[181,187,192,198],{"type":13,"tag":142,"props":182,"children":184},{"style":183},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[185],{"type":18,"value":186},"pub",{"type":13,"tag":142,"props":188,"children":189},{"style":183},[190],{"type":18,"value":191}," struct",{"type":13,"tag":142,"props":193,"children":195},{"style":194},"--shiki-default:#953800;--shiki-dark:#FFA657",[196],{"type":18,"value":197}," Fence",{"type":13,"tag":142,"props":199,"children":200},{"style":155},[201],{"type":18,"value":202},"(_);\n",{"type":13,"tag":204,"props":205,"children":206},"style",{},[207],{"type":18,"value":208},"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":136,"searchDepth":179,"depth":179,"links":210},[],"markdown",1729612448315]