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