[{"data":1,"prerenderedAt":517},["ShallowReactive",2],{"0e1LfKZsQR":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":516,"_id":4},"vkLatencySleepNV","Trigger low latency mode Sleep","VK_NV_low_latency2","protos",[],{"type":10,"children":11,"toc":514},"root",[12,20,305,365,403,508],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To provide the synchronization primitive used to delay host CPU work for\nlower latency rendering, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,127],{"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 vkLatencySleepNV(\n VkDevice device,\n VkSwapchainKHR swapchain,\n const VkLatencySleepInfoNV* pSleepInfo);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,97],{"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,107,112,117,122],{"type":13,"tag":38,"props":102,"children":104},{"style":103},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[105],{"type":18,"value":106}," const",{"type":13,"tag":38,"props":108,"children":109},{"style":45},[110],{"type":18,"value":111}," VkLatencySleepInfoNV",{"type":13,"tag":38,"props":113,"children":114},{"style":103},[115],{"type":18,"value":116},"*",{"type":13,"tag":38,"props":118,"children":119},{"style":70},[120],{"type":18,"value":121}," pSleepInfo",{"type":13,"tag":38,"props":123,"children":124},{"style":45},[125],{"type":18,"value":126},");\n",{"type":13,"tag":25,"props":128,"children":133},{"className":129,"code":130,"filename":131,"language":132,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn latency_sleep_nv(\n device: crate :: vk :: vk::Device,\n swapchain: vk::SwapchainKHR,\n p_sleep_info: *const vk::LatencySleepInfoNV,\n) -> vk::Result;\n","Rust","rs",[134],{"type":13,"tag":34,"props":135,"children":136},{"__ignoreMap":31},[137,159,210,239,273],{"type":13,"tag":38,"props":138,"children":139},{"class":40,"line":41},[140,145,150,155],{"type":13,"tag":38,"props":141,"children":142},{"style":103},[143],{"type":18,"value":144},"pub",{"type":13,"tag":38,"props":146,"children":147},{"style":103},[148],{"type":18,"value":149}," fn",{"type":13,"tag":38,"props":151,"children":152},{"style":51},[153],{"type":18,"value":154}," latency_sleep_nv",{"type":13,"tag":38,"props":156,"children":157},{"style":45},[158],{"type":18,"value":58},{"type":13,"tag":38,"props":160,"children":161},{"class":40,"line":61},[162,167,172,177,182,187,192,197,201,206],{"type":13,"tag":38,"props":163,"children":164},{"style":45},[165],{"type":18,"value":166}," device",{"type":13,"tag":38,"props":168,"children":169},{"style":103},[170],{"type":18,"value":171},":",{"type":13,"tag":38,"props":173,"children":174},{"style":103},[175],{"type":18,"value":176}," crate",{"type":13,"tag":38,"props":178,"children":179},{"style":103},[180],{"type":18,"value":181}," ::",{"type":13,"tag":38,"props":183,"children":184},{"style":45},[185],{"type":18,"value":186}," vk ",{"type":13,"tag":38,"props":188,"children":189},{"style":103},[190],{"type":18,"value":191},"::",{"type":13,"tag":38,"props":193,"children":194},{"style":70},[195],{"type":18,"value":196}," vk",{"type":13,"tag":38,"props":198,"children":199},{"style":103},[200],{"type":18,"value":191},{"type":13,"tag":38,"props":202,"children":203},{"style":70},[204],{"type":18,"value":205},"Device",{"type":13,"tag":38,"props":207,"children":208},{"style":45},[209],{"type":18,"value":78},{"type":13,"tag":38,"props":211,"children":212},{"class":40,"line":81},[213,218,222,226,230,235],{"type":13,"tag":38,"props":214,"children":215},{"style":45},[216],{"type":18,"value":217}," swapchain",{"type":13,"tag":38,"props":219,"children":220},{"style":103},[221],{"type":18,"value":171},{"type":13,"tag":38,"props":223,"children":224},{"style":70},[225],{"type":18,"value":196},{"type":13,"tag":38,"props":227,"children":228},{"style":103},[229],{"type":18,"value":191},{"type":13,"tag":38,"props":231,"children":232},{"style":70},[233],{"type":18,"value":234},"SwapchainKHR",{"type":13,"tag":38,"props":236,"children":237},{"style":45},[238],{"type":18,"value":78},{"type":13,"tag":38,"props":240,"children":241},{"class":40,"line":99},[242,247,251,256,260,264,269],{"type":13,"tag":38,"props":243,"children":244},{"style":45},[245],{"type":18,"value":246}," p_sleep_info",{"type":13,"tag":38,"props":248,"children":249},{"style":103},[250],{"type":18,"value":171},{"type":13,"tag":38,"props":252,"children":253},{"style":103},[254],{"type":18,"value":255}," *const",{"type":13,"tag":38,"props":257,"children":258},{"style":70},[259],{"type":18,"value":196},{"type":13,"tag":38,"props":261,"children":262},{"style":103},[263],{"type":18,"value":191},{"type":13,"tag":38,"props":265,"children":266},{"style":70},[267],{"type":18,"value":268},"LatencySleepInfoNV",{"type":13,"tag":38,"props":270,"children":271},{"style":45},[272],{"type":18,"value":78},{"type":13,"tag":38,"props":274,"children":276},{"class":40,"line":275},5,[277,282,287,291,295,300],{"type":13,"tag":38,"props":278,"children":279},{"style":45},[280],{"type":18,"value":281},") ",{"type":13,"tag":38,"props":283,"children":284},{"style":103},[285],{"type":18,"value":286},"->",{"type":13,"tag":38,"props":288,"children":289},{"style":70},[290],{"type":18,"value":196},{"type":13,"tag":38,"props":292,"children":293},{"style":103},[294],{"type":18,"value":191},{"type":13,"tag":38,"props":296,"children":297},{"style":70},[298],{"type":18,"value":299},"Result",{"type":13,"tag":38,"props":301,"children":302},{"style":45},[303],{"type":18,"value":304},";\n",{"type":13,"tag":306,"props":307,"children":308},"ul",{},[309,327,346],{"type":13,"tag":310,"props":311,"children":312},"li",{},[313,318,320,325],{"type":13,"tag":34,"props":314,"children":316},{"className":315},[],[317],{"type":18,"value":73},{"type":18,"value":319}," is the device associated with ",{"type":13,"tag":34,"props":321,"children":323},{"className":322},[],[324],{"type":18,"value":92},{"type":18,"value":326},".",{"type":13,"tag":310,"props":328,"children":329},{},[330,335,337,344],{"type":13,"tag":34,"props":331,"children":333},{"className":332},[],[334],{"type":18,"value":92},{"type":18,"value":336}," is the swapchain to delay associated CPU work based on\n",{"type":13,"tag":338,"props":339,"children":341},"a",{"href":340},"/man/VkLatencySubmissionPresentIdNV",[342],{"type":18,"value":343},"VkLatencySubmissionPresentIdNV",{"type":18,"value":345}," submissions.",{"type":13,"tag":310,"props":347,"children":348},{},[349,355,357,363],{"type":13,"tag":34,"props":350,"children":352},{"className":351},[],[353],{"type":18,"value":354},"pSleepInfo",{"type":18,"value":356}," is a pointer to a ",{"type":13,"tag":338,"props":358,"children":360},{"href":359},"/man/VkLatencySleepInfoNV",[361],{"type":18,"value":362},"VkLatencySleepInfoNV",{"type":18,"value":364}," structure\nspecifying the parameters of the latency sleep.",{"type":13,"tag":14,"props":366,"children":367},{},[368,373,375,380,382,388,390,396,398,401],{"type":13,"tag":34,"props":369,"children":371},{"className":370},[],[372],{"type":18,"value":4},{"type":18,"value":374}," returns immediately.\nApplications ",{"type":13,"tag":376,"props":377,"children":379},"normative",{"type":378},"should",[],{"type":18,"value":381}," use ",{"type":13,"tag":338,"props":383,"children":385},{"href":384},"/man/vkWaitSemaphores",[386],{"type":18,"value":387},"vkWaitSemaphores",{"type":18,"value":389}," with\n",{"type":13,"tag":34,"props":391,"children":393},{"className":392},[],[394],{"type":18,"value":395},"pSleepInfo→signalSemaphore",{"type":18,"value":397}," to delay host CPU work.\nCPU work refers to application work done before presenting which includes\nbut is not limited to: input sampling, simulation, command buffer recording,\ncommand buffer submission, and present submission.\nIt is recommended to call this function before input sampling.\nWhen using this function, it ",{"type":13,"tag":376,"props":399,"children":400},{"type":378},[],{"type":18,"value":402}," be called exactly once between\npresents.",{"type":13,"tag":404,"props":405,"children":407},"validity-group",{"name":406},"Valid Usage (Implicit)",[408,437,461,485],{"type":13,"tag":409,"props":410,"children":412},"validity-field",{"name":411},"VUID-vkLatencySleepNV-device-parameter",[413],{"type":13,"tag":14,"props":414,"children":415},{},[416,421,423,427,429,435],{"type":13,"tag":34,"props":417,"children":419},{"className":418},[],[420],{"type":18,"value":73},{"type":18,"value":422}," ",{"type":13,"tag":376,"props":424,"children":426},{"type":425},"must",[],{"type":18,"value":428}," be a valid ",{"type":13,"tag":338,"props":430,"children":432},{"href":431},"/man/VkDevice",[433],{"type":18,"value":434},"VkDevice",{"type":18,"value":436}," handle",{"type":13,"tag":409,"props":438,"children":440},{"name":439},"VUID-vkLatencySleepNV-swapchain-parameter",[441],{"type":13,"tag":14,"props":442,"children":443},{},[444,449,450,453,454,460],{"type":13,"tag":34,"props":445,"children":447},{"className":446},[],[448],{"type":18,"value":92},{"type":18,"value":422},{"type":13,"tag":376,"props":451,"children":452},{"type":425},[],{"type":18,"value":428},{"type":13,"tag":338,"props":455,"children":457},{"href":456},"/man/VkSwapchainKHR",[458],{"type":18,"value":459},"VkSwapchainKHR",{"type":18,"value":436},{"type":13,"tag":409,"props":462,"children":464},{"name":463},"VUID-vkLatencySleepNV-pSleepInfo-parameter",[465],{"type":13,"tag":14,"props":466,"children":467},{},[468,473,474,477,479,483],{"type":13,"tag":34,"props":469,"children":471},{"className":470},[],[472],{"type":18,"value":354},{"type":18,"value":422},{"type":13,"tag":376,"props":475,"children":476},{"type":425},[],{"type":18,"value":478}," be a valid pointer to a valid ",{"type":13,"tag":338,"props":480,"children":481},{"href":359},[482],{"type":18,"value":362},{"type":18,"value":484}," structure",{"type":13,"tag":409,"props":486,"children":488},{"name":487},"VUID-vkLatencySleepNV-swapchain-parent",[489],{"type":13,"tag":14,"props":490,"children":491},{},[492,497,498,501,503],{"type":13,"tag":34,"props":493,"children":495},{"className":494},[],[496],{"type":18,"value":92},{"type":18,"value":422},{"type":13,"tag":376,"props":499,"children":500},{"type":425},[],{"type":18,"value":502}," have been created, allocated, or retrieved from ",{"type":13,"tag":34,"props":504,"children":506},{"className":505},[],[507],{"type":18,"value":73},{"type":13,"tag":509,"props":510,"children":511},"style",{},[512],{"type":18,"value":513},"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":515},[],"markdown",1725732622409]