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