[{"data":1,"prerenderedAt":691},["ShallowReactive",2],{"$fJi0DOkTo9LWBh6M97Lzd4zg0VDLIyaciqyjN8NSPNFM":3},{"title":4,"description":5,"parent":6,"structextends":7,"type":9,"xrefs":10,"body":11,"_type":690,"_id":4},"VkSurfacePresentModeCompatibilityKHR","Structure describing the subset of compatible presentation modes for the purposes of switching without swapchain recreation","VK_KHR_surface_maintenance1",[8],"VkSurfaceCapabilities2KHR","structs",[],{"type":12,"children":13,"toc":688},"root",[14,30,291,356,430,537,571,594,682],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19,22,28],{"type":20,"value":21},"text","The ",{"type":15,"tag":23,"props":24,"children":26},"code",{"className":25},[],[27],{"type":20,"value":4},{"type":20,"value":29}," structure is defined as:",{"type":15,"tag":31,"props":32,"children":33},"code-group",{},[34,134],{"type":15,"tag":35,"props":36,"children":42},"pre",{"className":37,"code":38,"filename":39,"language":40,"meta":41,"style":41},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkSurfacePresentModeCompatibilityKHR {\n VkStructureType sType;\n void* pNext;\n uint32_t presentModeCount;\n VkPresentModeKHR* pPresentModes;\n} VkSurfacePresentModeCompatibilityKHR;\n","C","c","",[43],{"type":15,"tag":23,"props":44,"children":45},{"__ignoreMap":41},[46,69,78,92,106,125],{"type":15,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,63],{"type":15,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[56],{"type":20,"value":57},"typedef",{"type":15,"tag":47,"props":59,"children":60},{"style":54},[61],{"type":20,"value":62}," struct",{"type":15,"tag":47,"props":64,"children":66},{"style":65},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[67],{"type":20,"value":68}," VkSurfacePresentModeCompatibilityKHR {\n",{"type":15,"tag":47,"props":70,"children":72},{"class":49,"line":71},2,[73],{"type":15,"tag":47,"props":74,"children":75},{"style":65},[76],{"type":20,"value":77}," VkStructureType sType;\n",{"type":15,"tag":47,"props":79,"children":81},{"class":49,"line":80},3,[82,87],{"type":15,"tag":47,"props":83,"children":84},{"style":54},[85],{"type":20,"value":86}," void*",{"type":15,"tag":47,"props":88,"children":89},{"style":65},[90],{"type":20,"value":91}," pNext;\n",{"type":15,"tag":47,"props":93,"children":95},{"class":49,"line":94},4,[96,101],{"type":15,"tag":47,"props":97,"children":98},{"style":54},[99],{"type":20,"value":100}," uint32_t",{"type":15,"tag":47,"props":102,"children":103},{"style":65},[104],{"type":20,"value":105}," presentModeCount;\n",{"type":15,"tag":47,"props":107,"children":109},{"class":49,"line":108},5,[110,115,120],{"type":15,"tag":47,"props":111,"children":112},{"style":65},[113],{"type":20,"value":114}," VkPresentModeKHR",{"type":15,"tag":47,"props":116,"children":117},{"style":54},[118],{"type":20,"value":119},"*",{"type":15,"tag":47,"props":121,"children":122},{"style":65},[123],{"type":20,"value":124}," pPresentModes;\n",{"type":15,"tag":47,"props":126,"children":128},{"class":49,"line":127},6,[129],{"type":15,"tag":47,"props":130,"children":131},{"style":65},[132],{"type":20,"value":133},"} VkSurfacePresentModeCompatibilityKHR;\n",{"type":15,"tag":35,"props":135,"children":140},{"className":136,"code":137,"filename":138,"language":139,"meta":41,"style":41},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SurfacePresentModeCompatibilityKHR {\n s_type: vk::StructureType,\n p_next: *mut c_void,\n present_mode_count: u32,\n p_present_modes: *mut vk::PresentModeKHR, // Output list of present modes compatible with the one specified in VkSurfacePresentModeKHR\n}\n","Rust","rs",[141],{"type":15,"tag":23,"props":142,"children":143},{"__ignoreMap":41},[144,167,200,222,243,283],{"type":15,"tag":47,"props":145,"children":146},{"class":49,"line":50},[147,152,156,162],{"type":15,"tag":47,"props":148,"children":149},{"style":54},[150],{"type":20,"value":151},"pub",{"type":15,"tag":47,"props":153,"children":154},{"style":54},[155],{"type":20,"value":62},{"type":15,"tag":47,"props":157,"children":159},{"style":158},"--shiki-default:#953800;--shiki-dark:#FFA657",[160],{"type":20,"value":161}," SurfacePresentModeCompatibilityKHR",{"type":15,"tag":47,"props":163,"children":164},{"style":65},[165],{"type":20,"value":166}," {\n",{"type":15,"tag":47,"props":168,"children":169},{"class":49,"line":71},[170,175,180,185,190,195],{"type":15,"tag":47,"props":171,"children":172},{"style":65},[173],{"type":20,"value":174}," s_type",{"type":15,"tag":47,"props":176,"children":177},{"style":54},[178],{"type":20,"value":179},":",{"type":15,"tag":47,"props":181,"children":182},{"style":158},[183],{"type":20,"value":184}," vk",{"type":15,"tag":47,"props":186,"children":187},{"style":54},[188],{"type":20,"value":189},"::",{"type":15,"tag":47,"props":191,"children":192},{"style":158},[193],{"type":20,"value":194},"StructureType",{"type":15,"tag":47,"props":196,"children":197},{"style":65},[198],{"type":20,"value":199},",\n",{"type":15,"tag":47,"props":201,"children":202},{"class":49,"line":80},[203,208,212,217],{"type":15,"tag":47,"props":204,"children":205},{"style":65},[206],{"type":20,"value":207}," p_next",{"type":15,"tag":47,"props":209,"children":210},{"style":54},[211],{"type":20,"value":179},{"type":15,"tag":47,"props":213,"children":214},{"style":54},[215],{"type":20,"value":216}," *mut",{"type":15,"tag":47,"props":218,"children":219},{"style":65},[220],{"type":20,"value":221}," c_void,\n",{"type":15,"tag":47,"props":223,"children":224},{"class":49,"line":94},[225,230,234,239],{"type":15,"tag":47,"props":226,"children":227},{"style":65},[228],{"type":20,"value":229}," present_mode_count",{"type":15,"tag":47,"props":231,"children":232},{"style":54},[233],{"type":20,"value":179},{"type":15,"tag":47,"props":235,"children":236},{"style":158},[237],{"type":20,"value":238}," u32",{"type":15,"tag":47,"props":240,"children":241},{"style":65},[242],{"type":20,"value":199},{"type":15,"tag":47,"props":244,"children":245},{"class":49,"line":108},[246,251,255,259,263,267,272,277],{"type":15,"tag":47,"props":247,"children":248},{"style":65},[249],{"type":20,"value":250}," p_present_modes",{"type":15,"tag":47,"props":252,"children":253},{"style":54},[254],{"type":20,"value":179},{"type":15,"tag":47,"props":256,"children":257},{"style":54},[258],{"type":20,"value":216},{"type":15,"tag":47,"props":260,"children":261},{"style":158},[262],{"type":20,"value":184},{"type":15,"tag":47,"props":264,"children":265},{"style":54},[266],{"type":20,"value":189},{"type":15,"tag":47,"props":268,"children":269},{"style":158},[270],{"type":20,"value":271},"PresentModeKHR",{"type":15,"tag":47,"props":273,"children":274},{"style":65},[275],{"type":20,"value":276},", ",{"type":15,"tag":47,"props":278,"children":280},{"style":279},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[281],{"type":20,"value":282},"// Output list of present modes compatible with the one specified in VkSurfacePresentModeKHR\n",{"type":15,"tag":47,"props":284,"children":285},{"class":49,"line":127},[286],{"type":15,"tag":47,"props":287,"children":288},{"style":65},[289],{"type":20,"value":290},"}\n",{"type":15,"tag":31,"props":292,"children":293},{},[294,313],{"type":15,"tag":35,"props":295,"children":297},{"className":37,"code":296,"filename":39,"language":40,"meta":41,"style":41},"typedef VkSurfacePresentModeCompatibilityKHR VkSurfacePresentModeCompatibilityEXT;\n",[298],{"type":15,"tag":23,"props":299,"children":300},{"__ignoreMap":41},[301],{"type":15,"tag":47,"props":302,"children":303},{"class":49,"line":50},[304,308],{"type":15,"tag":47,"props":305,"children":306},{"style":54},[307],{"type":20,"value":57},{"type":15,"tag":47,"props":309,"children":310},{"style":65},[311],{"type":20,"value":312}," VkSurfacePresentModeCompatibilityKHR VkSurfacePresentModeCompatibilityEXT;\n",{"type":15,"tag":35,"props":314,"children":316},{"className":136,"code":315,"filename":138,"language":139,"meta":41,"style":41},"type SurfacePresentModeCompatibilityEXT = vk::SurfacePresentModeCompatibilityKHR;\n",[317],{"type":15,"tag":23,"props":318,"children":319},{"__ignoreMap":41},[320],{"type":15,"tag":47,"props":321,"children":322},{"class":49,"line":50},[323,328,333,338,342,346,351],{"type":15,"tag":47,"props":324,"children":325},{"style":54},[326],{"type":20,"value":327},"type",{"type":15,"tag":47,"props":329,"children":330},{"style":158},[331],{"type":20,"value":332}," SurfacePresentModeCompatibilityEXT",{"type":15,"tag":47,"props":334,"children":335},{"style":54},[336],{"type":20,"value":337}," =",{"type":15,"tag":47,"props":339,"children":340},{"style":158},[341],{"type":20,"value":184},{"type":15,"tag":47,"props":343,"children":344},{"style":54},[345],{"type":20,"value":189},{"type":15,"tag":47,"props":347,"children":348},{"style":158},[349],{"type":20,"value":350},"SurfacePresentModeCompatibilityKHR",{"type":15,"tag":47,"props":352,"children":353},{"style":65},[354],{"type":20,"value":355},";\n",{"type":15,"tag":357,"props":358,"children":359},"ul",{},[360,381,400,411],{"type":15,"tag":361,"props":362,"children":363},"li",{},[364,370,372,379],{"type":15,"tag":23,"props":365,"children":367},{"className":366},[],[368],{"type":20,"value":369},"sType",{"type":20,"value":371}," is a ",{"type":15,"tag":373,"props":374,"children":376},"a",{"href":375},"/man/VkStructureType",[377],{"type":20,"value":378},"VkStructureType",{"type":20,"value":380}," value identifying this structure.",{"type":15,"tag":361,"props":382,"children":383},{},[384,390,392,398],{"type":15,"tag":23,"props":385,"children":387},{"className":386},[],[388],{"type":20,"value":389},"pNext",{"type":20,"value":391}," is ",{"type":15,"tag":23,"props":393,"children":395},{"className":394},[],[396],{"type":20,"value":397},"NULL",{"type":20,"value":399}," or a pointer to a structure extending this\nstructure.",{"type":15,"tag":361,"props":401,"children":402},{},[403,409],{"type":15,"tag":23,"props":404,"children":406},{"className":405},[],[407],{"type":20,"value":408},"presentModeCount",{"type":20,"value":410}," is an integer related to the number of present\nmodes available or queried, as described below.",{"type":15,"tag":361,"props":412,"children":413},{},[414,420,422,428],{"type":15,"tag":23,"props":415,"children":417},{"className":416},[],[418],{"type":20,"value":419},"pPresentModes",{"type":20,"value":421}," is a pointer to an array of ",{"type":15,"tag":373,"props":423,"children":425},{"href":424},"/man/VkPresentModeKHR",[426],{"type":20,"value":427},"VkPresentModeKHR",{"type":20,"value":429},"\nin which present modes compatible with a given present mode are\nreturned.",{"type":15,"tag":16,"props":431,"children":432},{},[433,435,440,441,446,448,454,456,461,463,468,470,475,477,482,484,489,491,496,498,503,505,510,512,515,517,521,523,528,530,535],{"type":20,"value":434},"If ",{"type":15,"tag":23,"props":436,"children":438},{"className":437},[],[439],{"type":20,"value":419},{"type":20,"value":391},{"type":15,"tag":23,"props":442,"children":444},{"className":443},[],[445],{"type":20,"value":397},{"type":20,"value":447},", then the number of present modes that are\ncompatible with the one specified in ",{"type":15,"tag":373,"props":449,"children":451},{"href":450},"/man/VkSurfacePresentModeKHR",[452],{"type":20,"value":453},"VkSurfacePresentModeKHR",{"type":20,"value":455}," is\nreturned in ",{"type":15,"tag":23,"props":457,"children":459},{"className":458},[],[460],{"type":20,"value":408},{"type":20,"value":462},".\nOtherwise, ",{"type":15,"tag":23,"props":464,"children":466},{"className":465},[],[467],{"type":20,"value":408},{"type":20,"value":469}," ",{"type":15,"tag":471,"props":472,"children":474},"normative",{"type":473},"must",[],{"type":20,"value":476}," be set by the application to the\nnumber of elements in the ",{"type":15,"tag":23,"props":478,"children":480},{"className":479},[],[481],{"type":20,"value":419},{"type":20,"value":483}," array, and on return is\noverwritten with the number of values actually written to\n",{"type":15,"tag":23,"props":485,"children":487},{"className":486},[],[488],{"type":20,"value":419},{"type":20,"value":490},".\nIf the value of ",{"type":15,"tag":23,"props":492,"children":494},{"className":493},[],[495],{"type":20,"value":408},{"type":20,"value":497}," is less than the number of compatible\npresent modes that are supported, at most ",{"type":15,"tag":23,"props":499,"children":501},{"className":500},[],[502],{"type":20,"value":408},{"type":20,"value":504}," values will\nbe written to ",{"type":15,"tag":23,"props":506,"children":508},{"className":507},[],[509],{"type":20,"value":419},{"type":20,"value":511},".\nThe implementation ",{"type":15,"tag":471,"props":513,"children":514},{"type":473},[],{"type":20,"value":516}," include the present mode passed to\n",{"type":15,"tag":373,"props":518,"children":519},{"href":450},[520],{"type":20,"value":453},{"type":20,"value":522}," in ",{"type":15,"tag":23,"props":524,"children":526},{"className":525},[],[527],{"type":20,"value":419},{"type":20,"value":529},", unless\n",{"type":15,"tag":23,"props":531,"children":533},{"className":532},[],[534],{"type":20,"value":408},{"type":20,"value":536}," is zero.",{"type":15,"tag":16,"props":538,"children":539},{},[540,542,546,548,553,555,561,563,569],{"type":20,"value":541},"To query the set of present modes compatible with a given initial present\nmode, add a ",{"type":15,"tag":373,"props":543,"children":544},{"href":450},[545],{"type":20,"value":453},{"type":20,"value":547}," structure in the ",{"type":15,"tag":23,"props":549,"children":551},{"className":550},[],[552],{"type":20,"value":389},{"type":20,"value":554}," chain\nof ",{"type":15,"tag":373,"props":556,"children":558},{"href":557},"/man/VkPhysicalDeviceSurfaceInfo2KHR",[559],{"type":20,"value":560},"VkPhysicalDeviceSurfaceInfo2KHR",{"type":20,"value":562}," when calling\n",{"type":15,"tag":373,"props":564,"children":566},{"href":565},"/man/vkGetPhysicalDeviceSurfaceCapabilities2KHR",[567],{"type":20,"value":568},"vkGetPhysicalDeviceSurfaceCapabilities2KHR",{"type":20,"value":570},".",{"type":15,"tag":16,"props":572,"children":573},{},[574,576,580,582,585,587,593],{"type":20,"value":575},"The application ",{"type":15,"tag":471,"props":577,"children":579},{"type":578},"can",[],{"type":20,"value":581}," create a swapchain whose present mode ",{"type":15,"tag":471,"props":583,"children":584},{"type":578},[],{"type":20,"value":586}," be modified\nthrough the use of ",{"type":15,"tag":373,"props":588,"children":590},{"href":589},"/man/VkSwapchainPresentModesCreateInfoKHR",[591],{"type":20,"value":592},"VkSwapchainPresentModesCreateInfoKHR",{"type":20,"value":570},{"type":15,"tag":595,"props":596,"children":598},"validity-group",{"name":597},"Valid Usage (Implicit)",[599,624],{"type":15,"tag":600,"props":601,"children":603},"validity-field",{"name":602},"VUID-VkSurfacePresentModeCompatibilityKHR-sType-sType",[604],{"type":15,"tag":16,"props":605,"children":606},{},[607,612,613,616,618],{"type":15,"tag":23,"props":608,"children":610},{"className":609},[],[611],{"type":20,"value":369},{"type":20,"value":469},{"type":15,"tag":471,"props":614,"children":615},{"type":473},[],{"type":20,"value":617}," be ",{"type":15,"tag":23,"props":619,"children":621},{"className":620},[],[622],{"type":20,"value":623},"VK_STRUCTURE_TYPE_SURFACE_PRESENT_MODE_COMPATIBILITY_KHR",{"type":15,"tag":600,"props":625,"children":627},{"name":626},"VUID-VkSurfacePresentModeCompatibilityKHR-pPresentModes-parameter",[628],{"type":15,"tag":16,"props":629,"children":630},{},[631,632,637,639,645,647,652,653,658,659,664,665,668,670,675,676,680],{"type":20,"value":434},{"type":15,"tag":23,"props":633,"children":635},{"className":634},[],[636],{"type":20,"value":408},{"type":20,"value":638}," is not ",{"type":15,"tag":23,"props":640,"children":642},{"className":641},[],[643],{"type":20,"value":644},"0",{"type":20,"value":646},", and ",{"type":15,"tag":23,"props":648,"children":650},{"className":649},[],[651],{"type":20,"value":419},{"type":20,"value":638},{"type":15,"tag":23,"props":654,"children":656},{"className":655},[],[657],{"type":20,"value":397},{"type":20,"value":276},{"type":15,"tag":23,"props":660,"children":662},{"className":661},[],[663],{"type":20,"value":419},{"type":20,"value":469},{"type":15,"tag":471,"props":666,"children":667},{"type":473},[],{"type":20,"value":669}," be a valid pointer to an array of ",{"type":15,"tag":23,"props":671,"children":673},{"className":672},[],[674],{"type":20,"value":408},{"type":20,"value":469},{"type":15,"tag":373,"props":677,"children":678},{"href":424},[679],{"type":20,"value":427},{"type":20,"value":681}," values",{"type":15,"tag":683,"props":684,"children":685},"style",{},[686],{"type":20,"value":687},"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":41,"searchDepth":71,"depth":71,"links":689},[],"markdown",1773054779770]