[{"data":1,"prerenderedAt":618},["ShallowReactive",2],{"mAO4zpgVKr":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":617,"_id":4},"VkPhysicalDeviceSurfaceInfo2KHR","Structure specifying a surface and related swapchain creation parameters","VK_KHR_get_surface_capabilities2","structs",[],{"type":10,"children":11,"toc":615},"root",[12,28,238,293,327,388,502,609],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure is defined as:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,113],{"type":13,"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","typedef struct VkPhysicalDeviceSurfaceInfo2KHR {\n VkStructureType sType;\n const void* pNext;\n VkSurfaceKHR surface;\n} VkPhysicalDeviceSurfaceInfo2KHR;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,95,104],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkPhysicalDeviceSurfaceInfo2KHR {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71],{"type":13,"tag":45,"props":72,"children":73},{"style":63},[74],{"type":18,"value":75}," VkStructureType sType;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85,90],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," const",{"type":13,"tag":45,"props":86,"children":87},{"style":52},[88],{"type":18,"value":89}," void*",{"type":13,"tag":45,"props":91,"children":92},{"style":63},[93],{"type":18,"value":94}," pNext;\n",{"type":13,"tag":45,"props":96,"children":98},{"class":47,"line":97},4,[99],{"type":13,"tag":45,"props":100,"children":101},{"style":63},[102],{"type":18,"value":103}," VkSurfaceKHR surface;\n",{"type":13,"tag":45,"props":105,"children":107},{"class":47,"line":106},5,[108],{"type":13,"tag":45,"props":109,"children":110},{"style":63},[111],{"type":18,"value":112},"} VkPhysicalDeviceSurfaceInfo2KHR;\n",{"type":13,"tag":33,"props":114,"children":119},{"className":115,"code":116,"filename":117,"language":118,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PhysicalDeviceSurfaceInfo2KHR {\n s_type: vk::StructureType,\n p_next: *const c_void,\n surface: vk::SurfaceKHR,\n}\n","Rust","rs",[120],{"type":13,"tag":21,"props":121,"children":122},{"__ignoreMap":39},[123,146,179,201,230],{"type":13,"tag":45,"props":124,"children":125},{"class":47,"line":48},[126,131,135,141],{"type":13,"tag":45,"props":127,"children":128},{"style":52},[129],{"type":18,"value":130},"pub",{"type":13,"tag":45,"props":132,"children":133},{"style":52},[134],{"type":18,"value":60},{"type":13,"tag":45,"props":136,"children":138},{"style":137},"--shiki-default:#953800;--shiki-dark:#FFA657",[139],{"type":18,"value":140}," PhysicalDeviceSurfaceInfo2KHR",{"type":13,"tag":45,"props":142,"children":143},{"style":63},[144],{"type":18,"value":145}," {\n",{"type":13,"tag":45,"props":147,"children":148},{"class":47,"line":69},[149,154,159,164,169,174],{"type":13,"tag":45,"props":150,"children":151},{"style":63},[152],{"type":18,"value":153}," s_type",{"type":13,"tag":45,"props":155,"children":156},{"style":52},[157],{"type":18,"value":158},":",{"type":13,"tag":45,"props":160,"children":161},{"style":137},[162],{"type":18,"value":163}," vk",{"type":13,"tag":45,"props":165,"children":166},{"style":52},[167],{"type":18,"value":168},"::",{"type":13,"tag":45,"props":170,"children":171},{"style":137},[172],{"type":18,"value":173},"StructureType",{"type":13,"tag":45,"props":175,"children":176},{"style":63},[177],{"type":18,"value":178},",\n",{"type":13,"tag":45,"props":180,"children":181},{"class":47,"line":78},[182,187,191,196],{"type":13,"tag":45,"props":183,"children":184},{"style":63},[185],{"type":18,"value":186}," p_next",{"type":13,"tag":45,"props":188,"children":189},{"style":52},[190],{"type":18,"value":158},{"type":13,"tag":45,"props":192,"children":193},{"style":52},[194],{"type":18,"value":195}," *const",{"type":13,"tag":45,"props":197,"children":198},{"style":63},[199],{"type":18,"value":200}," c_void,\n",{"type":13,"tag":45,"props":202,"children":203},{"class":47,"line":97},[204,209,213,217,221,226],{"type":13,"tag":45,"props":205,"children":206},{"style":63},[207],{"type":18,"value":208}," surface",{"type":13,"tag":45,"props":210,"children":211},{"style":52},[212],{"type":18,"value":158},{"type":13,"tag":45,"props":214,"children":215},{"style":137},[216],{"type":18,"value":163},{"type":13,"tag":45,"props":218,"children":219},{"style":52},[220],{"type":18,"value":168},{"type":13,"tag":45,"props":222,"children":223},{"style":137},[224],{"type":18,"value":225},"SurfaceKHR",{"type":13,"tag":45,"props":227,"children":228},{"style":63},[229],{"type":18,"value":178},{"type":13,"tag":45,"props":231,"children":232},{"class":47,"line":106},[233],{"type":13,"tag":45,"props":234,"children":235},{"style":63},[236],{"type":18,"value":237},"}\n",{"type":13,"tag":239,"props":240,"children":241},"ul",{},[242,263,282],{"type":13,"tag":243,"props":244,"children":245},"li",{},[246,252,254,261],{"type":13,"tag":21,"props":247,"children":249},{"className":248},[],[250],{"type":18,"value":251},"sType",{"type":18,"value":253}," is a ",{"type":13,"tag":255,"props":256,"children":258},"a",{"href":257},"/man/VkStructureType",[259],{"type":18,"value":260},"VkStructureType",{"type":18,"value":262}," value identifying this structure.",{"type":13,"tag":243,"props":264,"children":265},{},[266,272,274,280],{"type":13,"tag":21,"props":267,"children":269},{"className":268},[],[270],{"type":18,"value":271},"pNext",{"type":18,"value":273}," is ",{"type":13,"tag":21,"props":275,"children":277},{"className":276},[],[278],{"type":18,"value":279},"NULL",{"type":18,"value":281}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":243,"props":283,"children":284},{},[285,291],{"type":13,"tag":21,"props":286,"children":288},{"className":287},[],[289],{"type":18,"value":290},"surface",{"type":18,"value":292}," is the surface that will be associated with the swapchain.",{"type":13,"tag":14,"props":294,"children":295},{},[296,298,303,305,311,313,318,320,325],{"type":18,"value":297},"The members of ",{"type":13,"tag":21,"props":299,"children":301},{"className":300},[],[302],{"type":18,"value":4},{"type":18,"value":304}," correspond to the\narguments to ",{"type":13,"tag":255,"props":306,"children":308},{"href":307},"/man/vkGetPhysicalDeviceSurfaceCapabilitiesKHR",[309],{"type":18,"value":310},"vkGetPhysicalDeviceSurfaceCapabilitiesKHR",{"type":18,"value":312},", with\n",{"type":13,"tag":21,"props":314,"children":316},{"className":315},[],[317],{"type":18,"value":251},{"type":18,"value":319}," and ",{"type":13,"tag":21,"props":321,"children":323},{"className":322},[],[324],{"type":18,"value":271},{"type":18,"value":326}," added for extensibility.",{"type":13,"tag":14,"props":328,"children":329},{},[330,332,337,339,343,345,351,353,358,360,366,368,371,373,378,380,386],{"type":18,"value":331},"Additional capabilities of a surface ",{"type":13,"tag":333,"props":334,"children":336},"normative",{"type":335},"may",[],{"type":18,"value":338}," be available to swapchains created\nwith different full-screen exclusive settings - particularly if exclusive\nfull-screen access is application controlled.\nThese additional capabilities ",{"type":13,"tag":333,"props":340,"children":342},{"type":341},"can",[],{"type":18,"value":344}," be queried by adding a\n",{"type":13,"tag":255,"props":346,"children":348},{"href":347},"/man/VkSurfaceFullScreenExclusiveInfoEXT",[349],{"type":18,"value":350},"VkSurfaceFullScreenExclusiveInfoEXT",{"type":18,"value":352}," structure to the ",{"type":13,"tag":21,"props":354,"children":356},{"className":355},[],[357],{"type":18,"value":271},{"type":18,"value":359}," chain\nof this structure when used to query surface properties.\nAdditionally, for Win32 surfaces with application controlled exclusive\nfull-screen access, chaining a\n",{"type":13,"tag":255,"props":361,"children":363},{"href":362},"/man/VkSurfaceFullScreenExclusiveWin32InfoEXT",[364],{"type":18,"value":365},"VkSurfaceFullScreenExclusiveWin32InfoEXT",{"type":18,"value":367}," structure ",{"type":13,"tag":333,"props":369,"children":370},{"type":335},[],{"type":18,"value":372}," also report\nadditional surface capabilities.\nThese additional capabilities only apply to swapchains created with the same\nparameters included in the ",{"type":13,"tag":21,"props":374,"children":376},{"className":375},[],[377],{"type":18,"value":271},{"type":18,"value":379}," chain of\n",{"type":13,"tag":255,"props":381,"children":383},{"href":382},"/man/VkSwapchainCreateInfoKHR",[384],{"type":18,"value":385},"VkSwapchainCreateInfoKHR",{"type":18,"value":387},".",{"type":13,"tag":389,"props":390,"children":392},"validity-group",{"name":391},"Valid Usage",[393,465],{"type":13,"tag":394,"props":395,"children":397},"validity-field",{"name":396},"VUID-VkPhysicalDeviceSurfaceInfo2KHR-pNext-02672",[398],{"type":13,"tag":14,"props":399,"children":400},{},[401,403,408,410,414,416,422,424,430,432,437,439,445,447,451,452,456,458,463],{"type":18,"value":402},"If the ",{"type":13,"tag":21,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":271},{"type":18,"value":409}," chain includes a\n",{"type":13,"tag":255,"props":411,"children":412},{"href":347},[413],{"type":18,"value":350},{"type":18,"value":415}," structure with its\n",{"type":13,"tag":21,"props":417,"children":419},{"className":418},[],[420],{"type":18,"value":421},"fullScreenExclusive",{"type":18,"value":423}," member set to\n",{"type":13,"tag":21,"props":425,"children":427},{"className":426},[],[428],{"type":18,"value":429},"VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT",{"type":18,"value":431},", and\n",{"type":13,"tag":21,"props":433,"children":435},{"className":434},[],[436],{"type":18,"value":290},{"type":18,"value":438}," was created using ",{"type":13,"tag":255,"props":440,"children":442},{"href":441},"/man/vkCreateWin32SurfaceKHR",[443],{"type":18,"value":444},"vkCreateWin32SurfaceKHR",{"type":18,"value":446},", a\n",{"type":13,"tag":255,"props":448,"children":449},{"href":362},[450],{"type":18,"value":365},{"type":18,"value":367},{"type":13,"tag":333,"props":453,"children":455},{"type":454},"must",[],{"type":18,"value":457}," be\nincluded in the ",{"type":13,"tag":21,"props":459,"children":461},{"className":460},[],[462],{"type":18,"value":271},{"type":18,"value":464}," chain",{"type":13,"tag":394,"props":466,"children":468},{"name":467},"VUID-VkPhysicalDeviceSurfaceInfo2KHR-surface-07919",[469],{"type":13,"tag":14,"props":470,"children":471},{},[472,474,480,482,487,489,492,494,500],{"type":18,"value":473},"If surface is not VK_NULL_HANDLE,\nand the ",{"type":13,"tag":255,"props":475,"children":477},{"href":476},"/extensions/VK_GOOGLE_surfaceless_query",[478],{"type":18,"value":479},"VK_GOOGLE_surfaceless_query",{"type":18,"value":481}," extension is not enabled,\n",{"type":13,"tag":21,"props":483,"children":485},{"className":484},[],[486],{"type":18,"value":290},{"type":18,"value":488}," ",{"type":13,"tag":333,"props":490,"children":491},{"type":454},[],{"type":18,"value":493}," be a valid ",{"type":13,"tag":255,"props":495,"children":497},{"href":496},"/man/VkSurfaceKHR",[498],{"type":18,"value":499},"VkSurfaceKHR",{"type":18,"value":501}," handle",{"type":13,"tag":389,"props":503,"children":505},{"name":504},"Valid Usage (Implicit)",[506,530,583],{"type":13,"tag":394,"props":507,"children":509},{"name":508},"VUID-VkPhysicalDeviceSurfaceInfo2KHR-sType-sType",[510],{"type":13,"tag":14,"props":511,"children":512},{},[513,518,519,522,524],{"type":13,"tag":21,"props":514,"children":516},{"className":515},[],[517],{"type":18,"value":251},{"type":18,"value":488},{"type":13,"tag":333,"props":520,"children":521},{"type":454},[],{"type":18,"value":523}," be ",{"type":13,"tag":21,"props":525,"children":527},{"className":526},[],[528],{"type":18,"value":529},"VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR",{"type":13,"tag":394,"props":531,"children":533},{"name":532},"VUID-VkPhysicalDeviceSurfaceInfo2KHR-pNext-pNext",[534],{"type":13,"tag":14,"props":535,"children":536},{},[537,539,544,546,551,553,556,558,563,565,569,571,575,577],{"type":18,"value":538},"Each ",{"type":13,"tag":21,"props":540,"children":542},{"className":541},[],[543],{"type":18,"value":271},{"type":18,"value":545}," member of any structure (including this one) in the ",{"type":13,"tag":21,"props":547,"children":549},{"className":548},[],[550],{"type":18,"value":271},{"type":18,"value":552}," chain ",{"type":13,"tag":333,"props":554,"children":555},{"type":454},[],{"type":18,"value":557}," be either ",{"type":13,"tag":21,"props":559,"children":561},{"className":560},[],[562],{"type":18,"value":279},{"type":18,"value":564}," or a pointer to a valid instance of ",{"type":13,"tag":255,"props":566,"children":567},{"href":347},[568],{"type":18,"value":350},{"type":18,"value":570},", ",{"type":13,"tag":255,"props":572,"children":573},{"href":362},[574],{"type":18,"value":365},{"type":18,"value":576},", or ",{"type":13,"tag":255,"props":578,"children":580},{"href":579},"/man/VkSurfacePresentModeEXT",[581],{"type":18,"value":582},"VkSurfacePresentModeEXT",{"type":13,"tag":394,"props":584,"children":586},{"name":585},"VUID-VkPhysicalDeviceSurfaceInfo2KHR-sType-unique",[587],{"type":13,"tag":14,"props":588,"children":589},{},[590,591,596,598,603,604,607],{"type":18,"value":19},{"type":13,"tag":21,"props":592,"children":594},{"className":593},[],[595],{"type":18,"value":251},{"type":18,"value":597}," value of each struct in the ",{"type":13,"tag":21,"props":599,"children":601},{"className":600},[],[602],{"type":18,"value":271},{"type":18,"value":552},{"type":13,"tag":333,"props":605,"children":606},{"type":454},[],{"type":18,"value":608}," be unique",{"type":13,"tag":610,"props":611,"children":612},"style",{},[613],{"type":18,"value":614},"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":616},[],"markdown",1725732575349]