[{"data":1,"prerenderedAt":423},["ShallowReactive",2],{"NYD56UnKxb":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":10,"_type":422,"_id":4},"PFN_vkFreeFunction","Application-defined memory free function","VK_VERSION_1_0","funcpointers",[9],"VkAllocationCallbacks",{"type":11,"children":12,"toc":420},"root",[13,30,301,342,414],{"type":14,"tag":15,"props":16,"children":17},"element","p",{},[18,21,28],{"type":19,"value":20},"text","The type of ",{"type":14,"tag":22,"props":23,"children":25},"code",{"className":24},[],[26],{"type":19,"value":27},"pfnFree",{"type":19,"value":29}," is:",{"type":14,"tag":31,"props":32,"children":33},"code-group",{},[34,106],{"type":14,"tag":35,"props":36,"children":42},"pre",{"className":37,"code":38,"filename":39,"language":40,"meta":41,"style":41},"language-c shiki shiki-themes github-light-default github-dark-default","typedef void (VKAPI_PTR *PFN_vkFreeFunction)(\n void* pUserData,\n void* pMemory);\n","C","c","",[43],{"type":14,"tag":22,"props":44,"children":45},{"__ignoreMap":41},[46,79,93],{"type":14,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,63,69,74],{"type":14,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[56],{"type":19,"value":57},"typedef",{"type":14,"tag":47,"props":59,"children":60},{"style":54},[61],{"type":19,"value":62}," void",{"type":14,"tag":47,"props":64,"children":66},{"style":65},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[67],{"type":19,"value":68}," (VKAPI_PTR ",{"type":14,"tag":47,"props":70,"children":71},{"style":54},[72],{"type":19,"value":73},"*",{"type":14,"tag":47,"props":75,"children":76},{"style":65},[77],{"type":19,"value":78},"PFN_vkFreeFunction)(\n",{"type":14,"tag":47,"props":80,"children":82},{"class":49,"line":81},2,[83,88],{"type":14,"tag":47,"props":84,"children":85},{"style":54},[86],{"type":19,"value":87}," void*",{"type":14,"tag":47,"props":89,"children":90},{"style":65},[91],{"type":19,"value":92}," pUserData,\n",{"type":14,"tag":47,"props":94,"children":96},{"class":49,"line":95},3,[97,101],{"type":14,"tag":47,"props":98,"children":99},{"style":54},[100],{"type":19,"value":87},{"type":14,"tag":47,"props":102,"children":103},{"style":65},[104],{"type":19,"value":105}," pMemory);\n",{"type":14,"tag":35,"props":107,"children":112},{"className":108,"code":109,"filename":110,"language":111,"meta":41,"style":41},"language-rs shiki shiki-themes github-light-default github-dark-default","pub type PFN_vkFreeFunction = Option\u003C\n unsafe extern \"system\" fn(\n p_user_data: *mut std::ffi::c_void,\n p_memory: *mut std::ffi::c_void,\n ) -> std::ffi::c_void\n>;\n","Rust","rs",[113],{"type":14,"tag":22,"props":114,"children":115},{"__ignoreMap":41},[116,150,178,220,257,292],{"type":14,"tag":47,"props":117,"children":118},{"class":49,"line":50},[119,124,129,135,140,145],{"type":14,"tag":47,"props":120,"children":121},{"style":54},[122],{"type":19,"value":123},"pub",{"type":14,"tag":47,"props":125,"children":126},{"style":54},[127],{"type":19,"value":128}," type",{"type":14,"tag":47,"props":130,"children":132},{"style":131},"--shiki-default:#953800;--shiki-dark:#FFA657",[133],{"type":19,"value":134}," PFN_vkFreeFunction",{"type":14,"tag":47,"props":136,"children":137},{"style":54},[138],{"type":19,"value":139}," =",{"type":14,"tag":47,"props":141,"children":142},{"style":131},[143],{"type":19,"value":144}," Option",{"type":14,"tag":47,"props":146,"children":147},{"style":65},[148],{"type":19,"value":149},"\u003C\n",{"type":14,"tag":47,"props":151,"children":152},{"class":49,"line":81},[153,158,163,168,173],{"type":14,"tag":47,"props":154,"children":155},{"style":54},[156],{"type":19,"value":157}," unsafe",{"type":14,"tag":47,"props":159,"children":160},{"style":54},[161],{"type":19,"value":162}," extern",{"type":14,"tag":47,"props":164,"children":165},{"style":65},[166],{"type":19,"value":167}," \"system\" ",{"type":14,"tag":47,"props":169,"children":170},{"style":54},[171],{"type":19,"value":172},"fn",{"type":14,"tag":47,"props":174,"children":175},{"style":65},[176],{"type":19,"value":177},"(\n",{"type":14,"tag":47,"props":179,"children":180},{"class":49,"line":95},[181,186,191,196,201,206,211,215],{"type":14,"tag":47,"props":182,"children":183},{"style":65},[184],{"type":19,"value":185}," p_user_data",{"type":14,"tag":47,"props":187,"children":188},{"style":54},[189],{"type":19,"value":190},":",{"type":14,"tag":47,"props":192,"children":193},{"style":54},[194],{"type":19,"value":195}," *mut",{"type":14,"tag":47,"props":197,"children":198},{"style":65},[199],{"type":19,"value":200}," std",{"type":14,"tag":47,"props":202,"children":203},{"style":54},[204],{"type":19,"value":205},"::",{"type":14,"tag":47,"props":207,"children":208},{"style":65},[209],{"type":19,"value":210},"ffi",{"type":14,"tag":47,"props":212,"children":213},{"style":54},[214],{"type":19,"value":205},{"type":14,"tag":47,"props":216,"children":217},{"style":65},[218],{"type":19,"value":219},"c_void,\n",{"type":14,"tag":47,"props":221,"children":223},{"class":49,"line":222},4,[224,229,233,237,241,245,249,253],{"type":14,"tag":47,"props":225,"children":226},{"style":65},[227],{"type":19,"value":228}," p_memory",{"type":14,"tag":47,"props":230,"children":231},{"style":54},[232],{"type":19,"value":190},{"type":14,"tag":47,"props":234,"children":235},{"style":54},[236],{"type":19,"value":195},{"type":14,"tag":47,"props":238,"children":239},{"style":65},[240],{"type":19,"value":200},{"type":14,"tag":47,"props":242,"children":243},{"style":54},[244],{"type":19,"value":205},{"type":14,"tag":47,"props":246,"children":247},{"style":65},[248],{"type":19,"value":210},{"type":14,"tag":47,"props":250,"children":251},{"style":54},[252],{"type":19,"value":205},{"type":14,"tag":47,"props":254,"children":255},{"style":65},[256],{"type":19,"value":219},{"type":14,"tag":47,"props":258,"children":260},{"class":49,"line":259},5,[261,266,271,275,279,283,287],{"type":14,"tag":47,"props":262,"children":263},{"style":65},[264],{"type":19,"value":265}," ) ",{"type":14,"tag":47,"props":267,"children":268},{"style":54},[269],{"type":19,"value":270},"->",{"type":14,"tag":47,"props":272,"children":273},{"style":65},[274],{"type":19,"value":200},{"type":14,"tag":47,"props":276,"children":277},{"style":54},[278],{"type":19,"value":205},{"type":14,"tag":47,"props":280,"children":281},{"style":65},[282],{"type":19,"value":210},{"type":14,"tag":47,"props":284,"children":285},{"style":54},[286],{"type":19,"value":205},{"type":14,"tag":47,"props":288,"children":289},{"style":65},[290],{"type":19,"value":291},"c_void\n",{"type":14,"tag":47,"props":293,"children":295},{"class":49,"line":294},6,[296],{"type":14,"tag":47,"props":297,"children":298},{"style":65},[299],{"type":19,"value":300},">;\n",{"type":14,"tag":302,"props":303,"children":304},"ul",{},[305,331],{"type":14,"tag":306,"props":307,"children":308},"li",{},[309,315,317,323,324,329],{"type":14,"tag":22,"props":310,"children":312},{"className":311},[],[313],{"type":19,"value":314},"pUserData",{"type":19,"value":316}," is the value specified for\n",{"type":14,"tag":318,"props":319,"children":321},"a",{"href":320},"/man/VkAllocationCallbacks",[322],{"type":19,"value":9},{"type":19,"value":205},{"type":14,"tag":22,"props":325,"children":327},{"className":326},[],[328],{"type":19,"value":314},{"type":19,"value":330}," in the allocator specified\nby the application.",{"type":14,"tag":306,"props":332,"children":333},{},[334,340],{"type":14,"tag":22,"props":335,"children":337},{"className":336},[],[338],{"type":19,"value":339},"pMemory",{"type":19,"value":341}," is the allocation to be freed.",{"type":14,"tag":15,"props":343,"children":344},{},[345,350,352,357,359,365,367,371,373,378,380,385,387,390,392,398,400,406,408,412],{"type":14,"tag":22,"props":346,"children":348},{"className":347},[],[349],{"type":19,"value":339},{"type":19,"value":351}," ",{"type":14,"tag":353,"props":354,"children":356},"normative",{"type":355},"may",[],{"type":19,"value":358}," be ",{"type":14,"tag":22,"props":360,"children":362},{"className":361},[],[363],{"type":19,"value":364},"NULL",{"type":19,"value":366},", which the callback ",{"type":14,"tag":353,"props":368,"children":370},{"type":369},"must",[],{"type":19,"value":372}," handle safely.\nIf ",{"type":14,"tag":22,"props":374,"children":376},{"className":375},[],[377],{"type":19,"value":339},{"type":19,"value":379}," is non-",{"type":14,"tag":22,"props":381,"children":383},{"className":382},[],[384],{"type":19,"value":364},{"type":19,"value":386},", it ",{"type":14,"tag":353,"props":388,"children":389},{"type":369},[],{"type":19,"value":391}," be a pointer previously allocated\nby ",{"type":14,"tag":22,"props":393,"children":395},{"className":394},[],[396],{"type":19,"value":397},"pfnAllocation",{"type":19,"value":399}," or ",{"type":14,"tag":22,"props":401,"children":403},{"className":402},[],[404],{"type":19,"value":405},"pfnReallocation",{"type":19,"value":407},".\nThe application ",{"type":14,"tag":353,"props":409,"children":411},{"type":410},"should",[],{"type":19,"value":413}," free this memory.",{"type":14,"tag":415,"props":416,"children":417},"style",{},[418],{"type":19,"value":419},"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":41,"searchDepth":81,"depth":81,"links":421},[],"markdown",1725732532802]