[{"data":1,"prerenderedAt":455},["ShallowReactive",2],{"ZCG7M9imMw":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":454,"_id":4},"vkSetDeviceMemoryPriorityEXT","Change a memory allocation priority","VK_EXT_pageable_device_local_memory","protos",[],{"type":10,"children":11,"toc":452},"root",[12,20,259,320,332,371,446],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To modify the priority of an existing memory allocation, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,118],{"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","void vkSetDeviceMemoryPriorityEXT(\n VkDevice device,\n VkDeviceMemory memory,\n float priority);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,61,81,99],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,55],{"type":13,"tag":38,"props":44,"children":46},{"style":45},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[47],{"type":18,"value":48},"void",{"type":13,"tag":38,"props":50,"children":52},{"style":51},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[53],{"type":18,"value":54}," vkSetDeviceMemoryPriorityEXT",{"type":13,"tag":38,"props":56,"children":58},{"style":57},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[59],{"type":18,"value":60},"(\n",{"type":13,"tag":38,"props":62,"children":64},{"class":40,"line":63},2,[65,70,76],{"type":13,"tag":38,"props":66,"children":67},{"style":57},[68],{"type":18,"value":69}," VkDevice ",{"type":13,"tag":38,"props":71,"children":73},{"style":72},"--shiki-default:#953800;--shiki-dark:#FFA657",[74],{"type":18,"value":75},"device",{"type":13,"tag":38,"props":77,"children":78},{"style":57},[79],{"type":18,"value":80},",\n",{"type":13,"tag":38,"props":82,"children":84},{"class":40,"line":83},3,[85,90,95],{"type":13,"tag":38,"props":86,"children":87},{"style":57},[88],{"type":18,"value":89}," VkDeviceMemory ",{"type":13,"tag":38,"props":91,"children":92},{"style":72},[93],{"type":18,"value":94},"memory",{"type":13,"tag":38,"props":96,"children":97},{"style":57},[98],{"type":18,"value":80},{"type":13,"tag":38,"props":100,"children":102},{"class":40,"line":101},4,[103,108,113],{"type":13,"tag":38,"props":104,"children":105},{"style":45},[106],{"type":18,"value":107}," float",{"type":13,"tag":38,"props":109,"children":110},{"style":72},[111],{"type":18,"value":112}," priority",{"type":13,"tag":38,"props":114,"children":115},{"style":57},[116],{"type":18,"value":117},");\n",{"type":13,"tag":25,"props":119,"children":124},{"className":120,"code":121,"filename":122,"language":123,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn set_device_memory_priority_ext(\n device: crate :: vk :: vk::Device,\n memory: vk::DeviceMemory,\n priority: f32,\n);\n","Rust","rs",[125],{"type":13,"tag":34,"props":126,"children":127},{"__ignoreMap":31},[128,150,201,230,251],{"type":13,"tag":38,"props":129,"children":130},{"class":40,"line":41},[131,136,141,146],{"type":13,"tag":38,"props":132,"children":133},{"style":45},[134],{"type":18,"value":135},"pub",{"type":13,"tag":38,"props":137,"children":138},{"style":45},[139],{"type":18,"value":140}," fn",{"type":13,"tag":38,"props":142,"children":143},{"style":51},[144],{"type":18,"value":145}," set_device_memory_priority_ext",{"type":13,"tag":38,"props":147,"children":148},{"style":57},[149],{"type":18,"value":60},{"type":13,"tag":38,"props":151,"children":152},{"class":40,"line":63},[153,158,163,168,173,178,183,188,192,197],{"type":13,"tag":38,"props":154,"children":155},{"style":57},[156],{"type":18,"value":157}," device",{"type":13,"tag":38,"props":159,"children":160},{"style":45},[161],{"type":18,"value":162},":",{"type":13,"tag":38,"props":164,"children":165},{"style":45},[166],{"type":18,"value":167}," crate",{"type":13,"tag":38,"props":169,"children":170},{"style":45},[171],{"type":18,"value":172}," ::",{"type":13,"tag":38,"props":174,"children":175},{"style":57},[176],{"type":18,"value":177}," vk ",{"type":13,"tag":38,"props":179,"children":180},{"style":45},[181],{"type":18,"value":182},"::",{"type":13,"tag":38,"props":184,"children":185},{"style":72},[186],{"type":18,"value":187}," vk",{"type":13,"tag":38,"props":189,"children":190},{"style":45},[191],{"type":18,"value":182},{"type":13,"tag":38,"props":193,"children":194},{"style":72},[195],{"type":18,"value":196},"Device",{"type":13,"tag":38,"props":198,"children":199},{"style":57},[200],{"type":18,"value":80},{"type":13,"tag":38,"props":202,"children":203},{"class":40,"line":83},[204,209,213,217,221,226],{"type":13,"tag":38,"props":205,"children":206},{"style":57},[207],{"type":18,"value":208}," memory",{"type":13,"tag":38,"props":210,"children":211},{"style":45},[212],{"type":18,"value":162},{"type":13,"tag":38,"props":214,"children":215},{"style":72},[216],{"type":18,"value":187},{"type":13,"tag":38,"props":218,"children":219},{"style":45},[220],{"type":18,"value":182},{"type":13,"tag":38,"props":222,"children":223},{"style":72},[224],{"type":18,"value":225},"DeviceMemory",{"type":13,"tag":38,"props":227,"children":228},{"style":57},[229],{"type":18,"value":80},{"type":13,"tag":38,"props":231,"children":232},{"class":40,"line":101},[233,238,242,247],{"type":13,"tag":38,"props":234,"children":235},{"style":57},[236],{"type":18,"value":237}," priority",{"type":13,"tag":38,"props":239,"children":240},{"style":45},[241],{"type":18,"value":162},{"type":13,"tag":38,"props":243,"children":244},{"style":72},[245],{"type":18,"value":246}," f32",{"type":13,"tag":38,"props":248,"children":249},{"style":57},[250],{"type":18,"value":80},{"type":13,"tag":38,"props":252,"children":254},{"class":40,"line":253},5,[255],{"type":13,"tag":38,"props":256,"children":257},{"style":57},[258],{"type":18,"value":117},{"type":13,"tag":260,"props":261,"children":262},"ul",{},[263,274,293],{"type":13,"tag":264,"props":265,"children":266},"li",{},[267,272],{"type":13,"tag":34,"props":268,"children":270},{"className":269},[],[271],{"type":18,"value":75},{"type":18,"value":273}," is the logical device that owns the memory.",{"type":13,"tag":264,"props":275,"children":276},{},[277,282,284,291],{"type":13,"tag":34,"props":278,"children":280},{"className":279},[],[281],{"type":18,"value":94},{"type":18,"value":283}," is the ",{"type":13,"tag":285,"props":286,"children":288},"a",{"href":287},"/man/VkDeviceMemory",[289],{"type":18,"value":290},"VkDeviceMemory",{"type":18,"value":292}," object to which the new\npriority will be applied.",{"type":13,"tag":264,"props":294,"children":295},{},[296,302,304,310,312,318],{"type":13,"tag":34,"props":297,"children":299},{"className":298},[],[300],{"type":18,"value":301},"priority",{"type":18,"value":303}," is a floating-point value between ",{"type":13,"tag":34,"props":305,"children":307},{"className":306},[],[308],{"type":18,"value":309},"0",{"type":18,"value":311}," and ",{"type":13,"tag":34,"props":313,"children":315},{"className":314},[],[316],{"type":18,"value":317},"1",{"type":18,"value":319},", indicating\nthe priority of the allocation relative to other memory allocations.\nLarger values are higher priority.\nThe granularity of the priorities is implementation-dependent.",{"type":13,"tag":14,"props":321,"children":322},{},[323,325,330],{"type":18,"value":324},"Memory allocations with higher priority ",{"type":13,"tag":326,"props":327,"children":329},"normative",{"type":328},"may",[],{"type":18,"value":331}," be more likely to stay in\ndevice-local memory when the system is under memory pressure.",{"type":13,"tag":333,"props":334,"children":336},"validity-group",{"name":335},"Valid Usage",[337],{"type":13,"tag":338,"props":339,"children":341},"validity-field",{"name":340},"VUID-vkSetDeviceMemoryPriorityEXT-priority-06258",[342],{"type":13,"tag":14,"props":343,"children":344},{},[345,350,352,356,358,363,364,369],{"type":13,"tag":34,"props":346,"children":348},{"className":347},[],[349],{"type":18,"value":301},{"type":18,"value":351}," ",{"type":13,"tag":326,"props":353,"children":355},{"type":354},"must",[],{"type":18,"value":357}," be between ",{"type":13,"tag":34,"props":359,"children":361},{"className":360},[],[362],{"type":18,"value":309},{"type":18,"value":311},{"type":13,"tag":34,"props":365,"children":367},{"className":366},[],[368],{"type":18,"value":317},{"type":18,"value":370},", inclusive",{"type":13,"tag":333,"props":372,"children":374},{"name":373},"Valid Usage (Implicit)",[375,401,423],{"type":13,"tag":338,"props":376,"children":378},{"name":377},"VUID-vkSetDeviceMemoryPriorityEXT-device-parameter",[379],{"type":13,"tag":14,"props":380,"children":381},{},[382,387,388,391,393,399],{"type":13,"tag":34,"props":383,"children":385},{"className":384},[],[386],{"type":18,"value":75},{"type":18,"value":351},{"type":13,"tag":326,"props":389,"children":390},{"type":354},[],{"type":18,"value":392}," be a valid ",{"type":13,"tag":285,"props":394,"children":396},{"href":395},"/man/VkDevice",[397],{"type":18,"value":398},"VkDevice",{"type":18,"value":400}," handle",{"type":13,"tag":338,"props":402,"children":404},{"name":403},"VUID-vkSetDeviceMemoryPriorityEXT-memory-parameter",[405],{"type":13,"tag":14,"props":406,"children":407},{},[408,413,414,417,418,422],{"type":13,"tag":34,"props":409,"children":411},{"className":410},[],[412],{"type":18,"value":94},{"type":18,"value":351},{"type":13,"tag":326,"props":415,"children":416},{"type":354},[],{"type":18,"value":392},{"type":13,"tag":285,"props":419,"children":420},{"href":287},[421],{"type":18,"value":290},{"type":18,"value":400},{"type":13,"tag":338,"props":424,"children":426},{"name":425},"VUID-vkSetDeviceMemoryPriorityEXT-memory-parent",[427],{"type":13,"tag":14,"props":428,"children":429},{},[430,435,436,439,441],{"type":13,"tag":34,"props":431,"children":433},{"className":432},[],[434],{"type":18,"value":94},{"type":18,"value":351},{"type":13,"tag":326,"props":437,"children":438},{"type":354},[],{"type":18,"value":440}," have been created, allocated, or retrieved from ",{"type":13,"tag":34,"props":442,"children":444},{"className":443},[],[445],{"type":18,"value":75},{"type":13,"tag":447,"props":448,"children":449},"style",{},[450],{"type":18,"value":451},"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":63,"depth":63,"links":453},[],"markdown",1729612520893]