[{"data":1,"prerenderedAt":578},["ShallowReactive",2],{"iV4LlXSPNq":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":577,"_id":4},"vkRegisterDeviceEventEXT","Signal a fence when a device event occurs","VK_EXT_display_control","protos",[],{"type":10,"children":11,"toc":575},"root",[12,20,373,445,569],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To create a fence that will be signaled when an event occurs on a device,\ncall:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,157],{"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 vkRegisterDeviceEventEXT(\n VkDevice device,\n const VkDeviceEventInfoEXT* pDeviceEventInfo,\n const VkAllocationCallbacks* pAllocator,\n VkFence* pFence);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,108,134],{"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,89,94,99,104],{"type":13,"tag":38,"props":84,"children":86},{"style":85},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[87],{"type":18,"value":88}," const",{"type":13,"tag":38,"props":90,"children":91},{"style":45},[92],{"type":18,"value":93}," VkDeviceEventInfoEXT",{"type":13,"tag":38,"props":95,"children":96},{"style":85},[97],{"type":18,"value":98},"*",{"type":13,"tag":38,"props":100,"children":101},{"style":70},[102],{"type":18,"value":103}," pDeviceEventInfo",{"type":13,"tag":38,"props":105,"children":106},{"style":45},[107],{"type":18,"value":78},{"type":13,"tag":38,"props":109,"children":111},{"class":40,"line":110},4,[112,116,121,125,130],{"type":13,"tag":38,"props":113,"children":114},{"style":85},[115],{"type":18,"value":88},{"type":13,"tag":38,"props":117,"children":118},{"style":45},[119],{"type":18,"value":120}," VkAllocationCallbacks",{"type":13,"tag":38,"props":122,"children":123},{"style":85},[124],{"type":18,"value":98},{"type":13,"tag":38,"props":126,"children":127},{"style":70},[128],{"type":18,"value":129}," pAllocator",{"type":13,"tag":38,"props":131,"children":132},{"style":45},[133],{"type":18,"value":78},{"type":13,"tag":38,"props":135,"children":137},{"class":40,"line":136},5,[138,143,147,152],{"type":13,"tag":38,"props":139,"children":140},{"style":45},[141],{"type":18,"value":142}," VkFence",{"type":13,"tag":38,"props":144,"children":145},{"style":85},[146],{"type":18,"value":98},{"type":13,"tag":38,"props":148,"children":149},{"style":70},[150],{"type":18,"value":151}," pFence",{"type":13,"tag":38,"props":153,"children":154},{"style":45},[155],{"type":18,"value":156},");\n",{"type":13,"tag":25,"props":158,"children":163},{"className":159,"code":160,"filename":161,"language":162,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn register_device_event_ext(\n device: crate :: vk :: vk::Device,\n p_device_event_info: *const vk::DeviceEventInfoEXT,\n p_allocator: *const vk::AllocationCallbacks,\n p_fence: *mut vk::Fence,\n) -> vk::Result;\n","Rust","rs",[164],{"type":13,"tag":34,"props":165,"children":166},{"__ignoreMap":31},[167,189,240,274,307,341],{"type":13,"tag":38,"props":168,"children":169},{"class":40,"line":41},[170,175,180,185],{"type":13,"tag":38,"props":171,"children":172},{"style":85},[173],{"type":18,"value":174},"pub",{"type":13,"tag":38,"props":176,"children":177},{"style":85},[178],{"type":18,"value":179}," fn",{"type":13,"tag":38,"props":181,"children":182},{"style":51},[183],{"type":18,"value":184}," register_device_event_ext",{"type":13,"tag":38,"props":186,"children":187},{"style":45},[188],{"type":18,"value":58},{"type":13,"tag":38,"props":190,"children":191},{"class":40,"line":61},[192,197,202,207,212,217,222,227,231,236],{"type":13,"tag":38,"props":193,"children":194},{"style":45},[195],{"type":18,"value":196}," device",{"type":13,"tag":38,"props":198,"children":199},{"style":85},[200],{"type":18,"value":201},":",{"type":13,"tag":38,"props":203,"children":204},{"style":85},[205],{"type":18,"value":206}," crate",{"type":13,"tag":38,"props":208,"children":209},{"style":85},[210],{"type":18,"value":211}," ::",{"type":13,"tag":38,"props":213,"children":214},{"style":45},[215],{"type":18,"value":216}," vk ",{"type":13,"tag":38,"props":218,"children":219},{"style":85},[220],{"type":18,"value":221},"::",{"type":13,"tag":38,"props":223,"children":224},{"style":70},[225],{"type":18,"value":226}," vk",{"type":13,"tag":38,"props":228,"children":229},{"style":85},[230],{"type":18,"value":221},{"type":13,"tag":38,"props":232,"children":233},{"style":70},[234],{"type":18,"value":235},"Device",{"type":13,"tag":38,"props":237,"children":238},{"style":45},[239],{"type":18,"value":78},{"type":13,"tag":38,"props":241,"children":242},{"class":40,"line":81},[243,248,252,257,261,265,270],{"type":13,"tag":38,"props":244,"children":245},{"style":45},[246],{"type":18,"value":247}," p_device_event_info",{"type":13,"tag":38,"props":249,"children":250},{"style":85},[251],{"type":18,"value":201},{"type":13,"tag":38,"props":253,"children":254},{"style":85},[255],{"type":18,"value":256}," *const",{"type":13,"tag":38,"props":258,"children":259},{"style":70},[260],{"type":18,"value":226},{"type":13,"tag":38,"props":262,"children":263},{"style":85},[264],{"type":18,"value":221},{"type":13,"tag":38,"props":266,"children":267},{"style":70},[268],{"type":18,"value":269},"DeviceEventInfoEXT",{"type":13,"tag":38,"props":271,"children":272},{"style":45},[273],{"type":18,"value":78},{"type":13,"tag":38,"props":275,"children":276},{"class":40,"line":110},[277,282,286,290,294,298,303],{"type":13,"tag":38,"props":278,"children":279},{"style":45},[280],{"type":18,"value":281}," p_allocator",{"type":13,"tag":38,"props":283,"children":284},{"style":85},[285],{"type":18,"value":201},{"type":13,"tag":38,"props":287,"children":288},{"style":85},[289],{"type":18,"value":256},{"type":13,"tag":38,"props":291,"children":292},{"style":70},[293],{"type":18,"value":226},{"type":13,"tag":38,"props":295,"children":296},{"style":85},[297],{"type":18,"value":221},{"type":13,"tag":38,"props":299,"children":300},{"style":70},[301],{"type":18,"value":302},"AllocationCallbacks",{"type":13,"tag":38,"props":304,"children":305},{"style":45},[306],{"type":18,"value":78},{"type":13,"tag":38,"props":308,"children":309},{"class":40,"line":136},[310,315,319,324,328,332,337],{"type":13,"tag":38,"props":311,"children":312},{"style":45},[313],{"type":18,"value":314}," p_fence",{"type":13,"tag":38,"props":316,"children":317},{"style":85},[318],{"type":18,"value":201},{"type":13,"tag":38,"props":320,"children":321},{"style":85},[322],{"type":18,"value":323}," *mut",{"type":13,"tag":38,"props":325,"children":326},{"style":70},[327],{"type":18,"value":226},{"type":13,"tag":38,"props":329,"children":330},{"style":85},[331],{"type":18,"value":221},{"type":13,"tag":38,"props":333,"children":334},{"style":70},[335],{"type":18,"value":336},"Fence",{"type":13,"tag":38,"props":338,"children":339},{"style":45},[340],{"type":18,"value":78},{"type":13,"tag":38,"props":342,"children":344},{"class":40,"line":343},6,[345,350,355,359,363,368],{"type":13,"tag":38,"props":346,"children":347},{"style":45},[348],{"type":18,"value":349},") ",{"type":13,"tag":38,"props":351,"children":352},{"style":85},[353],{"type":18,"value":354},"->",{"type":13,"tag":38,"props":356,"children":357},{"style":70},[358],{"type":18,"value":226},{"type":13,"tag":38,"props":360,"children":361},{"style":85},[362],{"type":18,"value":221},{"type":13,"tag":38,"props":364,"children":365},{"style":70},[366],{"type":18,"value":367},"Result",{"type":13,"tag":38,"props":369,"children":370},{"style":45},[371],{"type":18,"value":372},";\n",{"type":13,"tag":374,"props":375,"children":376},"ul",{},[377,395,415,434],{"type":13,"tag":378,"props":379,"children":380},"li",{},[381,386,388,393],{"type":13,"tag":34,"props":382,"children":384},{"className":383},[],[385],{"type":18,"value":73},{"type":18,"value":387}," is a logical device on which the event ",{"type":13,"tag":389,"props":390,"children":392},"normative",{"type":391},"may",[],{"type":18,"value":394}," occur.",{"type":13,"tag":378,"props":396,"children":397},{},[398,404,406,413],{"type":13,"tag":34,"props":399,"children":401},{"className":400},[],[402],{"type":18,"value":403},"pDeviceEventInfo",{"type":18,"value":405}," is a pointer to a ",{"type":13,"tag":407,"props":408,"children":410},"a",{"href":409},"/man/VkDeviceEventInfoEXT",[411],{"type":18,"value":412},"VkDeviceEventInfoEXT",{"type":18,"value":414},"\nstructure describing the event of interest to the application.",{"type":13,"tag":378,"props":416,"children":417},{},[418,424,426,432],{"type":13,"tag":34,"props":419,"children":421},{"className":420},[],[422],{"type":18,"value":423},"pAllocator",{"type":18,"value":425}," controls host memory allocation as described in the\n",{"type":13,"tag":407,"props":427,"children":429},{"href":428},"/chapters/memory#memory-allocation",[430],{"type":18,"value":431},"Memory Allocation",{"type":18,"value":433}," chapter.",{"type":13,"tag":378,"props":435,"children":436},{},[437,443],{"type":13,"tag":34,"props":438,"children":440},{"className":439},[],[441],{"type":18,"value":442},"pFence",{"type":18,"value":444}," is a pointer to a handle in which the resulting fence\nobject is returned.",{"type":13,"tag":446,"props":447,"children":449},"validity-group",{"name":448},"Valid Usage (Implicit)",[450,479,503,544],{"type":13,"tag":451,"props":452,"children":454},"validity-field",{"name":453},"VUID-vkRegisterDeviceEventEXT-device-parameter",[455],{"type":13,"tag":14,"props":456,"children":457},{},[458,463,465,469,471,477],{"type":13,"tag":34,"props":459,"children":461},{"className":460},[],[462],{"type":18,"value":73},{"type":18,"value":464}," ",{"type":13,"tag":389,"props":466,"children":468},{"type":467},"must",[],{"type":18,"value":470}," be a valid ",{"type":13,"tag":407,"props":472,"children":474},{"href":473},"/man/VkDevice",[475],{"type":18,"value":476},"VkDevice",{"type":18,"value":478}," handle",{"type":13,"tag":451,"props":480,"children":482},{"name":481},"VUID-vkRegisterDeviceEventEXT-pDeviceEventInfo-parameter",[483],{"type":13,"tag":14,"props":484,"children":485},{},[486,491,492,495,497,501],{"type":13,"tag":34,"props":487,"children":489},{"className":488},[],[490],{"type":18,"value":403},{"type":18,"value":464},{"type":13,"tag":389,"props":493,"children":494},{"type":467},[],{"type":18,"value":496}," be a valid pointer to a valid ",{"type":13,"tag":407,"props":498,"children":499},{"href":409},[500],{"type":18,"value":412},{"type":18,"value":502}," structure",{"type":13,"tag":451,"props":504,"children":506},{"name":505},"VUID-vkRegisterDeviceEventEXT-pAllocator-parameter",[507],{"type":13,"tag":14,"props":508,"children":509},{},[510,512,517,519,525,527,532,533,536,537,543],{"type":18,"value":511},"If ",{"type":13,"tag":34,"props":513,"children":515},{"className":514},[],[516],{"type":18,"value":423},{"type":18,"value":518}," is not ",{"type":13,"tag":34,"props":520,"children":522},{"className":521},[],[523],{"type":18,"value":524},"NULL",{"type":18,"value":526},", ",{"type":13,"tag":34,"props":528,"children":530},{"className":529},[],[531],{"type":18,"value":423},{"type":18,"value":464},{"type":13,"tag":389,"props":534,"children":535},{"type":467},[],{"type":18,"value":496},{"type":13,"tag":407,"props":538,"children":540},{"href":539},"/man/VkAllocationCallbacks",[541],{"type":18,"value":542},"VkAllocationCallbacks",{"type":18,"value":502},{"type":13,"tag":451,"props":545,"children":547},{"name":546},"VUID-vkRegisterDeviceEventEXT-pFence-parameter",[548],{"type":13,"tag":14,"props":549,"children":550},{},[551,556,557,560,562,568],{"type":13,"tag":34,"props":552,"children":554},{"className":553},[],[555],{"type":18,"value":442},{"type":18,"value":464},{"type":13,"tag":389,"props":558,"children":559},{"type":467},[],{"type":18,"value":561}," be a valid pointer to a ",{"type":13,"tag":407,"props":563,"children":565},{"href":564},"/man/VkFence",[566],{"type":18,"value":567},"VkFence",{"type":18,"value":478},{"type":13,"tag":570,"props":571,"children":572},"style",{},[573],{"type":18,"value":574},"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":576},[],"markdown",1729612520124]