[{"data":1,"prerenderedAt":533},["ShallowReactive",2],{"hAmE4dLHBn":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":532,"_id":4},"PFN_vkDebugUtilsMessengerCallbackEXT","Application-defined debug messenger callback function","VK_EXT_debug_utils","funcpointers",[],{"type":10,"children":11,"toc":530},"root",[12,38,386,467,503,524],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,36],{"type":18,"value":19},"text","The prototype for the\n",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkDebugUtilsMessengerCreateInfoEXT",[25],{"type":18,"value":26},"VkDebugUtilsMessengerCreateInfoEXT",{"type":18,"value":28},"::",{"type":13,"tag":30,"props":31,"children":33},"code",{"className":32},[],[34],{"type":18,"value":35},"pfnUserCallback",{"type":18,"value":37}," function\nimplemented by the application is:",{"type":13,"tag":39,"props":40,"children":41},"code-group",{},[42,148],{"type":13,"tag":43,"props":44,"children":50},"pre",{"className":45,"code":46,"filename":47,"language":48,"meta":49,"style":49},"language-c shiki shiki-themes github-light-default github-dark-default","typedef VkBool32 (VKAPI_PTR *PFN_vkDebugUtilsMessengerCallbackEXT)(\n VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,\n VkDebugUtilsMessageTypeFlagsEXT messageTypes,\n const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,\n void* pUserData);\n","C","c","",[51],{"type":13,"tag":30,"props":52,"children":53},{"__ignoreMap":49},[54,93,102,111,134],{"type":13,"tag":55,"props":56,"children":59},"span",{"class":57,"line":58},"line",1,[60,66,72,78,83,88],{"type":13,"tag":55,"props":61,"children":63},{"style":62},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[64],{"type":18,"value":65},"typedef",{"type":13,"tag":55,"props":67,"children":69},{"style":68},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[70],{"type":18,"value":71}," VkBool32",{"type":13,"tag":55,"props":73,"children":75},{"style":74},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[76],{"type":18,"value":77}," (VKAPI_PTR ",{"type":13,"tag":55,"props":79,"children":80},{"style":62},[81],{"type":18,"value":82},"*",{"type":13,"tag":55,"props":84,"children":86},{"style":85},"--shiki-default:#953800;--shiki-dark:#FFA657",[87],{"type":18,"value":4},{"type":13,"tag":55,"props":89,"children":90},{"style":74},[91],{"type":18,"value":92},")(\n",{"type":13,"tag":55,"props":94,"children":96},{"class":57,"line":95},2,[97],{"type":13,"tag":55,"props":98,"children":99},{"style":74},[100],{"type":18,"value":101}," VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,\n",{"type":13,"tag":55,"props":103,"children":105},{"class":57,"line":104},3,[106],{"type":13,"tag":55,"props":107,"children":108},{"style":74},[109],{"type":18,"value":110}," VkDebugUtilsMessageTypeFlagsEXT messageTypes,\n",{"type":13,"tag":55,"props":112,"children":114},{"class":57,"line":113},4,[115,120,125,129],{"type":13,"tag":55,"props":116,"children":117},{"style":62},[118],{"type":18,"value":119}," const",{"type":13,"tag":55,"props":121,"children":122},{"style":74},[123],{"type":18,"value":124}," VkDebugUtilsMessengerCallbackDataEXT",{"type":13,"tag":55,"props":126,"children":127},{"style":62},[128],{"type":18,"value":82},{"type":13,"tag":55,"props":130,"children":131},{"style":74},[132],{"type":18,"value":133}," pCallbackData,\n",{"type":13,"tag":55,"props":135,"children":137},{"class":57,"line":136},5,[138,143],{"type":13,"tag":55,"props":139,"children":140},{"style":62},[141],{"type":18,"value":142}," void*",{"type":13,"tag":55,"props":144,"children":145},{"style":74},[146],{"type":18,"value":147}," pUserData);\n",{"type":13,"tag":43,"props":149,"children":154},{"className":150,"code":151,"filename":152,"language":153,"meta":49,"style":49},"language-rs shiki shiki-themes github-light-default github-dark-default","pub type PFN_vkDebugUtilsMessengerCallbackEXT = Option\u003C\n unsafe extern \"system\" fn(\n message_severity: vk::DebugUtilsMessageSeverityFlagBitsEXT,\n message_types: vk::DebugUtilsMessageTypeFlagsEXT,\n p_callback_data: const VkDebugUtilsMessengerCallbackDataEXT*,\n p_user_data: *mut std::ffi::c_void,\n ) -> vk::Bool32\n>;\n","Rust","rs",[155],{"type":13,"tag":30,"props":156,"children":157},{"__ignoreMap":49},[158,191,219,251,280,309,350,377],{"type":13,"tag":55,"props":159,"children":160},{"class":57,"line":58},[161,166,171,176,181,186],{"type":13,"tag":55,"props":162,"children":163},{"style":62},[164],{"type":18,"value":165},"pub",{"type":13,"tag":55,"props":167,"children":168},{"style":62},[169],{"type":18,"value":170}," type",{"type":13,"tag":55,"props":172,"children":173},{"style":85},[174],{"type":18,"value":175}," PFN_vkDebugUtilsMessengerCallbackEXT",{"type":13,"tag":55,"props":177,"children":178},{"style":62},[179],{"type":18,"value":180}," =",{"type":13,"tag":55,"props":182,"children":183},{"style":85},[184],{"type":18,"value":185}," Option",{"type":13,"tag":55,"props":187,"children":188},{"style":74},[189],{"type":18,"value":190},"\u003C\n",{"type":13,"tag":55,"props":192,"children":193},{"class":57,"line":95},[194,199,204,209,214],{"type":13,"tag":55,"props":195,"children":196},{"style":62},[197],{"type":18,"value":198}," unsafe",{"type":13,"tag":55,"props":200,"children":201},{"style":62},[202],{"type":18,"value":203}," extern",{"type":13,"tag":55,"props":205,"children":206},{"style":74},[207],{"type":18,"value":208}," \"system\" ",{"type":13,"tag":55,"props":210,"children":211},{"style":62},[212],{"type":18,"value":213},"fn",{"type":13,"tag":55,"props":215,"children":216},{"style":74},[217],{"type":18,"value":218},"(\n",{"type":13,"tag":55,"props":220,"children":221},{"class":57,"line":104},[222,227,232,237,241,246],{"type":13,"tag":55,"props":223,"children":224},{"style":74},[225],{"type":18,"value":226}," message_severity",{"type":13,"tag":55,"props":228,"children":229},{"style":62},[230],{"type":18,"value":231},":",{"type":13,"tag":55,"props":233,"children":234},{"style":74},[235],{"type":18,"value":236}," vk",{"type":13,"tag":55,"props":238,"children":239},{"style":62},[240],{"type":18,"value":28},{"type":13,"tag":55,"props":242,"children":243},{"style":85},[244],{"type":18,"value":245},"DebugUtilsMessageSeverityFlagBitsEXT",{"type":13,"tag":55,"props":247,"children":248},{"style":74},[249],{"type":18,"value":250},",\n",{"type":13,"tag":55,"props":252,"children":253},{"class":57,"line":113},[254,259,263,267,271,276],{"type":13,"tag":55,"props":255,"children":256},{"style":74},[257],{"type":18,"value":258}," message_types",{"type":13,"tag":55,"props":260,"children":261},{"style":62},[262],{"type":18,"value":231},{"type":13,"tag":55,"props":264,"children":265},{"style":74},[266],{"type":18,"value":236},{"type":13,"tag":55,"props":268,"children":269},{"style":62},[270],{"type":18,"value":28},{"type":13,"tag":55,"props":272,"children":273},{"style":85},[274],{"type":18,"value":275},"DebugUtilsMessageTypeFlagsEXT",{"type":13,"tag":55,"props":277,"children":278},{"style":74},[279],{"type":18,"value":250},{"type":13,"tag":55,"props":281,"children":282},{"class":57,"line":136},[283,288,292,297,301,305],{"type":13,"tag":55,"props":284,"children":285},{"style":74},[286],{"type":18,"value":287}," p_callback_data",{"type":13,"tag":55,"props":289,"children":290},{"style":62},[291],{"type":18,"value":231},{"type":13,"tag":55,"props":293,"children":294},{"style":62},[295],{"type":18,"value":296}," const",{"type":13,"tag":55,"props":298,"children":299},{"style":85},[300],{"type":18,"value":124},{"type":13,"tag":55,"props":302,"children":303},{"style":62},[304],{"type":18,"value":82},{"type":13,"tag":55,"props":306,"children":307},{"style":74},[308],{"type":18,"value":250},{"type":13,"tag":55,"props":310,"children":312},{"class":57,"line":311},6,[313,318,322,327,332,336,341,345],{"type":13,"tag":55,"props":314,"children":315},{"style":74},[316],{"type":18,"value":317}," p_user_data",{"type":13,"tag":55,"props":319,"children":320},{"style":62},[321],{"type":18,"value":231},{"type":13,"tag":55,"props":323,"children":324},{"style":62},[325],{"type":18,"value":326}," *mut",{"type":13,"tag":55,"props":328,"children":329},{"style":74},[330],{"type":18,"value":331}," std",{"type":13,"tag":55,"props":333,"children":334},{"style":62},[335],{"type":18,"value":28},{"type":13,"tag":55,"props":337,"children":338},{"style":74},[339],{"type":18,"value":340},"ffi",{"type":13,"tag":55,"props":342,"children":343},{"style":62},[344],{"type":18,"value":28},{"type":13,"tag":55,"props":346,"children":347},{"style":74},[348],{"type":18,"value":349},"c_void,\n",{"type":13,"tag":55,"props":351,"children":353},{"class":57,"line":352},7,[354,359,364,368,372],{"type":13,"tag":55,"props":355,"children":356},{"style":74},[357],{"type":18,"value":358}," ) ",{"type":13,"tag":55,"props":360,"children":361},{"style":62},[362],{"type":18,"value":363},"->",{"type":13,"tag":55,"props":365,"children":366},{"style":74},[367],{"type":18,"value":236},{"type":13,"tag":55,"props":369,"children":370},{"style":62},[371],{"type":18,"value":28},{"type":13,"tag":55,"props":373,"children":374},{"style":85},[375],{"type":18,"value":376},"Bool32\n",{"type":13,"tag":55,"props":378,"children":380},{"class":57,"line":379},8,[381],{"type":13,"tag":55,"props":382,"children":383},{"style":74},[384],{"type":18,"value":385},">;\n",{"type":13,"tag":387,"props":388,"children":389},"ul",{},[390,410,429,448],{"type":13,"tag":391,"props":392,"children":393},"li",{},[394,400,402,408],{"type":13,"tag":30,"props":395,"children":397},{"className":396},[],[398],{"type":18,"value":399},"messageSeverity",{"type":18,"value":401}," specifies the\n",{"type":13,"tag":21,"props":403,"children":405},{"href":404},"/man/VkDebugUtilsMessageSeverityFlagBitsEXT",[406],{"type":18,"value":407},"VkDebugUtilsMessageSeverityFlagBitsEXT",{"type":18,"value":409}," that triggered this\ncallback.",{"type":13,"tag":391,"props":411,"children":412},{},[413,419,421,427],{"type":13,"tag":30,"props":414,"children":416},{"className":415},[],[417],{"type":18,"value":418},"messageTypes",{"type":18,"value":420}," is a bitmask of\n",{"type":13,"tag":21,"props":422,"children":424},{"href":423},"/man/VkDebugUtilsMessageTypeFlagBitsEXT",[425],{"type":18,"value":426},"VkDebugUtilsMessageTypeFlagBitsEXT",{"type":18,"value":428}," specifying which type of\nevent(s) triggered this callback.",{"type":13,"tag":391,"props":430,"children":431},{},[432,438,440,446],{"type":13,"tag":30,"props":433,"children":435},{"className":434},[],[436],{"type":18,"value":437},"pCallbackData",{"type":18,"value":439}," contains all the callback related data in the\n",{"type":13,"tag":21,"props":441,"children":443},{"href":442},"/man/VkDebugUtilsMessengerCallbackDataEXT",[444],{"type":18,"value":445},"VkDebugUtilsMessengerCallbackDataEXT",{"type":18,"value":447}," structure.",{"type":13,"tag":391,"props":449,"children":450},{},[451,457,459,465],{"type":13,"tag":30,"props":452,"children":454},{"className":453},[],[455],{"type":18,"value":456},"pUserData",{"type":18,"value":458}," is the user data provided when the\n",{"type":13,"tag":21,"props":460,"children":462},{"href":461},"/man/VkDebugUtilsMessengerEXT",[463],{"type":18,"value":464},"VkDebugUtilsMessengerEXT",{"type":18,"value":466}," was created.",{"type":13,"tag":14,"props":468,"children":469},{},[470,472,478,480,485,487,493,495,501],{"type":18,"value":471},"The callback returns a ",{"type":13,"tag":21,"props":473,"children":475},{"href":474},"/man/VkBool32",[476],{"type":18,"value":477},"VkBool32",{"type":18,"value":479},", which is interpreted in a\nlayer-specified manner.\nThe application ",{"type":13,"tag":481,"props":482,"children":484},"normative",{"type":483},"should",[],{"type":18,"value":486}," always return ",{"type":13,"tag":30,"props":488,"children":490},{"className":489},[],[491],{"type":18,"value":492},"VK_FALSE",{"type":18,"value":494},".\nThe ",{"type":13,"tag":30,"props":496,"children":498},{"className":497},[],[499],{"type":18,"value":500},"VK_TRUE",{"type":18,"value":502}," value is reserved for use in layer development.",{"type":13,"tag":504,"props":505,"children":507},"validity-group",{"name":506},"Valid Usage",[508],{"type":13,"tag":509,"props":510,"children":512},"validity-field",{"name":511},"VUID-PFN\\_vkDebugUtilsMessengerCallbackEXT-None-04769",[513],{"type":13,"tag":14,"props":514,"children":515},{},[516,518,522],{"type":18,"value":517},"The callback ",{"type":13,"tag":481,"props":519,"children":521},{"type":520},"must",[],{"type":18,"value":523}," not make calls to any Vulkan commands",{"type":13,"tag":525,"props":526,"children":527},"style",{},[528],{"type":18,"value":529},"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":49,"searchDepth":95,"depth":95,"links":531},[],"markdown",1725732532714]