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