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