[{"data":1,"prerenderedAt":543},["ShallowReactive",2],{"VERlnf1DfJ":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":542,"_id":4},"vkSetLatencySleepModeNV","Enable or Disable low latency mode on a swapchain","VK_NV_low_latency2","protos",[],{"type":10,"children":11,"toc":540},"root",[12,20,305,365,431,534],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To enable or disable low latency mode on a swapchain, 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 vkSetLatencySleepModeNV(\n VkDevice device,\n VkSwapchainKHR swapchain,\n const VkLatencySleepModeInfoNV* pSleepModeInfo);\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}," VkLatencySleepModeInfoNV",{"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}," pSleepModeInfo",{"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 set_latency_sleep_mode_nv(\n device: crate :: vk :: vk::Device,\n swapchain: vk::SwapchainKHR,\n p_sleep_mode_info: *const vk::LatencySleepModeInfoNV,\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}," set_latency_sleep_mode_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_mode_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},"LatencySleepModeInfoNV",{"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,337],{"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],{"type":13,"tag":34,"props":331,"children":333},{"className":332},[],[334],{"type":18,"value":92},{"type":18,"value":336}," is the swapchain to enable or disable low latency mode\non.",{"type":13,"tag":310,"props":338,"children":339},{},[340,346,348,354,356,363],{"type":13,"tag":34,"props":341,"children":343},{"className":342},[],[344],{"type":18,"value":345},"pSleepModeInfo",{"type":18,"value":347}," is ",{"type":13,"tag":34,"props":349,"children":351},{"className":350},[],[352],{"type":18,"value":353},"NULL",{"type":18,"value":355}," or a pointer to a\n",{"type":13,"tag":357,"props":358,"children":360},"a",{"href":359},"/man/VkLatencySleepModeInfoNV",[361],{"type":18,"value":362},"VkLatencySleepModeInfoNV",{"type":18,"value":364}," structure specifying the parameters of\nthe latency sleep mode.",{"type":13,"tag":14,"props":366,"children":367},{},[368,370,375,376,381,383,388,390,394,396,401,403,408,410,415,417,423,425,429],{"type":18,"value":369},"If ",{"type":13,"tag":34,"props":371,"children":373},{"className":372},[],[374],{"type":18,"value":345},{"type":18,"value":347},{"type":13,"tag":34,"props":377,"children":379},{"className":378},[],[380],{"type":18,"value":353},{"type":18,"value":382},", ",{"type":13,"tag":34,"props":384,"children":386},{"className":385},[],[387],{"type":18,"value":4},{"type":18,"value":389}," will\ndisable low latency mode, low latency boost, and set the minimum present\ninterval previously specified by ",{"type":13,"tag":357,"props":391,"children":392},{"href":359},[393],{"type":18,"value":362},{"type":18,"value":395}," to zero on\n",{"type":13,"tag":34,"props":397,"children":399},{"className":398},[],[400],{"type":18,"value":92},{"type":18,"value":402},".\nAs an exception to the normal rules for objects which are externally\nsynchronized, the swapchain passed to ",{"type":13,"tag":34,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":4},{"type":18,"value":409}," ",{"type":13,"tag":411,"props":412,"children":414},"normative",{"type":413},"may",[],{"type":18,"value":416}," be\nsimultaneously used by other threads in calls to functions other than\n",{"type":13,"tag":357,"props":418,"children":420},{"href":419},"/man/vkDestroySwapchainKHR",[421],{"type":18,"value":422},"vkDestroySwapchainKHR",{"type":18,"value":424},".\nAccess to the swapchain data associated with this extension ",{"type":13,"tag":411,"props":426,"children":428},{"type":427},"must",[],{"type":18,"value":430}," be atomic\nwithin the implementation.",{"type":13,"tag":432,"props":433,"children":435},"validity-group",{"name":434},"Valid Usage (Implicit)",[436,463,487,511],{"type":13,"tag":437,"props":438,"children":440},"validity-field",{"name":439},"VUID-vkSetLatencySleepModeNV-device-parameter",[441],{"type":13,"tag":14,"props":442,"children":443},{},[444,449,450,453,455,461],{"type":13,"tag":34,"props":445,"children":447},{"className":446},[],[448],{"type":18,"value":73},{"type":18,"value":409},{"type":13,"tag":411,"props":451,"children":452},{"type":427},[],{"type":18,"value":454}," be a valid ",{"type":13,"tag":357,"props":456,"children":458},{"href":457},"/man/VkDevice",[459],{"type":18,"value":460},"VkDevice",{"type":18,"value":462}," handle",{"type":13,"tag":437,"props":464,"children":466},{"name":465},"VUID-vkSetLatencySleepModeNV-swapchain-parameter",[467],{"type":13,"tag":14,"props":468,"children":469},{},[470,475,476,479,480,486],{"type":13,"tag":34,"props":471,"children":473},{"className":472},[],[474],{"type":18,"value":92},{"type":18,"value":409},{"type":13,"tag":411,"props":477,"children":478},{"type":427},[],{"type":18,"value":454},{"type":13,"tag":357,"props":481,"children":483},{"href":482},"/man/VkSwapchainKHR",[484],{"type":18,"value":485},"VkSwapchainKHR",{"type":18,"value":462},{"type":13,"tag":437,"props":488,"children":490},{"name":489},"VUID-vkSetLatencySleepModeNV-pSleepModeInfo-parameter",[491],{"type":13,"tag":14,"props":492,"children":493},{},[494,499,500,503,505,509],{"type":13,"tag":34,"props":495,"children":497},{"className":496},[],[498],{"type":18,"value":345},{"type":18,"value":409},{"type":13,"tag":411,"props":501,"children":502},{"type":427},[],{"type":18,"value":504}," be a valid pointer to a valid ",{"type":13,"tag":357,"props":506,"children":507},{"href":359},[508],{"type":18,"value":362},{"type":18,"value":510}," structure",{"type":13,"tag":437,"props":512,"children":514},{"name":513},"VUID-vkSetLatencySleepModeNV-swapchain-parent",[515],{"type":13,"tag":14,"props":516,"children":517},{},[518,523,524,527,529],{"type":13,"tag":34,"props":519,"children":521},{"className":520},[],[522],{"type":18,"value":92},{"type":18,"value":409},{"type":13,"tag":411,"props":525,"children":526},{"type":427},[],{"type":18,"value":528}," have been created, allocated, or retrieved from ",{"type":13,"tag":34,"props":530,"children":532},{"className":531},[],[533],{"type":18,"value":73},{"type":13,"tag":535,"props":536,"children":537},"style",{},[538],{"type":18,"value":539},"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":541},[],"markdown",1725732623616]