[{"data":1,"prerenderedAt":684},["ShallowReactive",2],{"gfYZVLpntn":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":683,"_id":4},"vkGetPhysicalDeviceImageFormatProperties2","Lists physical device's image format capabilities","VK_VERSION_1_1","protos",[],{"type":10,"children":11,"toc":681},"root",[12,20,296,357,383,475,598,675],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To query additional capabilities specific to image types, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,132],{"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 vkGetPhysicalDeviceImageFormatProperties2KHR(\n VkPhysicalDevice physicalDevice,\n const VkPhysicalDeviceImageFormatInfo2* pImageFormatInfo,\n VkImageFormatProperties2* pImageFormatProperties);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,60,80,109],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,55],{"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":54},"vkGetPhysicalDeviceImageFormatProperties2KHR",{"type":13,"tag":38,"props":56,"children":57},{"style":45},[58],{"type":18,"value":59},"(\n",{"type":13,"tag":38,"props":61,"children":63},{"class":40,"line":62},2,[64,69,75],{"type":13,"tag":38,"props":65,"children":66},{"style":45},[67],{"type":18,"value":68}," VkPhysicalDevice ",{"type":13,"tag":38,"props":70,"children":72},{"style":71},"--shiki-default:#953800;--shiki-dark:#FFA657",[73],{"type":18,"value":74},"physicalDevice",{"type":13,"tag":38,"props":76,"children":77},{"style":45},[78],{"type":18,"value":79},",\n",{"type":13,"tag":38,"props":81,"children":83},{"class":40,"line":82},3,[84,90,95,100,105],{"type":13,"tag":38,"props":85,"children":87},{"style":86},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[88],{"type":18,"value":89}," const",{"type":13,"tag":38,"props":91,"children":92},{"style":45},[93],{"type":18,"value":94}," VkPhysicalDeviceImageFormatInfo2",{"type":13,"tag":38,"props":96,"children":97},{"style":86},[98],{"type":18,"value":99},"*",{"type":13,"tag":38,"props":101,"children":102},{"style":71},[103],{"type":18,"value":104}," pImageFormatInfo",{"type":13,"tag":38,"props":106,"children":107},{"style":45},[108],{"type":18,"value":79},{"type":13,"tag":38,"props":110,"children":112},{"class":40,"line":111},4,[113,118,122,127],{"type":13,"tag":38,"props":114,"children":115},{"style":45},[116],{"type":18,"value":117}," VkImageFormatProperties2",{"type":13,"tag":38,"props":119,"children":120},{"style":86},[121],{"type":18,"value":99},{"type":13,"tag":38,"props":123,"children":124},{"style":71},[125],{"type":18,"value":126}," pImageFormatProperties",{"type":13,"tag":38,"props":128,"children":129},{"style":45},[130],{"type":18,"value":131},");\n",{"type":13,"tag":25,"props":133,"children":138},{"className":134,"code":135,"filename":136,"language":137,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_physical_device_image_format_properties2_khr(\n physical_device: vk::PhysicalDevice,\n p_image_format_info: *const vk::PhysicalDeviceImageFormatInfo2,\n p_image_format_properties: *mut vk::ImageFormatProperties2,\n) -> vk::Result;\n","Rust","rs",[139],{"type":13,"tag":34,"props":140,"children":141},{"__ignoreMap":31},[142,164,196,230,264],{"type":13,"tag":38,"props":143,"children":144},{"class":40,"line":41},[145,150,155,160],{"type":13,"tag":38,"props":146,"children":147},{"style":86},[148],{"type":18,"value":149},"pub",{"type":13,"tag":38,"props":151,"children":152},{"style":86},[153],{"type":18,"value":154}," fn",{"type":13,"tag":38,"props":156,"children":157},{"style":51},[158],{"type":18,"value":159}," get_physical_device_image_format_properties2_khr",{"type":13,"tag":38,"props":161,"children":162},{"style":45},[163],{"type":18,"value":59},{"type":13,"tag":38,"props":165,"children":166},{"class":40,"line":62},[167,172,177,182,187,192],{"type":13,"tag":38,"props":168,"children":169},{"style":45},[170],{"type":18,"value":171}," physical_device",{"type":13,"tag":38,"props":173,"children":174},{"style":86},[175],{"type":18,"value":176},":",{"type":13,"tag":38,"props":178,"children":179},{"style":71},[180],{"type":18,"value":181}," vk",{"type":13,"tag":38,"props":183,"children":184},{"style":86},[185],{"type":18,"value":186},"::",{"type":13,"tag":38,"props":188,"children":189},{"style":71},[190],{"type":18,"value":191},"PhysicalDevice",{"type":13,"tag":38,"props":193,"children":194},{"style":45},[195],{"type":18,"value":79},{"type":13,"tag":38,"props":197,"children":198},{"class":40,"line":82},[199,204,208,213,217,221,226],{"type":13,"tag":38,"props":200,"children":201},{"style":45},[202],{"type":18,"value":203}," p_image_format_info",{"type":13,"tag":38,"props":205,"children":206},{"style":86},[207],{"type":18,"value":176},{"type":13,"tag":38,"props":209,"children":210},{"style":86},[211],{"type":18,"value":212}," *const",{"type":13,"tag":38,"props":214,"children":215},{"style":71},[216],{"type":18,"value":181},{"type":13,"tag":38,"props":218,"children":219},{"style":86},[220],{"type":18,"value":186},{"type":13,"tag":38,"props":222,"children":223},{"style":71},[224],{"type":18,"value":225},"PhysicalDeviceImageFormatInfo2",{"type":13,"tag":38,"props":227,"children":228},{"style":45},[229],{"type":18,"value":79},{"type":13,"tag":38,"props":231,"children":232},{"class":40,"line":111},[233,238,242,247,251,255,260],{"type":13,"tag":38,"props":234,"children":235},{"style":45},[236],{"type":18,"value":237}," p_image_format_properties",{"type":13,"tag":38,"props":239,"children":240},{"style":86},[241],{"type":18,"value":176},{"type":13,"tag":38,"props":243,"children":244},{"style":86},[245],{"type":18,"value":246}," *mut",{"type":13,"tag":38,"props":248,"children":249},{"style":71},[250],{"type":18,"value":181},{"type":13,"tag":38,"props":252,"children":253},{"style":86},[254],{"type":18,"value":186},{"type":13,"tag":38,"props":256,"children":257},{"style":71},[258],{"type":18,"value":259},"ImageFormatProperties2",{"type":13,"tag":38,"props":261,"children":262},{"style":45},[263],{"type":18,"value":79},{"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":86},[276],{"type":18,"value":277},"->",{"type":13,"tag":38,"props":279,"children":280},{"style":71},[281],{"type":18,"value":181},{"type":13,"tag":38,"props":283,"children":284},{"style":86},[285],{"type":18,"value":186},{"type":13,"tag":38,"props":287,"children":288},{"style":71},[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,311,339],{"type":13,"tag":301,"props":302,"children":303},"li",{},[304,309],{"type":13,"tag":34,"props":305,"children":307},{"className":306},[],[308],{"type":18,"value":74},{"type":18,"value":310}," is the physical device from which to query the\nimage capabilities.",{"type":13,"tag":301,"props":312,"children":313},{},[314,320,322,329,331,337],{"type":13,"tag":34,"props":315,"children":317},{"className":316},[],[318],{"type":18,"value":319},"pImageFormatInfo",{"type":18,"value":321}," is a pointer to a\n",{"type":13,"tag":323,"props":324,"children":326},"a",{"href":325},"/man/VkPhysicalDeviceImageFormatInfo2",[327],{"type":18,"value":328},"VkPhysicalDeviceImageFormatInfo2",{"type":18,"value":330}," structure describing the\nparameters that would be consumed by ",{"type":13,"tag":323,"props":332,"children":334},{"href":333},"/man/vkCreateImage",[335],{"type":18,"value":336},"vkCreateImage",{"type":18,"value":338},".",{"type":13,"tag":301,"props":340,"children":341},{},[342,348,349,355],{"type":13,"tag":34,"props":343,"children":345},{"className":344},[],[346],{"type":18,"value":347},"pImageFormatProperties",{"type":18,"value":321},{"type":13,"tag":323,"props":350,"children":352},{"href":351},"/man/VkImageFormatProperties2",[353],{"type":18,"value":354},"VkImageFormatProperties2",{"type":18,"value":356}," structure in which capabilities are\nreturned.",{"type":13,"tag":14,"props":358,"children":359},{},[360,365,367,373,375,381],{"type":13,"tag":34,"props":361,"children":363},{"className":362},[],[364],{"type":18,"value":4},{"type":18,"value":366}," behaves similarly to\n",{"type":13,"tag":323,"props":368,"children":370},{"href":369},"/man/vkGetPhysicalDeviceImageFormatProperties",[371],{"type":18,"value":372},"vkGetPhysicalDeviceImageFormatProperties",{"type":18,"value":374},", with the ability to return\nextended information in a ",{"type":13,"tag":34,"props":376,"children":378},{"className":377},[],[379],{"type":18,"value":380},"pNext",{"type":18,"value":382}," chain of output structures.",{"type":13,"tag":14,"props":384,"children":385},{},[386,388,393,395,400,402,408,410,416,418,424,426,432,434,440,442,446,447,453,455,459,460,466,468,474],{"type":18,"value":387},"If the ",{"type":13,"tag":34,"props":389,"children":391},{"className":390},[],[392],{"type":18,"value":380},{"type":18,"value":394}," chain of ",{"type":13,"tag":34,"props":396,"children":398},{"className":397},[],[399],{"type":18,"value":319},{"type":18,"value":401}," includes a\n",{"type":13,"tag":323,"props":403,"children":405},{"href":404},"/man/VkVideoProfileListInfoKHR",[406],{"type":18,"value":407},"VkVideoProfileListInfoKHR",{"type":18,"value":409}," structure with a ",{"type":13,"tag":34,"props":411,"children":413},{"className":412},[],[414],{"type":18,"value":415},"profileCount",{"type":18,"value":417}," member\ngreater than ",{"type":13,"tag":34,"props":419,"children":421},{"className":420},[],[422],{"type":18,"value":423},"0",{"type":18,"value":425},", then this command returns format capabilities specific to\nimage types used in conjunction with the specified ",{"type":13,"tag":323,"props":427,"children":429},{"href":428},"/chapters/video-coding#video-profiles",[430],{"type":18,"value":431},"video\nprofiles",{"type":18,"value":433},".\nIn this case, this command will return one of the\n",{"type":13,"tag":323,"props":435,"children":437},{"href":436},"/man/VkVideoProfileInfoKHR#video-profile-error-codes",[438],{"type":18,"value":439},"video-profile-specific error codes",{"type":18,"value":441}," if any of\nthe profiles specified via ",{"type":13,"tag":323,"props":443,"children":444},{"href":404},[445],{"type":18,"value":407},{"type":18,"value":186},{"type":13,"tag":34,"props":448,"children":450},{"className":449},[],[451],{"type":18,"value":452},"pProfiles",{"type":18,"value":454},"\nare not supported.\nFurthermore, if ",{"type":13,"tag":323,"props":456,"children":457},{"href":325},[458],{"type":18,"value":328},{"type":18,"value":186},{"type":13,"tag":34,"props":461,"children":463},{"className":462},[],[464],{"type":18,"value":465},"usage",{"type":18,"value":467}," includes\nany image usage flag not supported by the specified video profiles, then\nthis command returns ",{"type":13,"tag":34,"props":469,"children":471},{"className":470},[],[472],{"type":18,"value":473},"VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR",{"type":18,"value":338},{"type":13,"tag":476,"props":477,"children":479},"validity-group",{"name":478},"Valid Usage",[480,552],{"type":13,"tag":481,"props":482,"children":484},"validity-field",{"name":483},"VUID-vkGetPhysicalDeviceImageFormatProperties2-pNext-01868",[485],{"type":13,"tag":14,"props":486,"children":487},{},[488,489,494,495,500,501,507,509,514,516,521,523,528,530,536,538,544,546],{"type":18,"value":387},{"type":13,"tag":34,"props":490,"children":492},{"className":491},[],[493],{"type":18,"value":380},{"type":18,"value":394},{"type":13,"tag":34,"props":496,"children":498},{"className":497},[],[499],{"type":18,"value":347},{"type":18,"value":401},{"type":13,"tag":323,"props":502,"children":504},{"href":503},"/man/VkAndroidHardwareBufferUsageANDROID",[505],{"type":18,"value":506},"VkAndroidHardwareBufferUsageANDROID",{"type":18,"value":508}," structure, the ",{"type":13,"tag":34,"props":510,"children":512},{"className":511},[],[513],{"type":18,"value":380},{"type":18,"value":515},"\nchain of ",{"type":13,"tag":34,"props":517,"children":519},{"className":518},[],[520],{"type":18,"value":319},{"type":18,"value":522}," ",{"type":13,"tag":524,"props":525,"children":527},"normative",{"type":526},"must",[],{"type":18,"value":529}," include a\n",{"type":13,"tag":323,"props":531,"children":533},{"href":532},"/man/VkPhysicalDeviceExternalImageFormatInfo",[534],{"type":18,"value":535},"VkPhysicalDeviceExternalImageFormatInfo",{"type":18,"value":537}," structure with\n",{"type":13,"tag":34,"props":539,"children":541},{"className":540},[],[542],{"type":18,"value":543},"handleType",{"type":18,"value":545}," set to\n",{"type":13,"tag":34,"props":547,"children":549},{"className":548},[],[550],{"type":18,"value":551},"VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID",{"type":13,"tag":481,"props":553,"children":555},{"name":554},"VUID-vkGetPhysicalDeviceImageFormatProperties2-pNext-09004",[556],{"type":13,"tag":14,"props":557,"children":558},{},[559,560,565,566,571,572,578,580,586,587,590,592],{"type":18,"value":387},{"type":13,"tag":34,"props":561,"children":563},{"className":562},[],[564],{"type":18,"value":380},{"type":18,"value":394},{"type":13,"tag":34,"props":567,"children":569},{"className":568},[],[570],{"type":18,"value":347},{"type":18,"value":401},{"type":13,"tag":323,"props":573,"children":575},{"href":574},"/man/VkHostImageCopyDevicePerformanceQueryEXT",[576],{"type":18,"value":577},"VkHostImageCopyDevicePerformanceQueryEXT",{"type":18,"value":579}," structure,\n",{"type":13,"tag":34,"props":581,"children":583},{"className":582},[],[584],{"type":18,"value":585},"pImageFormatInfo→usage",{"type":18,"value":522},{"type":13,"tag":524,"props":588,"children":589},{"type":526},[],{"type":18,"value":591}," contain\n",{"type":13,"tag":34,"props":593,"children":595},{"className":594},[],[596],{"type":18,"value":597},"VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT",{"type":13,"tag":476,"props":599,"children":601},{"name":600},"Valid Usage (Implicit)",[602,628,652],{"type":13,"tag":481,"props":603,"children":605},{"name":604},"VUID-vkGetPhysicalDeviceImageFormatProperties2-physicalDevice-parameter",[606],{"type":13,"tag":14,"props":607,"children":608},{},[609,614,615,618,620,626],{"type":13,"tag":34,"props":610,"children":612},{"className":611},[],[613],{"type":18,"value":74},{"type":18,"value":522},{"type":13,"tag":524,"props":616,"children":617},{"type":526},[],{"type":18,"value":619}," be a valid ",{"type":13,"tag":323,"props":621,"children":623},{"href":622},"/man/VkPhysicalDevice",[624],{"type":18,"value":625},"VkPhysicalDevice",{"type":18,"value":627}," handle",{"type":13,"tag":481,"props":629,"children":631},{"name":630},"VUID-vkGetPhysicalDeviceImageFormatProperties2-pImageFormatInfo-parameter",[632],{"type":13,"tag":14,"props":633,"children":634},{},[635,640,641,644,646,650],{"type":13,"tag":34,"props":636,"children":638},{"className":637},[],[639],{"type":18,"value":319},{"type":18,"value":522},{"type":13,"tag":524,"props":642,"children":643},{"type":526},[],{"type":18,"value":645}," be a valid pointer to a valid ",{"type":13,"tag":323,"props":647,"children":648},{"href":325},[649],{"type":18,"value":328},{"type":18,"value":651}," structure",{"type":13,"tag":481,"props":653,"children":655},{"name":654},"VUID-vkGetPhysicalDeviceImageFormatProperties2-pImageFormatProperties-parameter",[656],{"type":13,"tag":14,"props":657,"children":658},{},[659,664,665,668,670,674],{"type":13,"tag":34,"props":660,"children":662},{"className":661},[],[663],{"type":18,"value":347},{"type":18,"value":522},{"type":13,"tag":524,"props":666,"children":667},{"type":526},[],{"type":18,"value":669}," be a valid pointer to a ",{"type":13,"tag":323,"props":671,"children":672},{"href":351},[673],{"type":18,"value":354},{"type":18,"value":651},{"type":13,"tag":676,"props":677,"children":678},"style",{},[679],{"type":18,"value":680},"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":62,"depth":62,"links":682},[],"markdown",1725732619964]