[{"data":1,"prerenderedAt":460},["ShallowReactive",2],{"$fq7lYzy6-kNQXr8nh2XGaSiYrrk0PCysX7OaozD82NvQ":3},{"title":4,"description":5,"parent":6,"structextends":7,"type":9,"xrefs":10,"body":11,"_type":459,"_id":4},"VkSetPresentConfigNV","Structure specifying present metering configuration","VK_NV_present_metering",[8],"VkPresentInfoKHR","structs",[],{"type":12,"children":13,"toc":457},"root",[14,29,41,53,293,357,396,423,451],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19,22],{"type":20,"value":21},"text","Present Metering evenly paces out the next ",{"type":15,"tag":23,"props":24,"children":26},"code",{"className":25},[],[27],{"type":20,"value":28},"numFramesPerBatch",{"type":15,"tag":16,"props":30,"children":31},{},[32,39],{"type":15,"tag":33,"props":34,"children":36},"a",{"href":35},"/man/vkQueuePresentKHR",[37],{"type":20,"value":38},"vkQueuePresentKHR",{"type":20,"value":40}," presents.\nThis gives smoother pacing between presents in applications with frame\ngeneration integrations.",{"type":15,"tag":16,"props":42,"children":43},{},[44,46,51],{"type":20,"value":45},"The ",{"type":15,"tag":23,"props":47,"children":49},{"className":48},[],[50],{"type":20,"value":4},{"type":20,"value":52}," structure is defined as:",{"type":15,"tag":54,"props":55,"children":56},"code-group",{},[57,156],{"type":15,"tag":58,"props":59,"children":65},"pre",{"className":60,"code":61,"filename":62,"language":63,"meta":64,"style":64},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkSetPresentConfigNV {\n VkStructureType sType;\n const void* pNext;\n uint32_t numFramesPerBatch;\n uint32_t presentConfigFeedback;\n} VkSetPresentConfigNV;\n","C","c","",[66],{"type":15,"tag":23,"props":67,"children":68},{"__ignoreMap":64},[69,92,101,120,134,147],{"type":15,"tag":70,"props":71,"children":74},"span",{"class":72,"line":73},"line",1,[75,81,86],{"type":15,"tag":70,"props":76,"children":78},{"style":77},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[79],{"type":20,"value":80},"typedef",{"type":15,"tag":70,"props":82,"children":83},{"style":77},[84],{"type":20,"value":85}," struct",{"type":15,"tag":70,"props":87,"children":89},{"style":88},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[90],{"type":20,"value":91}," VkSetPresentConfigNV {\n",{"type":15,"tag":70,"props":93,"children":95},{"class":72,"line":94},2,[96],{"type":15,"tag":70,"props":97,"children":98},{"style":88},[99],{"type":20,"value":100}," VkStructureType sType;\n",{"type":15,"tag":70,"props":102,"children":104},{"class":72,"line":103},3,[105,110,115],{"type":15,"tag":70,"props":106,"children":107},{"style":77},[108],{"type":20,"value":109}," const",{"type":15,"tag":70,"props":111,"children":112},{"style":77},[113],{"type":20,"value":114}," void*",{"type":15,"tag":70,"props":116,"children":117},{"style":88},[118],{"type":20,"value":119}," pNext;\n",{"type":15,"tag":70,"props":121,"children":123},{"class":72,"line":122},4,[124,129],{"type":15,"tag":70,"props":125,"children":126},{"style":77},[127],{"type":20,"value":128}," uint32_t",{"type":15,"tag":70,"props":130,"children":131},{"style":88},[132],{"type":20,"value":133}," numFramesPerBatch;\n",{"type":15,"tag":70,"props":135,"children":137},{"class":72,"line":136},5,[138,142],{"type":15,"tag":70,"props":139,"children":140},{"style":77},[141],{"type":20,"value":128},{"type":15,"tag":70,"props":143,"children":144},{"style":88},[145],{"type":20,"value":146}," presentConfigFeedback;\n",{"type":15,"tag":70,"props":148,"children":150},{"class":72,"line":149},6,[151],{"type":15,"tag":70,"props":152,"children":153},{"style":88},[154],{"type":20,"value":155},"} VkSetPresentConfigNV;\n",{"type":15,"tag":58,"props":157,"children":162},{"className":158,"code":159,"filename":160,"language":161,"meta":64,"style":64},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SetPresentConfigNV {\n s_type: vk::StructureType,\n p_next: *const c_void,\n num_frames_per_batch: u32,\n present_config_feedback: u32,\n}\n","Rust","rs",[163],{"type":15,"tag":23,"props":164,"children":165},{"__ignoreMap":64},[166,189,222,244,265,285],{"type":15,"tag":70,"props":167,"children":168},{"class":72,"line":73},[169,174,178,184],{"type":15,"tag":70,"props":170,"children":171},{"style":77},[172],{"type":20,"value":173},"pub",{"type":15,"tag":70,"props":175,"children":176},{"style":77},[177],{"type":20,"value":85},{"type":15,"tag":70,"props":179,"children":181},{"style":180},"--shiki-default:#953800;--shiki-dark:#FFA657",[182],{"type":20,"value":183}," SetPresentConfigNV",{"type":15,"tag":70,"props":185,"children":186},{"style":88},[187],{"type":20,"value":188}," {\n",{"type":15,"tag":70,"props":190,"children":191},{"class":72,"line":94},[192,197,202,207,212,217],{"type":15,"tag":70,"props":193,"children":194},{"style":88},[195],{"type":20,"value":196}," s_type",{"type":15,"tag":70,"props":198,"children":199},{"style":77},[200],{"type":20,"value":201},":",{"type":15,"tag":70,"props":203,"children":204},{"style":180},[205],{"type":20,"value":206}," vk",{"type":15,"tag":70,"props":208,"children":209},{"style":77},[210],{"type":20,"value":211},"::",{"type":15,"tag":70,"props":213,"children":214},{"style":180},[215],{"type":20,"value":216},"StructureType",{"type":15,"tag":70,"props":218,"children":219},{"style":88},[220],{"type":20,"value":221},",\n",{"type":15,"tag":70,"props":223,"children":224},{"class":72,"line":103},[225,230,234,239],{"type":15,"tag":70,"props":226,"children":227},{"style":88},[228],{"type":20,"value":229}," p_next",{"type":15,"tag":70,"props":231,"children":232},{"style":77},[233],{"type":20,"value":201},{"type":15,"tag":70,"props":235,"children":236},{"style":77},[237],{"type":20,"value":238}," *const",{"type":15,"tag":70,"props":240,"children":241},{"style":88},[242],{"type":20,"value":243}," c_void,\n",{"type":15,"tag":70,"props":245,"children":246},{"class":72,"line":122},[247,252,256,261],{"type":15,"tag":70,"props":248,"children":249},{"style":88},[250],{"type":20,"value":251}," num_frames_per_batch",{"type":15,"tag":70,"props":253,"children":254},{"style":77},[255],{"type":20,"value":201},{"type":15,"tag":70,"props":257,"children":258},{"style":180},[259],{"type":20,"value":260}," u32",{"type":15,"tag":70,"props":262,"children":263},{"style":88},[264],{"type":20,"value":221},{"type":15,"tag":70,"props":266,"children":267},{"class":72,"line":136},[268,273,277,281],{"type":15,"tag":70,"props":269,"children":270},{"style":88},[271],{"type":20,"value":272}," present_config_feedback",{"type":15,"tag":70,"props":274,"children":275},{"style":77},[276],{"type":20,"value":201},{"type":15,"tag":70,"props":278,"children":279},{"style":180},[280],{"type":20,"value":260},{"type":15,"tag":70,"props":282,"children":283},{"style":88},[284],{"type":20,"value":221},{"type":15,"tag":70,"props":286,"children":287},{"class":72,"line":149},[288],{"type":15,"tag":70,"props":289,"children":290},{"style":88},[291],{"type":20,"value":292},"}\n",{"type":15,"tag":294,"props":295,"children":296},"ul",{},[297,317,336,346],{"type":15,"tag":298,"props":299,"children":300},"li",{},[301,307,309,315],{"type":15,"tag":23,"props":302,"children":304},{"className":303},[],[305],{"type":20,"value":306},"sType",{"type":20,"value":308}," is a ",{"type":15,"tag":33,"props":310,"children":312},{"href":311},"/man/VkStructureType",[313],{"type":20,"value":314},"VkStructureType",{"type":20,"value":316}," value identifying this structure.",{"type":15,"tag":298,"props":318,"children":319},{},[320,326,328,334],{"type":15,"tag":23,"props":321,"children":323},{"className":322},[],[324],{"type":20,"value":325},"pNext",{"type":20,"value":327}," is ",{"type":15,"tag":23,"props":329,"children":331},{"className":330},[],[332],{"type":20,"value":333},"NULL",{"type":20,"value":335}," or a pointer to a structure extending this\nstructure.",{"type":15,"tag":298,"props":337,"children":338},{},[339,344],{"type":15,"tag":23,"props":340,"children":342},{"className":341},[],[343],{"type":20,"value":28},{"type":20,"value":345}," is the number of frames to batch",{"type":15,"tag":298,"props":347,"children":348},{},[349,355],{"type":15,"tag":23,"props":350,"children":352},{"className":351},[],[353],{"type":20,"value":354},"presentConfigFeedback",{"type":20,"value":356}," will return the success or error status",{"type":15,"tag":16,"props":358,"children":359},{},[360,362,367,369,374,376,381,383,387,389,394],{"type":20,"value":361},"The metering configuration applies to all swapchains in the array in\n",{"type":15,"tag":33,"props":363,"children":365},{"href":364},"/man/VkPresentInfoKHR",[366],{"type":20,"value":8},{"type":20,"value":368},".\nThe configuration specified by ",{"type":15,"tag":23,"props":370,"children":372},{"className":371},[],[373],{"type":20,"value":4},{"type":20,"value":375}," applies to the\nnext ",{"type":15,"tag":23,"props":377,"children":379},{"className":378},[],[380],{"type":20,"value":28},{"type":20,"value":382}," calls to ",{"type":15,"tag":33,"props":384,"children":385},{"href":35},[386],{"type":20,"value":38},{"type":20,"value":388}," and needs to\nbe updated every ",{"type":15,"tag":23,"props":390,"children":392},{"className":391},[],[393],{"type":20,"value":28},{"type":20,"value":395}," presents.",{"type":15,"tag":397,"props":398,"children":400},"validity-group",{"name":399},"Valid Usage",[401],{"type":15,"tag":402,"props":403,"children":405},"validity-field",{"name":404},"VUID-VkSetPresentConfigNV-numFramesPerBatch-10581",[406],{"type":15,"tag":16,"props":407,"children":408},{},[409,414,416,421],{"type":15,"tag":23,"props":410,"children":412},{"className":411},[],[413],{"type":20,"value":28},{"type":20,"value":415}," ",{"type":15,"tag":417,"props":418,"children":420},"normative",{"type":419},"must",[],{"type":20,"value":422}," not be larger than 8",{"type":15,"tag":397,"props":424,"children":426},{"name":425},"Valid Usage (Implicit)",[427],{"type":15,"tag":402,"props":428,"children":430},{"name":429},"VUID-VkSetPresentConfigNV-sType-sType",[431],{"type":15,"tag":16,"props":432,"children":433},{},[434,439,440,443,445],{"type":15,"tag":23,"props":435,"children":437},{"className":436},[],[438],{"type":20,"value":306},{"type":20,"value":415},{"type":15,"tag":417,"props":441,"children":442},{"type":419},[],{"type":20,"value":444}," be ",{"type":15,"tag":23,"props":446,"children":448},{"className":447},[],[449],{"type":20,"value":450},"VK_STRUCTURE_TYPE_SET_PRESENT_CONFIG_NV",{"type":15,"tag":452,"props":453,"children":454},"style",{},[455],{"type":20,"value":456},"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":64,"searchDepth":94,"depth":94,"links":458},[],"markdown",1775207550636]