[{"data":1,"prerenderedAt":497},["ShallowReactive",2],{"zKAsHTRDL2":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":496,"_id":4},"vkSetEvent","Set an event to signaled state","VK_VERSION_1_0","protos",[],{"type":10,"children":11,"toc":494},"root",[12,20,243,268,289,313,330,387,464,488],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To set the state of an event to signaled from the host, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,98],{"type":13,"tag":25,"props":26,"children":32},"pre",{"className":27,"code":28,"filename":29,"language":30,"meta":31,"style":31},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkSetEvent(\n VkDevice device,\n VkEvent event);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,54],{"type":13,"tag":38,"props":44,"children":46},{"style":45},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[47],{"type":18,"value":48},"VkResult ",{"type":13,"tag":38,"props":50,"children":52},{"style":51},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[53],{"type":18,"value":4},{"type":13,"tag":38,"props":55,"children":56},{"style":45},[57],{"type":18,"value":58},"(\n",{"type":13,"tag":38,"props":60,"children":62},{"class":40,"line":61},2,[63,68,74],{"type":13,"tag":38,"props":64,"children":65},{"style":45},[66],{"type":18,"value":67}," VkDevice ",{"type":13,"tag":38,"props":69,"children":71},{"style":70},"--shiki-default:#953800;--shiki-dark:#FFA657",[72],{"type":18,"value":73},"device",{"type":13,"tag":38,"props":75,"children":76},{"style":45},[77],{"type":18,"value":78},",\n",{"type":13,"tag":38,"props":80,"children":82},{"class":40,"line":81},3,[83,88,93],{"type":13,"tag":38,"props":84,"children":85},{"style":45},[86],{"type":18,"value":87}," VkEvent ",{"type":13,"tag":38,"props":89,"children":90},{"style":70},[91],{"type":18,"value":92},"event",{"type":13,"tag":38,"props":94,"children":95},{"style":45},[96],{"type":18,"value":97},");\n",{"type":13,"tag":25,"props":99,"children":104},{"className":100,"code":101,"filename":102,"language":103,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn set_event(\n device: crate :: vk :: vk::Device,\n event: vk::Event,\n) -> vk::Result;\n","Rust","rs",[105],{"type":13,"tag":34,"props":106,"children":107},{"__ignoreMap":31},[108,131,182,211],{"type":13,"tag":38,"props":109,"children":110},{"class":40,"line":41},[111,117,122,127],{"type":13,"tag":38,"props":112,"children":114},{"style":113},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[115],{"type":18,"value":116},"pub",{"type":13,"tag":38,"props":118,"children":119},{"style":113},[120],{"type":18,"value":121}," fn",{"type":13,"tag":38,"props":123,"children":124},{"style":51},[125],{"type":18,"value":126}," set_event",{"type":13,"tag":38,"props":128,"children":129},{"style":45},[130],{"type":18,"value":58},{"type":13,"tag":38,"props":132,"children":133},{"class":40,"line":61},[134,139,144,149,154,159,164,169,173,178],{"type":13,"tag":38,"props":135,"children":136},{"style":45},[137],{"type":18,"value":138}," device",{"type":13,"tag":38,"props":140,"children":141},{"style":113},[142],{"type":18,"value":143},":",{"type":13,"tag":38,"props":145,"children":146},{"style":113},[147],{"type":18,"value":148}," crate",{"type":13,"tag":38,"props":150,"children":151},{"style":113},[152],{"type":18,"value":153}," ::",{"type":13,"tag":38,"props":155,"children":156},{"style":45},[157],{"type":18,"value":158}," vk ",{"type":13,"tag":38,"props":160,"children":161},{"style":113},[162],{"type":18,"value":163},"::",{"type":13,"tag":38,"props":165,"children":166},{"style":70},[167],{"type":18,"value":168}," vk",{"type":13,"tag":38,"props":170,"children":171},{"style":113},[172],{"type":18,"value":163},{"type":13,"tag":38,"props":174,"children":175},{"style":70},[176],{"type":18,"value":177},"Device",{"type":13,"tag":38,"props":179,"children":180},{"style":45},[181],{"type":18,"value":78},{"type":13,"tag":38,"props":183,"children":184},{"class":40,"line":81},[185,190,194,198,202,207],{"type":13,"tag":38,"props":186,"children":187},{"style":45},[188],{"type":18,"value":189}," event",{"type":13,"tag":38,"props":191,"children":192},{"style":113},[193],{"type":18,"value":143},{"type":13,"tag":38,"props":195,"children":196},{"style":70},[197],{"type":18,"value":168},{"type":13,"tag":38,"props":199,"children":200},{"style":113},[201],{"type":18,"value":163},{"type":13,"tag":38,"props":203,"children":204},{"style":70},[205],{"type":18,"value":206},"Event",{"type":13,"tag":38,"props":208,"children":209},{"style":45},[210],{"type":18,"value":78},{"type":13,"tag":38,"props":212,"children":214},{"class":40,"line":213},4,[215,220,225,229,233,238],{"type":13,"tag":38,"props":216,"children":217},{"style":45},[218],{"type":18,"value":219},") ",{"type":13,"tag":38,"props":221,"children":222},{"style":113},[223],{"type":18,"value":224},"->",{"type":13,"tag":38,"props":226,"children":227},{"style":70},[228],{"type":18,"value":168},{"type":13,"tag":38,"props":230,"children":231},{"style":113},[232],{"type":18,"value":163},{"type":13,"tag":38,"props":234,"children":235},{"style":70},[236],{"type":18,"value":237},"Result",{"type":13,"tag":38,"props":239,"children":240},{"style":45},[241],{"type":18,"value":242},";\n",{"type":13,"tag":244,"props":245,"children":246},"ul",{},[247,258],{"type":13,"tag":248,"props":249,"children":250},"li",{},[251,256],{"type":13,"tag":34,"props":252,"children":254},{"className":253},[],[255],{"type":18,"value":73},{"type":18,"value":257}," is the logical device that owns the event.",{"type":13,"tag":248,"props":259,"children":260},{},[261,266],{"type":13,"tag":34,"props":262,"children":264},{"className":263},[],[265],{"type":18,"value":92},{"type":18,"value":267}," is the event to set.",{"type":13,"tag":14,"props":269,"children":270},{},[271,273,279,281,287],{"type":18,"value":272},"When ",{"type":13,"tag":274,"props":275,"children":277},"a",{"href":276},"/man/vkSetEvent",[278],{"type":18,"value":4},{"type":18,"value":280}," is executed on the host, it defines an ",{"type":13,"tag":282,"props":283,"children":284},"em",{},[285],{"type":18,"value":286},"event signal\noperation",{"type":18,"value":288}," which sets the event to the signaled state.",{"type":13,"tag":14,"props":290,"children":291},{},[292,294,299,301,305,307,311],{"type":18,"value":293},"If ",{"type":13,"tag":34,"props":295,"children":297},{"className":296},[],[298],{"type":18,"value":92},{"type":18,"value":300}," is already in the signaled state when ",{"type":13,"tag":274,"props":302,"children":303},{"href":276},[304],{"type":18,"value":4},{"type":18,"value":306}," is\nexecuted, then ",{"type":13,"tag":274,"props":308,"children":309},{"href":276},[310],{"type":18,"value":4},{"type":18,"value":312}," has no effect, and no event signal operation\noccurs.",{"type":13,"tag":314,"props":315,"children":316},"note",{},[317],{"type":13,"tag":14,"props":318,"children":319},{},[320,322,328],{"type":18,"value":321},"If a command buffer is waiting for an event to be signaled from the host,\nthe application must signal the event before submitting the command buffer,\nas described in the ",{"type":13,"tag":274,"props":323,"children":325},{"href":324},"/chapters/commandbuffers#commandbuffers-submission-progress",[326],{"type":18,"value":327},"queue forward\nprogress",{"type":18,"value":329}," section.",{"type":13,"tag":331,"props":332,"children":334},"validity-group",{"name":333},"Valid Usage",[335,363],{"type":13,"tag":336,"props":337,"children":339},"validity-field",{"name":338},"VUID-vkSetEvent-event-03941",[340],{"type":13,"tag":14,"props":341,"children":342},{},[343,348,350,355,357],{"type":13,"tag":34,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":92},{"type":18,"value":349}," ",{"type":13,"tag":351,"props":352,"children":354},"normative",{"type":353},"must",[],{"type":18,"value":356}," not have been created with\n",{"type":13,"tag":34,"props":358,"children":360},{"className":359},[],[361],{"type":18,"value":362},"VK_EVENT_CREATE_DEVICE_ONLY_BIT",{"type":13,"tag":336,"props":364,"children":366},{"name":365},"VUID-vkSetEvent-event-09543",[367],{"type":13,"tag":14,"props":368,"children":369},{},[370,375,376,379,381],{"type":13,"tag":34,"props":371,"children":373},{"className":372},[],[374],{"type":18,"value":92},{"type":18,"value":349},{"type":13,"tag":351,"props":377,"children":378},{"type":353},[],{"type":18,"value":380}," not be waited on by a command buffer in the\n",{"type":13,"tag":274,"props":382,"children":384},{"href":383},"/chapters/commandbuffers#commandbuffers-lifecycle",[385],{"type":18,"value":386},"pending state",{"type":13,"tag":331,"props":388,"children":390},{"name":389},"Valid Usage (Implicit)",[391,417,441],{"type":13,"tag":336,"props":392,"children":394},{"name":393},"VUID-vkSetEvent-device-parameter",[395],{"type":13,"tag":14,"props":396,"children":397},{},[398,403,404,407,409,415],{"type":13,"tag":34,"props":399,"children":401},{"className":400},[],[402],{"type":18,"value":73},{"type":18,"value":349},{"type":13,"tag":351,"props":405,"children":406},{"type":353},[],{"type":18,"value":408}," be a valid ",{"type":13,"tag":274,"props":410,"children":412},{"href":411},"/man/VkDevice",[413],{"type":18,"value":414},"VkDevice",{"type":18,"value":416}," handle",{"type":13,"tag":336,"props":418,"children":420},{"name":419},"VUID-vkSetEvent-event-parameter",[421],{"type":13,"tag":14,"props":422,"children":423},{},[424,429,430,433,434,440],{"type":13,"tag":34,"props":425,"children":427},{"className":426},[],[428],{"type":18,"value":92},{"type":18,"value":349},{"type":13,"tag":351,"props":431,"children":432},{"type":353},[],{"type":18,"value":408},{"type":13,"tag":274,"props":435,"children":437},{"href":436},"/man/VkEvent",[438],{"type":18,"value":439},"VkEvent",{"type":18,"value":416},{"type":13,"tag":336,"props":442,"children":444},{"name":443},"VUID-vkSetEvent-event-parent",[445],{"type":13,"tag":14,"props":446,"children":447},{},[448,453,454,457,459],{"type":13,"tag":34,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":92},{"type":18,"value":349},{"type":13,"tag":351,"props":455,"children":456},{"type":353},[],{"type":18,"value":458}," have been created, allocated, or retrieved from ",{"type":13,"tag":34,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":73},{"type":13,"tag":465,"props":466,"children":468},"validity-box",{"name":467},"Host Synchronization",[469],{"type":13,"tag":244,"props":470,"children":471},{},[472],{"type":13,"tag":248,"props":473,"children":474},{},[475,477,482,483,486],{"type":18,"value":476},"Host access to ",{"type":13,"tag":34,"props":478,"children":480},{"className":479},[],[481],{"type":18,"value":92},{"type":18,"value":349},{"type":13,"tag":351,"props":484,"children":485},{"type":353},[],{"type":18,"value":487}," be externally synchronized\n::",{"type":13,"tag":489,"props":490,"children":491},"style",{},[492],{"type":18,"value":493},"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":31,"searchDepth":61,"depth":61,"links":495},[],"markdown",1725732623507]