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