[{"data":1,"prerenderedAt":497},["ShallowReactive",2],{"$fJAwAR3feelD5nedqaIGO0T8NjuZQBf9BqnqMDbY1It0":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":496,"_id":4},"vkSetSwapchainPresentTimingQueueSizeEXT","Allocate memory for the swapchain-internal timing results queue","VK_EXT_present_timing","protos",[],{"type":10,"children":11,"toc":494},"root",[12,20,25,268,311,338,386,464,488],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","In order to collect timing information about presentation, a swapchain needs\nan internal queue to store asynchronously updated results until applications\ncollect them.",{"type":13,"tag":14,"props":21,"children":22},{},[23],{"type":18,"value":24},"To allocate the swapchain’s internal timing results queue, call:",{"type":13,"tag":26,"props":27,"children":28},"code-group",{},[29,122],{"type":13,"tag":30,"props":31,"children":37},"pre",{"className":32,"code":33,"filename":34,"language":35,"meta":36,"style":36},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkSetSwapchainPresentTimingQueueSizeEXT(\n VkDevice device,\n VkSwapchainKHR swapchain,\n uint32_t size);\n","C","c","",[38],{"type":13,"tag":39,"props":40,"children":41},"code",{"__ignoreMap":36},[42,64,84,102],{"type":13,"tag":43,"props":44,"children":47},"span",{"class":45,"line":46},"line",1,[48,54,59],{"type":13,"tag":43,"props":49,"children":51},{"style":50},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[52],{"type":18,"value":53},"VkResult ",{"type":13,"tag":43,"props":55,"children":57},{"style":56},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[58],{"type":18,"value":4},{"type":13,"tag":43,"props":60,"children":61},{"style":50},[62],{"type":18,"value":63},"(\n",{"type":13,"tag":43,"props":65,"children":67},{"class":45,"line":66},2,[68,73,79],{"type":13,"tag":43,"props":69,"children":70},{"style":50},[71],{"type":18,"value":72}," VkDevice ",{"type":13,"tag":43,"props":74,"children":76},{"style":75},"--shiki-default:#953800;--shiki-dark:#FFA657",[77],{"type":18,"value":78},"device",{"type":13,"tag":43,"props":80,"children":81},{"style":50},[82],{"type":18,"value":83},",\n",{"type":13,"tag":43,"props":85,"children":87},{"class":45,"line":86},3,[88,93,98],{"type":13,"tag":43,"props":89,"children":90},{"style":50},[91],{"type":18,"value":92}," VkSwapchainKHR ",{"type":13,"tag":43,"props":94,"children":95},{"style":75},[96],{"type":18,"value":97},"swapchain",{"type":13,"tag":43,"props":99,"children":100},{"style":50},[101],{"type":18,"value":83},{"type":13,"tag":43,"props":103,"children":105},{"class":45,"line":104},4,[106,112,117],{"type":13,"tag":43,"props":107,"children":109},{"style":108},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[110],{"type":18,"value":111}," uint32_t",{"type":13,"tag":43,"props":113,"children":114},{"style":75},[115],{"type":18,"value":116}," size",{"type":13,"tag":43,"props":118,"children":119},{"style":50},[120],{"type":18,"value":121},");\n",{"type":13,"tag":30,"props":123,"children":128},{"className":124,"code":125,"filename":126,"language":127,"meta":36,"style":36},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn set_swapchain_present_timing_queue_size_ext(\n device: vk::Device,\n swapchain: vk::SwapchainKHR,\n size: u32,\n) -> vk::Result;\n","Rust","rs",[129],{"type":13,"tag":39,"props":130,"children":131},{"__ignoreMap":36},[132,154,186,215,236],{"type":13,"tag":43,"props":133,"children":134},{"class":45,"line":46},[135,140,145,150],{"type":13,"tag":43,"props":136,"children":137},{"style":108},[138],{"type":18,"value":139},"pub",{"type":13,"tag":43,"props":141,"children":142},{"style":108},[143],{"type":18,"value":144}," fn",{"type":13,"tag":43,"props":146,"children":147},{"style":56},[148],{"type":18,"value":149}," set_swapchain_present_timing_queue_size_ext",{"type":13,"tag":43,"props":151,"children":152},{"style":50},[153],{"type":18,"value":63},{"type":13,"tag":43,"props":155,"children":156},{"class":45,"line":66},[157,162,167,172,177,182],{"type":13,"tag":43,"props":158,"children":159},{"style":50},[160],{"type":18,"value":161}," device",{"type":13,"tag":43,"props":163,"children":164},{"style":108},[165],{"type":18,"value":166},":",{"type":13,"tag":43,"props":168,"children":169},{"style":75},[170],{"type":18,"value":171}," vk",{"type":13,"tag":43,"props":173,"children":174},{"style":108},[175],{"type":18,"value":176},"::",{"type":13,"tag":43,"props":178,"children":179},{"style":75},[180],{"type":18,"value":181},"Device",{"type":13,"tag":43,"props":183,"children":184},{"style":50},[185],{"type":18,"value":83},{"type":13,"tag":43,"props":187,"children":188},{"class":45,"line":86},[189,194,198,202,206,211],{"type":13,"tag":43,"props":190,"children":191},{"style":50},[192],{"type":18,"value":193}," swapchain",{"type":13,"tag":43,"props":195,"children":196},{"style":108},[197],{"type":18,"value":166},{"type":13,"tag":43,"props":199,"children":200},{"style":75},[201],{"type":18,"value":171},{"type":13,"tag":43,"props":203,"children":204},{"style":108},[205],{"type":18,"value":176},{"type":13,"tag":43,"props":207,"children":208},{"style":75},[209],{"type":18,"value":210},"SwapchainKHR",{"type":13,"tag":43,"props":212,"children":213},{"style":50},[214],{"type":18,"value":83},{"type":13,"tag":43,"props":216,"children":217},{"class":45,"line":104},[218,223,227,232],{"type":13,"tag":43,"props":219,"children":220},{"style":50},[221],{"type":18,"value":222}," size",{"type":13,"tag":43,"props":224,"children":225},{"style":108},[226],{"type":18,"value":166},{"type":13,"tag":43,"props":228,"children":229},{"style":75},[230],{"type":18,"value":231}," u32",{"type":13,"tag":43,"props":233,"children":234},{"style":50},[235],{"type":18,"value":83},{"type":13,"tag":43,"props":237,"children":239},{"class":45,"line":238},5,[240,245,250,254,258,263],{"type":13,"tag":43,"props":241,"children":242},{"style":50},[243],{"type":18,"value":244},") ",{"type":13,"tag":43,"props":246,"children":247},{"style":108},[248],{"type":18,"value":249},"->",{"type":13,"tag":43,"props":251,"children":252},{"style":75},[253],{"type":18,"value":171},{"type":13,"tag":43,"props":255,"children":256},{"style":108},[257],{"type":18,"value":176},{"type":13,"tag":43,"props":259,"children":260},{"style":75},[261],{"type":18,"value":262},"Result",{"type":13,"tag":43,"props":264,"children":265},{"style":50},[266],{"type":18,"value":267},";\n",{"type":13,"tag":269,"props":270,"children":271},"ul",{},[272,290,300],{"type":13,"tag":273,"props":274,"children":275},"li",{},[276,281,283,288],{"type":13,"tag":39,"props":277,"children":279},{"className":278},[],[280],{"type":18,"value":78},{"type":18,"value":282}," is the device associated with ",{"type":13,"tag":39,"props":284,"children":286},{"className":285},[],[287],{"type":18,"value":97},{"type":18,"value":289},".",{"type":13,"tag":273,"props":291,"children":292},{},[293,298],{"type":13,"tag":39,"props":294,"children":296},{"className":295},[],[297],{"type":18,"value":97},{"type":18,"value":299}," is the swapchain to allocate a results queue for.",{"type":13,"tag":273,"props":301,"children":302},{},[303,309],{"type":13,"tag":39,"props":304,"children":306},{"className":305},[],[307],{"type":18,"value":308},"size",{"type":18,"value":310}," is the requested number of slots in the internal results\nqueue.",{"type":13,"tag":14,"props":312,"children":313},{},[314,316,321,323,328,330,336],{"type":18,"value":315},"If this function is called multiple times, the internal queue is reallocated\nto fit the new ",{"type":13,"tag":39,"props":317,"children":319},{"className":318},[],[320],{"type":18,"value":308},{"type":18,"value":322},".\nIf the new ",{"type":13,"tag":39,"props":324,"children":326},{"className":325},[],[327],{"type":18,"value":308},{"type":18,"value":329}," is less than the current number of outstanding\nresults, ",{"type":13,"tag":39,"props":331,"children":333},{"className":332},[],[334],{"type":18,"value":335},"VK_NOT_READY",{"type":18,"value":337}," is returned and no allocation is performed.",{"type":13,"tag":339,"props":340,"children":342},"validity-group",{"name":341},"Valid Usage",[343],{"type":13,"tag":344,"props":345,"children":347},"validity-field",{"name":346},"VUID-vkSetSwapchainPresentTimingQueueSizeEXT-swapchain-12229",[348],{"type":13,"tag":14,"props":349,"children":350},{},[351,356,358,363,365,371,372,378,380],{"type":13,"tag":39,"props":352,"children":354},{"className":353},[],[355],{"type":18,"value":97},{"type":18,"value":357}," ",{"type":13,"tag":359,"props":360,"children":362},"normative",{"type":361},"must",[],{"type":18,"value":364}," have been created with\n",{"type":13,"tag":39,"props":366,"children":368},{"className":367},[],[369],{"type":18,"value":370},"VkSwapchainCreateInfoKHR",{"type":18,"value":176},{"type":13,"tag":39,"props":373,"children":375},{"className":374},[],[376],{"type":18,"value":377},"flags",{"type":18,"value":379}," containing\n",{"type":13,"tag":39,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":385},"VK_SWAPCHAIN_CREATE_PRESENT_TIMING_BIT_EXT",{"type":13,"tag":339,"props":387,"children":389},{"name":388},"Valid Usage (Implicit)",[390,417,441],{"type":13,"tag":344,"props":391,"children":393},{"name":392},"VUID-vkSetSwapchainPresentTimingQueueSizeEXT-device-parameter",[394],{"type":13,"tag":14,"props":395,"children":396},{},[397,402,403,406,408,415],{"type":13,"tag":39,"props":398,"children":400},{"className":399},[],[401],{"type":18,"value":78},{"type":18,"value":357},{"type":13,"tag":359,"props":404,"children":405},{"type":361},[],{"type":18,"value":407}," be a valid ",{"type":13,"tag":409,"props":410,"children":412},"a",{"href":411},"/man/VkDevice",[413],{"type":18,"value":414},"VkDevice",{"type":18,"value":416}," handle",{"type":13,"tag":344,"props":418,"children":420},{"name":419},"VUID-vkSetSwapchainPresentTimingQueueSizeEXT-swapchain-parameter",[421],{"type":13,"tag":14,"props":422,"children":423},{},[424,429,430,433,434,440],{"type":13,"tag":39,"props":425,"children":427},{"className":426},[],[428],{"type":18,"value":97},{"type":18,"value":357},{"type":13,"tag":359,"props":431,"children":432},{"type":361},[],{"type":18,"value":407},{"type":13,"tag":409,"props":435,"children":437},{"href":436},"/man/VkSwapchainKHR",[438],{"type":18,"value":439},"VkSwapchainKHR",{"type":18,"value":416},{"type":13,"tag":344,"props":442,"children":444},{"name":443},"VUID-vkSetSwapchainPresentTimingQueueSizeEXT-swapchain-parent",[445],{"type":13,"tag":14,"props":446,"children":447},{},[448,453,454,457,459],{"type":13,"tag":39,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":97},{"type":18,"value":357},{"type":13,"tag":359,"props":455,"children":456},{"type":361},[],{"type":18,"value":458}," have been created, allocated, or retrieved from ",{"type":13,"tag":39,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":78},{"type":13,"tag":465,"props":466,"children":468},"validity-box",{"name":467},"Host Synchronization",[469],{"type":13,"tag":269,"props":470,"children":471},{},[472],{"type":13,"tag":273,"props":473,"children":474},{},[475,477,482,483,486],{"type":18,"value":476},"Host access to ",{"type":13,"tag":39,"props":478,"children":480},{"className":479},[],[481],{"type":18,"value":97},{"type":18,"value":357},{"type":13,"tag":359,"props":484,"children":485},{"type":361},[],{"type":18,"value":487}," be externally synchronized",{"type":13,"tag":489,"props":490,"children":491},"style",{},[492],{"type":18,"value":493},"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":36,"searchDepth":66,"depth":66,"links":495},[],"markdown",1773121652147]