[{"data":1,"prerenderedAt":820},["ShallowReactive",2],{"Kh8PvzZFEt":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":10,"_type":819,"_id":4},"vkGetInstanceProcAddr","Return a function pointer for a command","VK_VERSION_1_0","protos",[9],"PFN_vkVoidFunction",{"type":11,"children":12,"toc":817},"root",[13,28,241,275,290,337,355,744,811],{"type":14,"tag":15,"props":16,"children":17},"element","p",{},[18,21,26],{"type":19,"value":20},"text","Function pointers for all Vulkan commands ",{"type":14,"tag":22,"props":23,"children":25},"normative",{"type":24},"can",[],{"type":19,"value":27}," be obtained by calling:",{"type":14,"tag":29,"props":30,"children":31},"code-group",{},[32,112],{"type":14,"tag":33,"props":34,"children":40},"pre",{"className":35,"code":36,"filename":37,"language":38,"meta":39,"style":39},"language-c shiki shiki-themes github-light-default github-dark-default","PFN_vkVoidFunction vkGetInstanceProcAddr(\n VkInstance instance,\n const char* pName);\n","C","c","",[41],{"type":14,"tag":42,"props":43,"children":44},"code",{"__ignoreMap":39},[45,67,87],{"type":14,"tag":46,"props":47,"children":50},"span",{"class":48,"line":49},"line",1,[51,57,62],{"type":14,"tag":46,"props":52,"children":54},{"style":53},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[55],{"type":19,"value":56},"PFN_vkVoidFunction ",{"type":14,"tag":46,"props":58,"children":60},{"style":59},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[61],{"type":19,"value":4},{"type":14,"tag":46,"props":63,"children":64},{"style":53},[65],{"type":19,"value":66},"(\n",{"type":14,"tag":46,"props":68,"children":70},{"class":48,"line":69},2,[71,76,82],{"type":14,"tag":46,"props":72,"children":73},{"style":53},[74],{"type":19,"value":75}," VkInstance ",{"type":14,"tag":46,"props":77,"children":79},{"style":78},"--shiki-default:#953800;--shiki-dark:#FFA657",[80],{"type":19,"value":81},"instance",{"type":14,"tag":46,"props":83,"children":84},{"style":53},[85],{"type":19,"value":86},",\n",{"type":14,"tag":46,"props":88,"children":90},{"class":48,"line":89},3,[91,97,102,107],{"type":14,"tag":46,"props":92,"children":94},{"style":93},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[95],{"type":19,"value":96}," const",{"type":14,"tag":46,"props":98,"children":99},{"style":93},[100],{"type":19,"value":101}," char*",{"type":14,"tag":46,"props":103,"children":104},{"style":78},[105],{"type":19,"value":106}," pName",{"type":14,"tag":46,"props":108,"children":109},{"style":53},[110],{"type":19,"value":111},");\n",{"type":14,"tag":33,"props":113,"children":118},{"className":114,"code":115,"filename":116,"language":117,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_instance_proc_addr(\n instance: crate :: vk :: vk::Instance,\n p_name: *const c_char,\n) -> PFN_vkVoidFunction;\n","Rust","rs",[119],{"type":14,"tag":42,"props":120,"children":121},{"__ignoreMap":39},[122,144,195,217],{"type":14,"tag":46,"props":123,"children":124},{"class":48,"line":49},[125,130,135,140],{"type":14,"tag":46,"props":126,"children":127},{"style":93},[128],{"type":19,"value":129},"pub",{"type":14,"tag":46,"props":131,"children":132},{"style":93},[133],{"type":19,"value":134}," fn",{"type":14,"tag":46,"props":136,"children":137},{"style":59},[138],{"type":19,"value":139}," get_instance_proc_addr",{"type":14,"tag":46,"props":141,"children":142},{"style":53},[143],{"type":19,"value":66},{"type":14,"tag":46,"props":145,"children":146},{"class":48,"line":69},[147,152,157,162,167,172,177,182,186,191],{"type":14,"tag":46,"props":148,"children":149},{"style":53},[150],{"type":19,"value":151}," instance",{"type":14,"tag":46,"props":153,"children":154},{"style":93},[155],{"type":19,"value":156},":",{"type":14,"tag":46,"props":158,"children":159},{"style":93},[160],{"type":19,"value":161}," crate",{"type":14,"tag":46,"props":163,"children":164},{"style":93},[165],{"type":19,"value":166}," ::",{"type":14,"tag":46,"props":168,"children":169},{"style":53},[170],{"type":19,"value":171}," vk ",{"type":14,"tag":46,"props":173,"children":174},{"style":93},[175],{"type":19,"value":176},"::",{"type":14,"tag":46,"props":178,"children":179},{"style":78},[180],{"type":19,"value":181}," vk",{"type":14,"tag":46,"props":183,"children":184},{"style":93},[185],{"type":19,"value":176},{"type":14,"tag":46,"props":187,"children":188},{"style":78},[189],{"type":19,"value":190},"Instance",{"type":14,"tag":46,"props":192,"children":193},{"style":53},[194],{"type":19,"value":86},{"type":14,"tag":46,"props":196,"children":197},{"class":48,"line":89},[198,203,207,212],{"type":14,"tag":46,"props":199,"children":200},{"style":53},[201],{"type":19,"value":202}," p_name",{"type":14,"tag":46,"props":204,"children":205},{"style":93},[206],{"type":19,"value":156},{"type":14,"tag":46,"props":208,"children":209},{"style":93},[210],{"type":19,"value":211}," *const",{"type":14,"tag":46,"props":213,"children":214},{"style":53},[215],{"type":19,"value":216}," c_char,\n",{"type":14,"tag":46,"props":218,"children":220},{"class":48,"line":219},4,[221,226,231,236],{"type":14,"tag":46,"props":222,"children":223},{"style":53},[224],{"type":19,"value":225},") ",{"type":14,"tag":46,"props":227,"children":228},{"style":93},[229],{"type":19,"value":230},"->",{"type":14,"tag":46,"props":232,"children":233},{"style":78},[234],{"type":19,"value":235}," PFN_vkVoidFunction",{"type":14,"tag":46,"props":237,"children":238},{"style":53},[239],{"type":19,"value":240},";\n",{"type":14,"tag":242,"props":243,"children":244},"ul",{},[245,264],{"type":14,"tag":246,"props":247,"children":248},"li",{},[249,254,256,262],{"type":14,"tag":42,"props":250,"children":252},{"className":251},[],[253],{"type":19,"value":81},{"type":19,"value":255}," is the instance that the function pointer will be\ncompatible with, or ",{"type":14,"tag":42,"props":257,"children":259},{"className":258},[],[260],{"type":19,"value":261},"NULL",{"type":19,"value":263}," for commands not dependent on any instance.",{"type":14,"tag":246,"props":265,"children":266},{},[267,273],{"type":14,"tag":42,"props":268,"children":270},{"className":269},[],[271],{"type":19,"value":272},"pName",{"type":19,"value":274}," is the name of the command to obtain.",{"type":14,"tag":15,"props":276,"children":277},{},[278,283,285,288],{"type":14,"tag":42,"props":279,"children":281},{"className":280},[],[282],{"type":19,"value":4},{"type":19,"value":284}," itself is obtained in a platform- and loader-\nspecific manner.\nTypically, the loader library will export this command as a function symbol,\nso applications ",{"type":14,"tag":22,"props":286,"children":287},{"type":24},[],{"type":19,"value":289}," link against the loader library, or load it dynamically\nand look up the symbol using platform-specific APIs.",{"type":14,"tag":15,"props":291,"children":292},{},[293,295,300,302,308,310,316,318,323,324,328,330,335],{"type":19,"value":294},"The table below defines the various use cases for\n",{"type":14,"tag":42,"props":296,"children":298},{"className":297},[],[299],{"type":19,"value":4},{"type":19,"value":301}," and expected return value (",{"type":14,"tag":42,"props":303,"children":305},{"className":304},[],[306],{"type":19,"value":307},"fp",{"type":19,"value":309}," is ",{"type":14,"tag":42,"props":311,"children":313},{"className":312},[],[314],{"type":19,"value":315},"function pointer",{"type":19,"value":317},") for each case.\nA valid returned function pointer (",{"type":14,"tag":42,"props":319,"children":321},{"className":320},[],[322],{"type":19,"value":307},{"type":19,"value":225},{"type":14,"tag":22,"props":325,"children":327},{"type":326},"must",[],{"type":19,"value":329}," not be ",{"type":14,"tag":42,"props":331,"children":333},{"className":332},[],[334],{"type":19,"value":261},{"type":19,"value":336},".",{"type":14,"tag":15,"props":338,"children":339},{},[340,342,348,350,353],{"type":19,"value":341},"The returned function pointer is of type ",{"type":14,"tag":343,"props":344,"children":346},"a",{"href":345},"/man/PFN_vkVoidFunction",[347],{"type":19,"value":9},{"type":19,"value":349},", and ",{"type":14,"tag":22,"props":351,"children":352},{"type":326},[],{"type":19,"value":354},"\nbe cast to the type of the command being queried before use.",{"type":14,"tag":356,"props":357,"children":363},"table",{"className":358,"style":362},[359,360,361],"tableblock","frame-all","grid-all","width: 80%;",[364,379,395,428],{"type":14,"tag":365,"props":366,"children":369},"caption",{"className":367},[368],"title",[370,372,377],{"type":19,"value":371},"Table 1. ",{"type":14,"tag":373,"props":374,"children":375},"literal",{},[376],{"type":19,"value":4},{"type":19,"value":378}," behavior",{"type":14,"tag":380,"props":381,"children":382},"colgroup",{},[383,388,391],{"type":14,"tag":384,"props":385,"children":387},"col",{"style":386},"width: 33.3333%;",[],{"type":14,"tag":384,"props":389,"children":390},{"style":386},[],{"type":14,"tag":384,"props":392,"children":394},{"style":393},"width: 33.3334%;",[],{"type":14,"tag":396,"props":397,"children":398},"thead",{},[399],{"type":14,"tag":400,"props":401,"children":402},"tr",{},[403,414,422],{"type":14,"tag":404,"props":405,"children":409},"th",{"className":406},[359,407,408],"halign-left","valign-top",[410],{"type":14,"tag":373,"props":411,"children":412},{},[413],{"type":19,"value":81},{"type":14,"tag":404,"props":415,"children":417},{"className":416},[359,407,408],[418],{"type":14,"tag":373,"props":419,"children":420},{},[421],{"type":19,"value":272},{"type":14,"tag":404,"props":423,"children":425},{"className":424},[359,407,408],[426],{"type":19,"value":427},"return value",{"type":14,"tag":429,"props":430,"children":431},"tbody",{},[432,474,515,558,593,634,673,719],{"type":14,"tag":400,"props":433,"children":434},{},[435,452,464],{"type":14,"tag":436,"props":437,"children":439},"td",{"className":438},[359,407,408],[440],{"type":14,"tag":15,"props":441,"children":443},{"className":442},[359],[444,446],{"type":19,"value":445},"*",{"type":14,"tag":447,"props":448,"children":449},"superscript",{},[450],{"type":19,"value":451},"1",{"type":14,"tag":436,"props":453,"children":455},{"className":454},[359,407,408],[456],{"type":14,"tag":15,"props":457,"children":459},{"className":458},[359],[460],{"type":14,"tag":373,"props":461,"children":462},{},[463],{"type":19,"value":261},{"type":14,"tag":436,"props":465,"children":467},{"className":466},[359,407,408],[468],{"type":14,"tag":15,"props":469,"children":471},{"className":470},[359],[472],{"type":19,"value":473},"undefined:",{"type":14,"tag":400,"props":475,"children":476},{},[477,493,506],{"type":14,"tag":436,"props":478,"children":480},{"className":479},[359,407,408],[481],{"type":14,"tag":15,"props":482,"children":484},{"className":483},[359],[485,487,491],{"type":19,"value":486},"invalid non-",{"type":14,"tag":373,"props":488,"children":489},{},[490],{"type":19,"value":261},{"type":19,"value":492}," instance",{"type":14,"tag":436,"props":494,"children":496},{"className":495},[359,407,408],[497],{"type":14,"tag":15,"props":498,"children":500},{"className":499},[359],[501,502],{"type":19,"value":445},{"type":14,"tag":447,"props":503,"children":504},{},[505],{"type":19,"value":451},{"type":14,"tag":436,"props":507,"children":509},{"className":508},[359,407,408],[510],{"type":14,"tag":15,"props":511,"children":513},{"className":512},[359],[514],{"type":19,"value":473},{"type":14,"tag":400,"props":516,"children":517},{},[518,530,549],{"type":14,"tag":436,"props":519,"children":521},{"className":520},[359,407,408],[522],{"type":14,"tag":15,"props":523,"children":525},{"className":524},[359],[526],{"type":14,"tag":373,"props":527,"children":528},{},[529],{"type":19,"value":261},{"type":14,"tag":436,"props":531,"children":533},{"className":532},[359,407,408],[534],{"type":14,"tag":15,"props":535,"children":537},{"className":536},[359],[538,544],{"type":14,"tag":539,"props":540,"children":541},"emphasis",{},[542],{"type":19,"value":543},"global command",{"type":14,"tag":447,"props":545,"children":546},{},[547],{"type":19,"value":548},"2",{"type":14,"tag":436,"props":550,"children":552},{"className":551},[359,407,408],[553],{"type":14,"tag":15,"props":554,"children":556},{"className":555},[359],[557],{"type":19,"value":307},{"type":14,"tag":400,"props":559,"children":560},{},[561,570,584],{"type":14,"tag":436,"props":562,"children":564},{"className":563},[359,407,408],[565],{"type":14,"tag":15,"props":566,"children":568},{"className":567},[359],[569],{"type":19,"value":81},{"type":14,"tag":436,"props":571,"children":573},{"className":572},[359,407,408],[574],{"type":14,"tag":15,"props":575,"children":577},{"className":576},[359],[578,583],{"type":14,"tag":579,"props":580,"children":582},"link",{"xl:href":581},"/man/vkGetInstanceProcAddr",[],{"type":19,"value":4},{"type":14,"tag":436,"props":585,"children":587},{"className":586},[359,407,408],[588],{"type":14,"tag":15,"props":589,"children":591},{"className":590},[359],[592],{"type":19,"value":307},{"type":14,"tag":400,"props":594,"children":595},{},[596,605,620],{"type":14,"tag":436,"props":597,"children":599},{"className":598},[359,407,408],[600],{"type":14,"tag":15,"props":601,"children":603},{"className":602},[359],[604],{"type":19,"value":81},{"type":14,"tag":436,"props":606,"children":608},{"className":607},[359,407,408],[609],{"type":14,"tag":15,"props":610,"children":612},{"className":611},[359],[613,615],{"type":19,"value":614},"core ",{"type":14,"tag":539,"props":616,"children":617},{},[618],{"type":19,"value":619},"dispatchable command",{"type":14,"tag":436,"props":621,"children":623},{"className":622},[359,407,408],[624],{"type":14,"tag":15,"props":625,"children":627},{"className":626},[359],[628,629],{"type":19,"value":307},{"type":14,"tag":447,"props":630,"children":631},{},[632],{"type":19,"value":633},"3",{"type":14,"tag":400,"props":635,"children":636},{},[637,646,660],{"type":14,"tag":436,"props":638,"children":640},{"className":639},[359,407,408],[641],{"type":14,"tag":15,"props":642,"children":644},{"className":643},[359],[645],{"type":19,"value":81},{"type":14,"tag":436,"props":647,"children":649},{"className":648},[359,407,408],[650],{"type":14,"tag":15,"props":651,"children":653},{"className":652},[359],[654,656],{"type":19,"value":655},"enabled instance extension dispatchable command for ",{"type":14,"tag":373,"props":657,"children":658},{},[659],{"type":19,"value":81},{"type":14,"tag":436,"props":661,"children":663},{"className":662},[359,407,408],[664],{"type":14,"tag":15,"props":665,"children":667},{"className":666},[359],[668,669],{"type":19,"value":307},{"type":14,"tag":447,"props":670,"children":671},{},[672],{"type":19,"value":633},{"type":14,"tag":400,"props":674,"children":675},{},[676,685,706],{"type":14,"tag":436,"props":677,"children":679},{"className":678},[359,407,408],[680],{"type":14,"tag":15,"props":681,"children":683},{"className":682},[359],[684],{"type":19,"value":81},{"type":14,"tag":436,"props":686,"children":688},{"className":687},[359,407,408],[689],{"type":14,"tag":15,"props":690,"children":692},{"className":691},[359],[693,695,700,702],{"type":19,"value":694},"available device extension",{"type":14,"tag":447,"props":696,"children":697},{},[698],{"type":19,"value":699},"4",{"type":19,"value":701}," dispatchable command for ",{"type":14,"tag":373,"props":703,"children":704},{},[705],{"type":19,"value":81},{"type":14,"tag":436,"props":707,"children":709},{"className":708},[359,407,408],[710],{"type":14,"tag":15,"props":711,"children":713},{"className":712},[359],[714,715],{"type":19,"value":307},{"type":14,"tag":447,"props":716,"children":717},{},[718],{"type":19,"value":633},{"type":14,"tag":400,"props":720,"children":721},{},[722,732],{"type":14,"tag":436,"props":723,"children":725},{"className":724,"colSpan":548},[359,407,408],[726],{"type":14,"tag":15,"props":727,"children":729},{"className":728},[359],[730],{"type":19,"value":731},"any other case, not covered above",{"type":14,"tag":436,"props":733,"children":735},{"className":734},[359,407,408],[736],{"type":14,"tag":15,"props":737,"children":739},{"className":738},[359],[740],{"type":14,"tag":373,"props":741,"children":742},{},[743],{"type":19,"value":261},{"type":14,"tag":745,"props":746,"children":748},"validity-group",{"name":747},"Valid Usage (Implicit)",[749,793],{"type":14,"tag":750,"props":751,"children":753},"validity-field",{"name":752},"VUID-vkGetInstanceProcAddr-instance-parameter",[754],{"type":14,"tag":15,"props":755,"children":756},{},[757,759,764,766,771,773,778,780,783,785,791],{"type":19,"value":758},"If ",{"type":14,"tag":42,"props":760,"children":762},{"className":761},[],[763],{"type":19,"value":81},{"type":19,"value":765}," is not ",{"type":14,"tag":42,"props":767,"children":769},{"className":768},[],[770],{"type":19,"value":261},{"type":19,"value":772},", ",{"type":14,"tag":42,"props":774,"children":776},{"className":775},[],[777],{"type":19,"value":81},{"type":19,"value":779}," ",{"type":14,"tag":22,"props":781,"children":782},{"type":326},[],{"type":19,"value":784}," be a valid ",{"type":14,"tag":343,"props":786,"children":788},{"href":787},"/man/VkInstance",[789],{"type":19,"value":790},"VkInstance",{"type":19,"value":792}," handle",{"type":14,"tag":750,"props":794,"children":796},{"name":795},"VUID-vkGetInstanceProcAddr-pName-parameter",[797],{"type":14,"tag":15,"props":798,"children":799},{},[800,805,806,809],{"type":14,"tag":42,"props":801,"children":803},{"className":802},[],[804],{"type":19,"value":272},{"type":19,"value":779},{"type":14,"tag":22,"props":807,"children":808},{"type":326},[],{"type":19,"value":810}," be a null-terminated UTF-8 string",{"type":14,"tag":812,"props":813,"children":814},"style",{},[815],{"type":19,"value":816},"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":39,"searchDepth":69,"depth":69,"links":818},[],"markdown",1725732618882]