[{"data":1,"prerenderedAt":1325},["ShallowReactive",2],{"JuEJK8qUI9":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":1324,"_id":4},"vkCmdWaitEvents2","Wait for one or more events","VK_VERSION_1_3","protos",[],{"type":10,"children":11,"toc":1322},"root",[12,20,25,319,406,453,493,498,569,605,631,675,1069,1270,1316],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To wait for one or more events to enter the signaled state on a device,\ncall:",{"type":13,"tag":21,"props":22,"children":24},"anchor",{"id":23},"synchronization-events-waiting-device",[],{"type":13,"tag":26,"props":27,"children":28},"code-group",{},[29,159],{"type":13,"tag":30,"props":31,"children":37},"pre",{"className":32,"code":33,"filename":34,"language":35,"meta":36,"style":36},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdWaitEvents2KHR(\n VkCommandBuffer commandBuffer,\n uint32_t eventCount,\n const VkEvent* pEvents,\n const VkDependencyInfo* pDependencyInfos);\n","C","c","",[38],{"type":13,"tag":39,"props":40,"children":41},"code",{"__ignoreMap":36},[42,66,86,104,132],{"type":13,"tag":43,"props":44,"children":47},"span",{"class":45,"line":46},"line",1,[48,54,60],{"type":13,"tag":43,"props":49,"children":51},{"style":50},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[52],{"type":18,"value":53},"void",{"type":13,"tag":43,"props":55,"children":57},{"style":56},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[58],{"type":18,"value":59}," vkCmdWaitEvents2KHR",{"type":13,"tag":43,"props":61,"children":63},{"style":62},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[64],{"type":18,"value":65},"(\n",{"type":13,"tag":43,"props":67,"children":69},{"class":45,"line":68},2,[70,75,81],{"type":13,"tag":43,"props":71,"children":72},{"style":62},[73],{"type":18,"value":74}," VkCommandBuffer ",{"type":13,"tag":43,"props":76,"children":78},{"style":77},"--shiki-default:#953800;--shiki-dark:#FFA657",[79],{"type":18,"value":80},"commandBuffer",{"type":13,"tag":43,"props":82,"children":83},{"style":62},[84],{"type":18,"value":85},",\n",{"type":13,"tag":43,"props":87,"children":89},{"class":45,"line":88},3,[90,95,100],{"type":13,"tag":43,"props":91,"children":92},{"style":50},[93],{"type":18,"value":94}," uint32_t",{"type":13,"tag":43,"props":96,"children":97},{"style":77},[98],{"type":18,"value":99}," eventCount",{"type":13,"tag":43,"props":101,"children":102},{"style":62},[103],{"type":18,"value":85},{"type":13,"tag":43,"props":105,"children":107},{"class":45,"line":106},4,[108,113,118,123,128],{"type":13,"tag":43,"props":109,"children":110},{"style":50},[111],{"type":18,"value":112}," const",{"type":13,"tag":43,"props":114,"children":115},{"style":62},[116],{"type":18,"value":117}," VkEvent",{"type":13,"tag":43,"props":119,"children":120},{"style":50},[121],{"type":18,"value":122},"*",{"type":13,"tag":43,"props":124,"children":125},{"style":77},[126],{"type":18,"value":127}," pEvents",{"type":13,"tag":43,"props":129,"children":130},{"style":62},[131],{"type":18,"value":85},{"type":13,"tag":43,"props":133,"children":135},{"class":45,"line":134},5,[136,140,145,149,154],{"type":13,"tag":43,"props":137,"children":138},{"style":50},[139],{"type":18,"value":112},{"type":13,"tag":43,"props":141,"children":142},{"style":62},[143],{"type":18,"value":144}," VkDependencyInfo",{"type":13,"tag":43,"props":146,"children":147},{"style":50},[148],{"type":18,"value":122},{"type":13,"tag":43,"props":150,"children":151},{"style":77},[152],{"type":18,"value":153}," pDependencyInfos",{"type":13,"tag":43,"props":155,"children":156},{"style":62},[157],{"type":18,"value":158},");\n",{"type":13,"tag":30,"props":160,"children":165},{"className":161,"code":162,"filename":163,"language":164,"meta":36,"style":36},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_wait_events2_khr(\n command_buffer: vk::CommandBuffer,\n event_count: u32,\n p_events: *const vk::Event,\n p_dependency_infos: *const vk::DependencyInfo,\n);\n","Rust","rs",[166],{"type":13,"tag":39,"props":167,"children":168},{"__ignoreMap":36},[169,191,223,244,278,311],{"type":13,"tag":43,"props":170,"children":171},{"class":45,"line":46},[172,177,182,187],{"type":13,"tag":43,"props":173,"children":174},{"style":50},[175],{"type":18,"value":176},"pub",{"type":13,"tag":43,"props":178,"children":179},{"style":50},[180],{"type":18,"value":181}," fn",{"type":13,"tag":43,"props":183,"children":184},{"style":56},[185],{"type":18,"value":186}," cmd_wait_events2_khr",{"type":13,"tag":43,"props":188,"children":189},{"style":62},[190],{"type":18,"value":65},{"type":13,"tag":43,"props":192,"children":193},{"class":45,"line":68},[194,199,204,209,214,219],{"type":13,"tag":43,"props":195,"children":196},{"style":62},[197],{"type":18,"value":198}," command_buffer",{"type":13,"tag":43,"props":200,"children":201},{"style":50},[202],{"type":18,"value":203},":",{"type":13,"tag":43,"props":205,"children":206},{"style":77},[207],{"type":18,"value":208}," vk",{"type":13,"tag":43,"props":210,"children":211},{"style":50},[212],{"type":18,"value":213},"::",{"type":13,"tag":43,"props":215,"children":216},{"style":77},[217],{"type":18,"value":218},"CommandBuffer",{"type":13,"tag":43,"props":220,"children":221},{"style":62},[222],{"type":18,"value":85},{"type":13,"tag":43,"props":224,"children":225},{"class":45,"line":88},[226,231,235,240],{"type":13,"tag":43,"props":227,"children":228},{"style":62},[229],{"type":18,"value":230}," event_count",{"type":13,"tag":43,"props":232,"children":233},{"style":50},[234],{"type":18,"value":203},{"type":13,"tag":43,"props":236,"children":237},{"style":77},[238],{"type":18,"value":239}," u32",{"type":13,"tag":43,"props":241,"children":242},{"style":62},[243],{"type":18,"value":85},{"type":13,"tag":43,"props":245,"children":246},{"class":45,"line":106},[247,252,256,261,265,269,274],{"type":13,"tag":43,"props":248,"children":249},{"style":62},[250],{"type":18,"value":251}," p_events",{"type":13,"tag":43,"props":253,"children":254},{"style":50},[255],{"type":18,"value":203},{"type":13,"tag":43,"props":257,"children":258},{"style":50},[259],{"type":18,"value":260}," *const",{"type":13,"tag":43,"props":262,"children":263},{"style":77},[264],{"type":18,"value":208},{"type":13,"tag":43,"props":266,"children":267},{"style":50},[268],{"type":18,"value":213},{"type":13,"tag":43,"props":270,"children":271},{"style":77},[272],{"type":18,"value":273},"Event",{"type":13,"tag":43,"props":275,"children":276},{"style":62},[277],{"type":18,"value":85},{"type":13,"tag":43,"props":279,"children":280},{"class":45,"line":134},[281,286,290,294,298,302,307],{"type":13,"tag":43,"props":282,"children":283},{"style":62},[284],{"type":18,"value":285}," p_dependency_infos",{"type":13,"tag":43,"props":287,"children":288},{"style":50},[289],{"type":18,"value":203},{"type":13,"tag":43,"props":291,"children":292},{"style":50},[293],{"type":18,"value":260},{"type":13,"tag":43,"props":295,"children":296},{"style":77},[297],{"type":18,"value":208},{"type":13,"tag":43,"props":299,"children":300},{"style":50},[301],{"type":18,"value":213},{"type":13,"tag":43,"props":303,"children":304},{"style":77},[305],{"type":18,"value":306},"DependencyInfo",{"type":13,"tag":43,"props":308,"children":309},{"style":62},[310],{"type":18,"value":85},{"type":13,"tag":43,"props":312,"children":314},{"class":45,"line":313},6,[315],{"type":13,"tag":43,"props":316,"children":317},{"style":62},[318],{"type":18,"value":158},{"type":13,"tag":320,"props":321,"children":322},"ul",{},[323,334,353,370],{"type":13,"tag":324,"props":325,"children":326},"li",{},[327,332],{"type":13,"tag":39,"props":328,"children":330},{"className":329},[],[331],{"type":18,"value":80},{"type":18,"value":333}," is the command buffer into which the command is\nrecorded.",{"type":13,"tag":324,"props":335,"children":336},{},[337,343,345,351],{"type":13,"tag":39,"props":338,"children":340},{"className":339},[],[341],{"type":18,"value":342},"eventCount",{"type":18,"value":344}," is the length of the ",{"type":13,"tag":39,"props":346,"children":348},{"className":347},[],[349],{"type":18,"value":350},"pEvents",{"type":18,"value":352}," array.",{"type":13,"tag":324,"props":354,"children":355},{},[356,361,363,368],{"type":13,"tag":39,"props":357,"children":359},{"className":358},[],[360],{"type":18,"value":350},{"type":18,"value":362}," is a pointer to an array of ",{"type":13,"tag":39,"props":364,"children":366},{"className":365},[],[367],{"type":18,"value":342},{"type":18,"value":369}," events to\nwait on.",{"type":13,"tag":324,"props":371,"children":372},{},[373,379,380,385,389,396,398,404],{"type":13,"tag":39,"props":374,"children":376},{"className":375},[],[377],{"type":18,"value":378},"pDependencyInfos",{"type":18,"value":362},{"type":13,"tag":39,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":342},{"type":13,"tag":386,"props":387,"children":388},"br",{},[],{"type":13,"tag":390,"props":391,"children":393},"a",{"href":392},"/man/VkDependencyInfo",[394],{"type":18,"value":395},"VkDependencyInfo",{"type":18,"value":397}," structures, defining the second\n",{"type":13,"tag":390,"props":399,"children":401},{"href":400},"/chapters/synchronization#synchronization-dependencies-scopes",[402],{"type":18,"value":403},"synchronization scope",{"type":18,"value":405},".",{"type":13,"tag":14,"props":407,"children":408},{},[409,411,416,418,423,425,430,432,437,439,444,446,452],{"type":18,"value":410},"When ",{"type":13,"tag":39,"props":412,"children":414},{"className":413},[],[415],{"type":18,"value":4},{"type":18,"value":417}," is submitted to a queue, it inserts memory\ndependencies according to the elements of ",{"type":13,"tag":39,"props":419,"children":421},{"className":420},[],[422],{"type":18,"value":378},{"type":18,"value":424}," and each\ncorresponding element of ",{"type":13,"tag":39,"props":426,"children":428},{"className":427},[],[429],{"type":18,"value":350},{"type":18,"value":431},".\n",{"type":13,"tag":39,"props":433,"children":435},{"className":434},[],[436],{"type":18,"value":4},{"type":18,"value":438}," ",{"type":13,"tag":440,"props":441,"children":443},"normative",{"type":442},"must",[],{"type":18,"value":445}," not be used to wait on event signal operations\noccurring on other queues, or signal operations executed by\n",{"type":13,"tag":390,"props":447,"children":449},{"href":448},"/man/vkCmdSetEvent",[450],{"type":18,"value":451},"vkCmdSetEvent",{"type":18,"value":405},{"type":13,"tag":14,"props":454,"children":455},{},[456,458,462,464,470,472,477,479,485,487,492],{"type":18,"value":457},"The first ",{"type":13,"tag":390,"props":459,"children":460},{"href":400},[461],{"type":18,"value":403},{"type":18,"value":463}," and\n",{"type":13,"tag":390,"props":465,"children":467},{"href":466},"/chapters/synchronization#synchronization-dependencies-access-scopes",[468],{"type":18,"value":469},"access scope",{"type":18,"value":471}," of each memory\ndependency defined by any element i of ",{"type":13,"tag":39,"props":473,"children":475},{"className":474},[],[476],{"type":18,"value":378},{"type":18,"value":478}," are\napplied to operations that occurred earlier in\n",{"type":13,"tag":390,"props":480,"children":482},{"href":481},"/chapters/synchronization#synchronization-submission-order",[483],{"type":18,"value":484},"submission order",{"type":18,"value":486}," than the last event\nsignal operation on element i of ",{"type":13,"tag":39,"props":488,"children":490},{"className":489},[],[491],{"type":18,"value":350},{"type":18,"value":405},{"type":13,"tag":14,"props":494,"children":495},{},[496],{"type":18,"value":497},"Signal operations for an event at index i are only included if:",{"type":13,"tag":320,"props":499,"children":500},{},[501,535],{"type":13,"tag":324,"props":502,"children":503},{},[504,506,512,514,518,520,526,528,533],{"type":18,"value":505},"The event was signaled by a ",{"type":13,"tag":390,"props":507,"children":509},{"href":508},"/man/vkCmdSetEvent2",[510],{"type":18,"value":511},"vkCmdSetEvent2",{"type":18,"value":513}," command that occurred\nearlier in ",{"type":13,"tag":390,"props":515,"children":516},{"href":481},[517],{"type":18,"value":484},{"type":18,"value":519}," with a\n",{"type":13,"tag":39,"props":521,"children":523},{"className":522},[],[524],{"type":18,"value":525},"dependencyInfo",{"type":18,"value":527}," parameter exactly equal to the element of\n",{"type":13,"tag":39,"props":529,"children":531},{"className":530},[],[532],{"type":18,"value":378},{"type":18,"value":534}," at index i ; or",{"type":13,"tag":324,"props":536,"children":537},{},[538,540,546,548,552,554,559,561,567],{"type":18,"value":539},"The event was created without ",{"type":13,"tag":39,"props":541,"children":543},{"className":542},[],[544],{"type":18,"value":545},"VK_EVENT_CREATE_DEVICE_ONLY_BIT",{"type":18,"value":547},", and\nthe first ",{"type":13,"tag":390,"props":549,"children":550},{"href":400},[551],{"type":18,"value":403},{"type":18,"value":553},"\ndefined by the element of ",{"type":13,"tag":39,"props":555,"children":557},{"className":556},[],[558],{"type":18,"value":378},{"type":18,"value":560}," at index i only\nincludes host operations (",{"type":13,"tag":39,"props":562,"children":564},{"className":563},[],[565],{"type":18,"value":566},"VK_PIPELINE_STAGE_2_HOST_BIT",{"type":18,"value":568},").",{"type":13,"tag":14,"props":570,"children":571},{},[572,574,578,580,584,586,591,593,597,599,604],{"type":18,"value":573},"The second ",{"type":13,"tag":390,"props":575,"children":576},{"href":400},[577],{"type":18,"value":403},{"type":18,"value":579},"\nand ",{"type":13,"tag":390,"props":581,"children":582},{"href":466},[583],{"type":18,"value":469},{"type":18,"value":585}," of each\nmemory dependency defined by any element i of ",{"type":13,"tag":39,"props":587,"children":589},{"className":588},[],[590],{"type":18,"value":378},{"type":18,"value":592},"\nare applied to operations that occurred later in\n",{"type":13,"tag":390,"props":594,"children":595},{"href":481},[596],{"type":18,"value":484},{"type":18,"value":598}," than\n",{"type":13,"tag":39,"props":600,"children":602},{"className":601},[],[603],{"type":18,"value":4},{"type":18,"value":405},{"type":13,"tag":606,"props":607,"children":608},"note",{},[609],{"type":13,"tag":14,"props":610,"children":611},{},[612,617,619,623,625,629],{"type":13,"tag":390,"props":613,"children":615},{"href":614},"/man/vkCmdWaitEvents2",[616],{"type":18,"value":4},{"type":18,"value":618}," is used with ",{"type":13,"tag":390,"props":620,"children":621},{"href":508},[622],{"type":18,"value":511},{"type":18,"value":624}," to define a memory\ndependency between two sets of action commands, roughly in the same way as\npipeline barriers, but split into two commands such that work between the\ntwo ",{"type":13,"tag":440,"props":626,"children":628},{"type":627},"may",[],{"type":18,"value":630}," execute unhindered.",{"type":13,"tag":606,"props":632,"children":633},{},[634],{"type":13,"tag":14,"props":635,"children":636},{},[637,639,644,645,651,653,659,661,665,667,673],{"type":18,"value":638},"Applications should be careful to avoid race conditions when using events.\nThere is no direct ordering guarantee between ",{"type":13,"tag":39,"props":640,"children":642},{"className":641},[],[643],{"type":18,"value":511},{"type":18,"value":463},{"type":13,"tag":390,"props":646,"children":648},{"href":647},"/man/vkCmdResetEvent2",[649],{"type":18,"value":650},"vkCmdResetEvent2",{"type":18,"value":652},", ",{"type":13,"tag":390,"props":654,"children":656},{"href":655},"/man/vkCmdResetEvent",[657],{"type":18,"value":658},"vkCmdResetEvent",{"type":18,"value":660},", or ",{"type":13,"tag":390,"props":662,"children":663},{"href":448},[664],{"type":18,"value":451},{"type":18,"value":666},".\nAnother execution dependency (e.g. a pipeline barrier or semaphore with\n",{"type":13,"tag":39,"props":668,"children":670},{"className":669},[],[671],{"type":18,"value":672},"VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT",{"type":18,"value":674},") is needed to prevent such a race\ncondition.",{"type":13,"tag":676,"props":677,"children":679},"validity-group",{"name":678},"Valid Usage",[680,707,731,770,807,846,888,945,994,1050],{"type":13,"tag":681,"props":682,"children":684},"validity-field",{"name":683},"VUID-vkCmdWaitEvents2-synchronization2-03836",[685],{"type":13,"tag":14,"props":686,"children":687},{},[688,690,700,702,705],{"type":18,"value":689},"The ",{"type":13,"tag":390,"props":691,"children":693},{"href":692},"/man/VkPhysicalDeviceSynchronization2Features#features-synchronization2",[694],{"type":13,"tag":39,"props":695,"children":697},{"className":696},[],[698],{"type":18,"value":699},"synchronization2",{"type":18,"value":701}," feature ",{"type":13,"tag":440,"props":703,"children":704},{"type":442},[],{"type":18,"value":706},"\nbe enabled",{"type":13,"tag":681,"props":708,"children":710},{"name":709},"VUID-vkCmdWaitEvents2-pEvents-03837",[711],{"type":13,"tag":14,"props":712,"children":713},{},[714,716,721,722,725,727],{"type":18,"value":715},"Members of ",{"type":13,"tag":39,"props":717,"children":719},{"className":718},[],[720],{"type":18,"value":350},{"type":18,"value":438},{"type":13,"tag":440,"props":723,"children":724},{"type":442},[],{"type":18,"value":726}," not have been signaled by\n",{"type":13,"tag":390,"props":728,"children":729},{"href":448},[730],{"type":18,"value":451},{"type":13,"tag":681,"props":732,"children":734},{"name":733},"VUID-vkCmdWaitEvents2-pEvents-03838",[735],{"type":13,"tag":14,"props":736,"children":737},{},[738,740,745,747,751,753,758,760,763,765],{"type":18,"value":739},"For any element i of ",{"type":13,"tag":39,"props":741,"children":743},{"className":742},[],[744],{"type":18,"value":350},{"type":18,"value":746},", if that event is signaled by\n",{"type":13,"tag":390,"props":748,"children":749},{"href":508},[750],{"type":18,"value":511},{"type":18,"value":752},", that command’s ",{"type":13,"tag":39,"props":754,"children":756},{"className":755},[],[757],{"type":18,"value":525},{"type":18,"value":759}," parameter\n",{"type":13,"tag":440,"props":761,"children":762},{"type":442},[],{"type":18,"value":764}," be exactly equal to the ith element of\n",{"type":13,"tag":39,"props":766,"children":768},{"className":767},[],[769],{"type":18,"value":378},{"type":13,"tag":681,"props":771,"children":773},{"name":772},"VUID-vkCmdWaitEvents2-pEvents-03839",[774],{"type":13,"tag":14,"props":775,"children":776},{},[777,778,783,784,790,792,797,798,801,803],{"type":18,"value":739},{"type":13,"tag":39,"props":779,"children":781},{"className":780},[],[782],{"type":18,"value":350},{"type":18,"value":746},{"type":13,"tag":390,"props":785,"children":787},{"href":786},"/man/vkSetEvent",[788],{"type":18,"value":789},"vkSetEvent",{"type":18,"value":791},", barriers in the ith element of\n",{"type":13,"tag":39,"props":793,"children":795},{"className":794},[],[796],{"type":18,"value":378},{"type":18,"value":438},{"type":13,"tag":440,"props":799,"children":800},{"type":442},[],{"type":18,"value":802}," include only host operations in their first\n",{"type":13,"tag":390,"props":804,"children":805},{"href":400},[806],{"type":18,"value":403},{"type":13,"tag":681,"props":808,"children":810},{"name":809},"VUID-vkCmdWaitEvents2-pEvents-03840",[811],{"type":13,"tag":14,"props":812,"children":813},{},[814,815,820,822,827,829,834,835,838,840,844],{"type":18,"value":739},{"type":13,"tag":39,"props":816,"children":818},{"className":817},[],[819],{"type":18,"value":350},{"type":18,"value":821},", if barriers in the ith\nelement of ",{"type":13,"tag":39,"props":823,"children":825},{"className":824},[],[826],{"type":18,"value":378},{"type":18,"value":828}," include only host operations, the\nith element of ",{"type":13,"tag":39,"props":830,"children":832},{"className":831},[],[833],{"type":18,"value":350},{"type":18,"value":438},{"type":13,"tag":440,"props":836,"children":837},{"type":442},[],{"type":18,"value":839}," be signaled before\n",{"type":13,"tag":390,"props":841,"children":842},{"href":614},[843],{"type":18,"value":4},{"type":18,"value":845}," is executed",{"type":13,"tag":681,"props":847,"children":849},{"name":848},"VUID-vkCmdWaitEvents2-pEvents-03841",[850],{"type":13,"tag":14,"props":851,"children":852},{},[853,854,859,860,865,867,872,873,876,878,882,884],{"type":18,"value":739},{"type":13,"tag":39,"props":855,"children":857},{"className":856},[],[858],{"type":18,"value":350},{"type":18,"value":821},{"type":13,"tag":39,"props":861,"children":863},{"className":862},[],[864],{"type":18,"value":378},{"type":18,"value":866}," do not include host operations, the\nith element of ",{"type":13,"tag":39,"props":868,"children":870},{"className":869},[],[871],{"type":18,"value":350},{"type":18,"value":438},{"type":13,"tag":440,"props":874,"children":875},{"type":442},[],{"type":18,"value":877}," be signaled by a\ncorresponding ",{"type":13,"tag":390,"props":879,"children":880},{"href":508},[881],{"type":18,"value":511},{"type":18,"value":883}," that occurred earlier in\n",{"type":13,"tag":390,"props":885,"children":886},{"href":481},[887],{"type":18,"value":484},{"type":13,"tag":681,"props":889,"children":891},{"name":890},"VUID-vkCmdWaitEvents2-srcStageMask-03842",[892],{"type":13,"tag":14,"props":893,"children":894},{},[895,896,902,904,910,911,917,919,925,927,932,933,936,938,943],{"type":18,"value":689},{"type":13,"tag":39,"props":897,"children":899},{"className":898},[],[900],{"type":18,"value":901},"srcStageMask",{"type":18,"value":903}," member of any element of the\n",{"type":13,"tag":39,"props":905,"children":907},{"className":906},[],[908],{"type":18,"value":909},"pMemoryBarriers",{"type":18,"value":652},{"type":13,"tag":39,"props":912,"children":914},{"className":913},[],[915],{"type":18,"value":916},"pBufferMemoryBarriers",{"type":18,"value":918},", or\n",{"type":13,"tag":39,"props":920,"children":922},{"className":921},[],[923],{"type":18,"value":924},"pImageMemoryBarriers",{"type":18,"value":926}," members of ",{"type":13,"tag":39,"props":928,"children":930},{"className":929},[],[931],{"type":18,"value":378},{"type":18,"value":438},{"type":13,"tag":440,"props":934,"children":935},{"type":442},[],{"type":18,"value":937}," only\ninclude pipeline stages valid for the queue family that was used to\ncreate the command pool that ",{"type":13,"tag":39,"props":939,"children":941},{"className":940},[],[942],{"type":18,"value":80},{"type":18,"value":944}," was allocated from",{"type":13,"tag":681,"props":946,"children":948},{"name":947},"VUID-vkCmdWaitEvents2-dstStageMask-03843",[949],{"type":13,"tag":14,"props":950,"children":951},{},[952,953,959,960,965,966,971,972,977,978,983,984,987,988,993],{"type":18,"value":689},{"type":13,"tag":39,"props":954,"children":956},{"className":955},[],[957],{"type":18,"value":958},"dstStageMask",{"type":18,"value":903},{"type":13,"tag":39,"props":961,"children":963},{"className":962},[],[964],{"type":18,"value":909},{"type":18,"value":652},{"type":13,"tag":39,"props":967,"children":969},{"className":968},[],[970],{"type":18,"value":916},{"type":18,"value":918},{"type":13,"tag":39,"props":973,"children":975},{"className":974},[],[976],{"type":18,"value":924},{"type":18,"value":926},{"type":13,"tag":39,"props":979,"children":981},{"className":980},[],[982],{"type":18,"value":378},{"type":18,"value":438},{"type":13,"tag":440,"props":985,"children":986},{"type":442},[],{"type":18,"value":937},{"type":13,"tag":39,"props":989,"children":991},{"className":990},[],[992],{"type":18,"value":80},{"type":18,"value":944},{"type":13,"tag":681,"props":995,"children":997},{"name":996},"VUID-vkCmdWaitEvents2-dependencyFlags-03844",[998],{"type":13,"tag":14,"props":999,"children":1000},{},[1001,1003,1008,1010,1015,1016,1021,1022,1027,1028,1033,1034,1039,1040,1043,1045],{"type":18,"value":1002},"If ",{"type":13,"tag":39,"props":1004,"children":1006},{"className":1005},[],[1007],{"type":18,"value":4},{"type":18,"value":1009}," is being called inside a render pass instance,\nthe ",{"type":13,"tag":39,"props":1011,"children":1013},{"className":1012},[],[1014],{"type":18,"value":901},{"type":18,"value":903},{"type":13,"tag":39,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":18,"value":909},{"type":18,"value":652},{"type":13,"tag":39,"props":1023,"children":1025},{"className":1024},[],[1026],{"type":18,"value":916},{"type":18,"value":918},{"type":13,"tag":39,"props":1029,"children":1031},{"className":1030},[],[1032],{"type":18,"value":924},{"type":18,"value":926},{"type":13,"tag":39,"props":1035,"children":1037},{"className":1036},[],[1038],{"type":18,"value":378},{"type":18,"value":438},{"type":13,"tag":440,"props":1041,"children":1042},{"type":442},[],{"type":18,"value":1044}," not\ninclude ",{"type":13,"tag":39,"props":1046,"children":1048},{"className":1047},[],[1049],{"type":18,"value":566},{"type":13,"tag":681,"props":1051,"children":1053},{"name":1052},"VUID-vkCmdWaitEvents2-commandBuffer-03846",[1054],{"type":13,"tag":14,"props":1055,"children":1056},{},[1057,1062,1064,1067],{"type":13,"tag":39,"props":1058,"children":1060},{"className":1059},[],[1061],{"type":18,"value":80},{"type":18,"value":1063},"’s current device mask ",{"type":13,"tag":440,"props":1065,"children":1066},{"type":442},[],{"type":18,"value":1068}," include exactly one\nphysical device",{"type":13,"tag":676,"props":1070,"children":1072},{"name":1071},"Valid Usage (Implicit)",[1073,1099,1132,1161,1185,1213,1237],{"type":13,"tag":681,"props":1074,"children":1076},{"name":1075},"VUID-vkCmdWaitEvents2-commandBuffer-parameter",[1077],{"type":13,"tag":14,"props":1078,"children":1079},{},[1080,1085,1086,1089,1091,1097],{"type":13,"tag":39,"props":1081,"children":1083},{"className":1082},[],[1084],{"type":18,"value":80},{"type":18,"value":438},{"type":13,"tag":440,"props":1087,"children":1088},{"type":442},[],{"type":18,"value":1090}," be a valid ",{"type":13,"tag":390,"props":1092,"children":1094},{"href":1093},"/man/VkCommandBuffer",[1095],{"type":18,"value":1096},"VkCommandBuffer",{"type":18,"value":1098}," handle",{"type":13,"tag":681,"props":1100,"children":1102},{"name":1101},"VUID-vkCmdWaitEvents2-pEvents-parameter",[1103],{"type":13,"tag":14,"props":1104,"children":1105},{},[1106,1111,1112,1115,1117,1122,1124,1130],{"type":13,"tag":39,"props":1107,"children":1109},{"className":1108},[],[1110],{"type":18,"value":350},{"type":18,"value":438},{"type":13,"tag":440,"props":1113,"children":1114},{"type":442},[],{"type":18,"value":1116}," be a valid pointer to an array of ",{"type":13,"tag":39,"props":1118,"children":1120},{"className":1119},[],[1121],{"type":18,"value":342},{"type":18,"value":1123}," valid ",{"type":13,"tag":390,"props":1125,"children":1127},{"href":1126},"/man/VkEvent",[1128],{"type":18,"value":1129},"VkEvent",{"type":18,"value":1131}," handles",{"type":13,"tag":681,"props":1133,"children":1135},{"name":1134},"VUID-vkCmdWaitEvents2-pDependencyInfos-parameter",[1136],{"type":13,"tag":14,"props":1137,"children":1138},{},[1139,1144,1145,1148,1149,1154,1155,1159],{"type":13,"tag":39,"props":1140,"children":1142},{"className":1141},[],[1143],{"type":18,"value":378},{"type":18,"value":438},{"type":13,"tag":440,"props":1146,"children":1147},{"type":442},[],{"type":18,"value":1116},{"type":13,"tag":39,"props":1150,"children":1152},{"className":1151},[],[1153],{"type":18,"value":342},{"type":18,"value":1123},{"type":13,"tag":390,"props":1156,"children":1157},{"href":392},[1158],{"type":18,"value":395},{"type":18,"value":1160}," structures",{"type":13,"tag":681,"props":1162,"children":1164},{"name":1163},"VUID-vkCmdWaitEvents2-commandBuffer-recording",[1165],{"type":13,"tag":14,"props":1166,"children":1167},{},[1168,1173,1174,1177,1179],{"type":13,"tag":39,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":18,"value":80},{"type":18,"value":438},{"type":13,"tag":440,"props":1175,"children":1176},{"type":442},[],{"type":18,"value":1178}," be in the ",{"type":13,"tag":390,"props":1180,"children":1182},{"href":1181},"/chapters/commandbuffers#commandbuffers-lifecycle",[1183],{"type":18,"value":1184},"recording state",{"type":13,"tag":681,"props":1186,"children":1188},{"name":1187},"VUID-vkCmdWaitEvents2-commandBuffer-cmdpool",[1189],{"type":13,"tag":14,"props":1190,"children":1191},{},[1192,1193,1199,1201,1206,1208,1211],{"type":18,"value":689},{"type":13,"tag":39,"props":1194,"children":1196},{"className":1195},[],[1197],{"type":18,"value":1198},"VkCommandPool",{"type":18,"value":1200}," that ",{"type":13,"tag":39,"props":1202,"children":1204},{"className":1203},[],[1205],{"type":18,"value":80},{"type":18,"value":1207}," was allocated from ",{"type":13,"tag":440,"props":1209,"children":1210},{"type":442},[],{"type":18,"value":1212}," support graphics, compute, decode, or encode operations",{"type":13,"tag":681,"props":1214,"children":1216},{"name":1215},"VUID-vkCmdWaitEvents2-eventCount-arraylength",[1217],{"type":13,"tag":14,"props":1218,"children":1219},{},[1220,1225,1226,1229,1231],{"type":13,"tag":39,"props":1221,"children":1223},{"className":1222},[],[1224],{"type":18,"value":342},{"type":18,"value":438},{"type":13,"tag":440,"props":1227,"children":1228},{"type":442},[],{"type":18,"value":1230}," be greater than ",{"type":13,"tag":39,"props":1232,"children":1234},{"className":1233},[],[1235],{"type":18,"value":1236},"0",{"type":13,"tag":681,"props":1238,"children":1240},{"name":1239},"VUID-vkCmdWaitEvents2-commonparent",[1241],{"type":13,"tag":14,"props":1242,"children":1243},{},[1244,1246,1251,1253,1258,1259,1262,1264],{"type":18,"value":1245},"Both of ",{"type":13,"tag":39,"props":1247,"children":1249},{"className":1248},[],[1250],{"type":18,"value":80},{"type":18,"value":1252},", and the elements of ",{"type":13,"tag":39,"props":1254,"children":1256},{"className":1255},[],[1257],{"type":18,"value":350},{"type":18,"value":438},{"type":13,"tag":440,"props":1260,"children":1261},{"type":442},[],{"type":18,"value":1263}," have been created, allocated, or retrieved from the same ",{"type":13,"tag":390,"props":1265,"children":1267},{"href":1266},"/man/VkDevice",[1268],{"type":18,"value":1269},"VkDevice",{"type":13,"tag":1271,"props":1272,"children":1274},"validity-box",{"name":1273},"Host Synchronization",[1275],{"type":13,"tag":320,"props":1276,"children":1277},{},[1278,1294],{"type":13,"tag":324,"props":1279,"children":1280},{},[1281,1283,1288,1289,1292],{"type":18,"value":1282},"Host access to ",{"type":13,"tag":39,"props":1284,"children":1286},{"className":1285},[],[1287],{"type":18,"value":80},{"type":18,"value":438},{"type":13,"tag":440,"props":1290,"children":1291},{"type":442},[],{"type":18,"value":1293}," be externally synchronized",{"type":13,"tag":324,"props":1295,"children":1296},{},[1297,1299,1304,1305,1310,1311,1314],{"type":18,"value":1298},"Host access to the ",{"type":13,"tag":39,"props":1300,"children":1302},{"className":1301},[],[1303],{"type":18,"value":1198},{"type":18,"value":1200},{"type":13,"tag":39,"props":1306,"children":1308},{"className":1307},[],[1309],{"type":18,"value":80},{"type":18,"value":1207},{"type":13,"tag":440,"props":1312,"children":1313},{"type":442},[],{"type":18,"value":1315}," be externally synchronized\n::",{"type":13,"tag":1317,"props":1318,"children":1319},"style",{},[1320],{"type":18,"value":1321},"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":36,"searchDepth":68,"depth":68,"links":1323},[],"markdown",1725732610959]