[{"data":1,"prerenderedAt":575},["ShallowReactive",2],{"BLHVf6Lapd":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":574,"_id":4},"vkGetSwapchainCounterEXT","Query the current value of a surface counter","VK_EXT_display_control","protos",[],{"type":10,"children":11,"toc":572},"root",[12,20,326,396,415,443,566],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","The requested counters become active when the first presentation command for\nthe associated swapchain is processed by the presentation engine.\nTo query the value of an active counter, use:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,135],{"type":13,"tag":25,"props":26,"children":32},"pre",{"className":27,"code":28,"filename":29,"language":30,"meta":31,"style":31},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkGetSwapchainCounterEXT(\n VkDevice device,\n VkSwapchainKHR swapchain,\n VkSurfaceCounterFlagBitsEXT counter,\n uint64_t* pCounterValue);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,97,115],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,54],{"type":13,"tag":38,"props":44,"children":46},{"style":45},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[47],{"type":18,"value":48},"VkResult ",{"type":13,"tag":38,"props":50,"children":52},{"style":51},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[53],{"type":18,"value":4},{"type":13,"tag":38,"props":55,"children":56},{"style":45},[57],{"type":18,"value":58},"(\n",{"type":13,"tag":38,"props":60,"children":62},{"class":40,"line":61},2,[63,68,74],{"type":13,"tag":38,"props":64,"children":65},{"style":45},[66],{"type":18,"value":67}," VkDevice ",{"type":13,"tag":38,"props":69,"children":71},{"style":70},"--shiki-default:#953800;--shiki-dark:#FFA657",[72],{"type":18,"value":73},"device",{"type":13,"tag":38,"props":75,"children":76},{"style":45},[77],{"type":18,"value":78},",\n",{"type":13,"tag":38,"props":80,"children":82},{"class":40,"line":81},3,[83,88,93],{"type":13,"tag":38,"props":84,"children":85},{"style":45},[86],{"type":18,"value":87}," VkSwapchainKHR ",{"type":13,"tag":38,"props":89,"children":90},{"style":70},[91],{"type":18,"value":92},"swapchain",{"type":13,"tag":38,"props":94,"children":95},{"style":45},[96],{"type":18,"value":78},{"type":13,"tag":38,"props":98,"children":100},{"class":40,"line":99},4,[101,106,111],{"type":13,"tag":38,"props":102,"children":103},{"style":45},[104],{"type":18,"value":105}," VkSurfaceCounterFlagBitsEXT ",{"type":13,"tag":38,"props":107,"children":108},{"style":70},[109],{"type":18,"value":110},"counter",{"type":13,"tag":38,"props":112,"children":113},{"style":45},[114],{"type":18,"value":78},{"type":13,"tag":38,"props":116,"children":118},{"class":40,"line":117},5,[119,125,130],{"type":13,"tag":38,"props":120,"children":122},{"style":121},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[123],{"type":18,"value":124}," uint64_t*",{"type":13,"tag":38,"props":126,"children":127},{"style":70},[128],{"type":18,"value":129}," pCounterValue",{"type":13,"tag":38,"props":131,"children":132},{"style":45},[133],{"type":18,"value":134},");\n",{"type":13,"tag":25,"props":136,"children":141},{"className":137,"code":138,"filename":139,"language":140,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_swapchain_counter_ext(\n device: crate :: vk :: vk::Device,\n swapchain: vk::SwapchainKHR,\n counter: SurfaceCounterFlagsEXT,\n p_counter_value: *mut u64,\n) -> vk::Result;\n","Rust","rs",[142],{"type":13,"tag":34,"props":143,"children":144},{"__ignoreMap":31},[145,167,218,247,268,294],{"type":13,"tag":38,"props":146,"children":147},{"class":40,"line":41},[148,153,158,163],{"type":13,"tag":38,"props":149,"children":150},{"style":121},[151],{"type":18,"value":152},"pub",{"type":13,"tag":38,"props":154,"children":155},{"style":121},[156],{"type":18,"value":157}," fn",{"type":13,"tag":38,"props":159,"children":160},{"style":51},[161],{"type":18,"value":162}," get_swapchain_counter_ext",{"type":13,"tag":38,"props":164,"children":165},{"style":45},[166],{"type":18,"value":58},{"type":13,"tag":38,"props":168,"children":169},{"class":40,"line":61},[170,175,180,185,190,195,200,205,209,214],{"type":13,"tag":38,"props":171,"children":172},{"style":45},[173],{"type":18,"value":174}," device",{"type":13,"tag":38,"props":176,"children":177},{"style":121},[178],{"type":18,"value":179},":",{"type":13,"tag":38,"props":181,"children":182},{"style":121},[183],{"type":18,"value":184}," crate",{"type":13,"tag":38,"props":186,"children":187},{"style":121},[188],{"type":18,"value":189}," ::",{"type":13,"tag":38,"props":191,"children":192},{"style":45},[193],{"type":18,"value":194}," vk ",{"type":13,"tag":38,"props":196,"children":197},{"style":121},[198],{"type":18,"value":199},"::",{"type":13,"tag":38,"props":201,"children":202},{"style":70},[203],{"type":18,"value":204}," vk",{"type":13,"tag":38,"props":206,"children":207},{"style":121},[208],{"type":18,"value":199},{"type":13,"tag":38,"props":210,"children":211},{"style":70},[212],{"type":18,"value":213},"Device",{"type":13,"tag":38,"props":215,"children":216},{"style":45},[217],{"type":18,"value":78},{"type":13,"tag":38,"props":219,"children":220},{"class":40,"line":81},[221,226,230,234,238,243],{"type":13,"tag":38,"props":222,"children":223},{"style":45},[224],{"type":18,"value":225}," swapchain",{"type":13,"tag":38,"props":227,"children":228},{"style":121},[229],{"type":18,"value":179},{"type":13,"tag":38,"props":231,"children":232},{"style":70},[233],{"type":18,"value":204},{"type":13,"tag":38,"props":235,"children":236},{"style":121},[237],{"type":18,"value":199},{"type":13,"tag":38,"props":239,"children":240},{"style":70},[241],{"type":18,"value":242},"SwapchainKHR",{"type":13,"tag":38,"props":244,"children":245},{"style":45},[246],{"type":18,"value":78},{"type":13,"tag":38,"props":248,"children":249},{"class":40,"line":99},[250,255,259,264],{"type":13,"tag":38,"props":251,"children":252},{"style":45},[253],{"type":18,"value":254}," counter",{"type":13,"tag":38,"props":256,"children":257},{"style":121},[258],{"type":18,"value":179},{"type":13,"tag":38,"props":260,"children":261},{"style":70},[262],{"type":18,"value":263}," SurfaceCounterFlagsEXT",{"type":13,"tag":38,"props":265,"children":266},{"style":45},[267],{"type":18,"value":78},{"type":13,"tag":38,"props":269,"children":270},{"class":40,"line":117},[271,276,280,285,290],{"type":13,"tag":38,"props":272,"children":273},{"style":45},[274],{"type":18,"value":275}," p_counter_value",{"type":13,"tag":38,"props":277,"children":278},{"style":121},[279],{"type":18,"value":179},{"type":13,"tag":38,"props":281,"children":282},{"style":121},[283],{"type":18,"value":284}," *mut",{"type":13,"tag":38,"props":286,"children":287},{"style":70},[288],{"type":18,"value":289}," u64",{"type":13,"tag":38,"props":291,"children":292},{"style":45},[293],{"type":18,"value":78},{"type":13,"tag":38,"props":295,"children":297},{"class":40,"line":296},6,[298,303,308,312,316,321],{"type":13,"tag":38,"props":299,"children":300},{"style":45},[301],{"type":18,"value":302},") ",{"type":13,"tag":38,"props":304,"children":305},{"style":121},[306],{"type":18,"value":307},"->",{"type":13,"tag":38,"props":309,"children":310},{"style":70},[311],{"type":18,"value":204},{"type":13,"tag":38,"props":313,"children":314},{"style":121},[315],{"type":18,"value":199},{"type":13,"tag":38,"props":317,"children":318},{"style":70},[319],{"type":18,"value":320},"Result",{"type":13,"tag":38,"props":322,"children":323},{"style":45},[324],{"type":18,"value":325},";\n",{"type":13,"tag":327,"props":328,"children":329},"ul",{},[330,357,367,385],{"type":13,"tag":331,"props":332,"children":333},"li",{},[334,339,341,348,350,355],{"type":13,"tag":34,"props":335,"children":337},{"className":336},[],[338],{"type":18,"value":73},{"type":18,"value":340}," is the ",{"type":13,"tag":342,"props":343,"children":345},"a",{"href":344},"/man/VkDevice",[346],{"type":18,"value":347},"VkDevice",{"type":18,"value":349}," associated with ",{"type":13,"tag":34,"props":351,"children":353},{"className":352},[],[354],{"type":18,"value":92},{"type":18,"value":356},".",{"type":13,"tag":331,"props":358,"children":359},{},[360,365],{"type":13,"tag":34,"props":361,"children":363},{"className":362},[],[364],{"type":18,"value":92},{"type":18,"value":366}," is the swapchain from which to query the counter value.",{"type":13,"tag":331,"props":368,"children":369},{},[370,375,377,383],{"type":13,"tag":34,"props":371,"children":373},{"className":372},[],[374],{"type":18,"value":110},{"type":18,"value":376}," is a ",{"type":13,"tag":342,"props":378,"children":380},{"href":379},"/man/VkSurfaceCounterFlagBitsEXT",[381],{"type":18,"value":382},"VkSurfaceCounterFlagBitsEXT",{"type":18,"value":384}," value specifying\nthe counter to query.",{"type":13,"tag":331,"props":386,"children":387},{},[388,394],{"type":13,"tag":34,"props":389,"children":391},{"className":390},[],[392],{"type":18,"value":393},"pCounterValue",{"type":18,"value":395}," will return the current value of the counter.",{"type":13,"tag":14,"props":397,"children":398},{},[399,401,406,408,414],{"type":18,"value":400},"If a counter is not available because the swapchain is out of date, the\nimplementation ",{"type":13,"tag":402,"props":403,"children":405},"normative",{"type":404},"may",[],{"type":18,"value":407}," return ",{"type":13,"tag":34,"props":409,"children":411},{"className":410},[],[412],{"type":18,"value":413},"VK_ERROR_OUT_OF_DATE_KHR",{"type":18,"value":356},{"type":13,"tag":416,"props":417,"children":419},"validity-group",{"name":418},"Valid Usage",[420],{"type":13,"tag":421,"props":422,"children":424},"validity-field",{"name":423},"VUID-vkGetSwapchainCounterEXT-swapchain-01245",[425],{"type":13,"tag":14,"props":426,"children":427},{},[428,430,435,437,441],{"type":18,"value":429},"One or more present commands on ",{"type":13,"tag":34,"props":431,"children":433},{"className":432},[],[434],{"type":18,"value":92},{"type":18,"value":436}," ",{"type":13,"tag":402,"props":438,"children":440},{"type":439},"must",[],{"type":18,"value":442}," have been\nprocessed by the presentation engine",{"type":13,"tag":416,"props":444,"children":446},{"name":445},"Valid Usage (Implicit)",[447,471,495,518,543],{"type":13,"tag":421,"props":448,"children":450},{"name":449},"VUID-vkGetSwapchainCounterEXT-device-parameter",[451],{"type":13,"tag":14,"props":452,"children":453},{},[454,459,460,463,465,469],{"type":13,"tag":34,"props":455,"children":457},{"className":456},[],[458],{"type":18,"value":73},{"type":18,"value":436},{"type":13,"tag":402,"props":461,"children":462},{"type":439},[],{"type":18,"value":464}," be a valid ",{"type":13,"tag":342,"props":466,"children":467},{"href":344},[468],{"type":18,"value":347},{"type":18,"value":470}," handle",{"type":13,"tag":421,"props":472,"children":474},{"name":473},"VUID-vkGetSwapchainCounterEXT-swapchain-parameter",[475],{"type":13,"tag":14,"props":476,"children":477},{},[478,483,484,487,488,494],{"type":13,"tag":34,"props":479,"children":481},{"className":480},[],[482],{"type":18,"value":92},{"type":18,"value":436},{"type":13,"tag":402,"props":485,"children":486},{"type":439},[],{"type":18,"value":464},{"type":13,"tag":342,"props":489,"children":491},{"href":490},"/man/VkSwapchainKHR",[492],{"type":18,"value":493},"VkSwapchainKHR",{"type":18,"value":470},{"type":13,"tag":421,"props":496,"children":498},{"name":497},"VUID-vkGetSwapchainCounterEXT-counter-parameter",[499],{"type":13,"tag":14,"props":500,"children":501},{},[502,507,508,511,512,516],{"type":13,"tag":34,"props":503,"children":505},{"className":504},[],[506],{"type":18,"value":110},{"type":18,"value":436},{"type":13,"tag":402,"props":509,"children":510},{"type":439},[],{"type":18,"value":464},{"type":13,"tag":342,"props":513,"children":514},{"href":379},[515],{"type":18,"value":382},{"type":18,"value":517}," value",{"type":13,"tag":421,"props":519,"children":521},{"name":520},"VUID-vkGetSwapchainCounterEXT-pCounterValue-parameter",[522],{"type":13,"tag":14,"props":523,"children":524},{},[525,530,531,534,536,542],{"type":13,"tag":34,"props":526,"children":528},{"className":527},[],[529],{"type":18,"value":393},{"type":18,"value":436},{"type":13,"tag":402,"props":532,"children":533},{"type":439},[],{"type":18,"value":535}," be a valid pointer to a ",{"type":13,"tag":34,"props":537,"children":539},{"className":538},[],[540],{"type":18,"value":541},"uint64_t",{"type":18,"value":517},{"type":13,"tag":421,"props":544,"children":546},{"name":545},"VUID-vkGetSwapchainCounterEXT-swapchain-parent",[547],{"type":13,"tag":14,"props":548,"children":549},{},[550,555,556,559,561],{"type":13,"tag":34,"props":551,"children":553},{"className":552},[],[554],{"type":18,"value":92},{"type":18,"value":436},{"type":13,"tag":402,"props":557,"children":558},{"type":439},[],{"type":18,"value":560}," have been created, allocated, or retrieved from ",{"type":13,"tag":34,"props":562,"children":564},{"className":563},[],[565],{"type":18,"value":73},{"type":13,"tag":567,"props":568,"children":569},"style",{},[570],{"type":18,"value":571},"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":31,"searchDepth":61,"depth":61,"links":573},[],"markdown",1725732622001]