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