[{"data":1,"prerenderedAt":466},["ShallowReactive",2],{"EM9wKZd6OJ":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":465,"_id":4},"vkTransitionImageLayout","Perform an image layout transition on the host","VK_VERSION_1_4","protos",[],{"type":10,"children":11,"toc":463},"root",[12,20,298,367,457],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To perform an image layout transition on the host, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,128],{"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 vkTransitionImageLayoutEXT(\n VkDevice device,\n uint32_t transitionCount,\n const VkHostImageLayoutTransitionInfo* pTransitions);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,60,80,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:#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":54},"vkTransitionImageLayoutEXT",{"type":13,"tag":38,"props":56,"children":57},{"style":45},[58],{"type":18,"value":59},"(\n",{"type":13,"tag":38,"props":61,"children":63},{"class":40,"line":62},2,[64,69,75],{"type":13,"tag":38,"props":65,"children":66},{"style":45},[67],{"type":18,"value":68}," VkDevice ",{"type":13,"tag":38,"props":70,"children":72},{"style":71},"--shiki-default:#953800;--shiki-dark:#FFA657",[73],{"type":18,"value":74},"device",{"type":13,"tag":38,"props":76,"children":77},{"style":45},[78],{"type":18,"value":79},",\n",{"type":13,"tag":38,"props":81,"children":83},{"class":40,"line":82},3,[84,90,95],{"type":13,"tag":38,"props":85,"children":87},{"style":86},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[88],{"type":18,"value":89}," uint32_t",{"type":13,"tag":38,"props":91,"children":92},{"style":71},[93],{"type":18,"value":94}," transitionCount",{"type":13,"tag":38,"props":96,"children":97},{"style":45},[98],{"type":18,"value":79},{"type":13,"tag":38,"props":100,"children":102},{"class":40,"line":101},4,[103,108,113,118,123],{"type":13,"tag":38,"props":104,"children":105},{"style":86},[106],{"type":18,"value":107}," const",{"type":13,"tag":38,"props":109,"children":110},{"style":45},[111],{"type":18,"value":112}," VkHostImageLayoutTransitionInfo",{"type":13,"tag":38,"props":114,"children":115},{"style":86},[116],{"type":18,"value":117},"*",{"type":13,"tag":38,"props":119,"children":120},{"style":71},[121],{"type":18,"value":122}," pTransitions",{"type":13,"tag":38,"props":124,"children":125},{"style":45},[126],{"type":18,"value":127},");\n",{"type":13,"tag":25,"props":129,"children":134},{"className":130,"code":131,"filename":132,"language":133,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn transition_image_layout_ext(\n device: crate :: vk :: vk::Device,\n transition_count: u32,\n p_transitions: *const vk::HostImageLayoutTransitionInfo,\n) -> vk::Result;\n","Rust","rs",[135],{"type":13,"tag":34,"props":136,"children":137},{"__ignoreMap":31},[138,160,211,232,266],{"type":13,"tag":38,"props":139,"children":140},{"class":40,"line":41},[141,146,151,156],{"type":13,"tag":38,"props":142,"children":143},{"style":86},[144],{"type":18,"value":145},"pub",{"type":13,"tag":38,"props":147,"children":148},{"style":86},[149],{"type":18,"value":150}," fn",{"type":13,"tag":38,"props":152,"children":153},{"style":51},[154],{"type":18,"value":155}," transition_image_layout_ext",{"type":13,"tag":38,"props":157,"children":158},{"style":45},[159],{"type":18,"value":59},{"type":13,"tag":38,"props":161,"children":162},{"class":40,"line":62},[163,168,173,178,183,188,193,198,202,207],{"type":13,"tag":38,"props":164,"children":165},{"style":45},[166],{"type":18,"value":167}," device",{"type":13,"tag":38,"props":169,"children":170},{"style":86},[171],{"type":18,"value":172},":",{"type":13,"tag":38,"props":174,"children":175},{"style":86},[176],{"type":18,"value":177}," crate",{"type":13,"tag":38,"props":179,"children":180},{"style":86},[181],{"type":18,"value":182}," ::",{"type":13,"tag":38,"props":184,"children":185},{"style":45},[186],{"type":18,"value":187}," vk ",{"type":13,"tag":38,"props":189,"children":190},{"style":86},[191],{"type":18,"value":192},"::",{"type":13,"tag":38,"props":194,"children":195},{"style":71},[196],{"type":18,"value":197}," vk",{"type":13,"tag":38,"props":199,"children":200},{"style":86},[201],{"type":18,"value":192},{"type":13,"tag":38,"props":203,"children":204},{"style":71},[205],{"type":18,"value":206},"Device",{"type":13,"tag":38,"props":208,"children":209},{"style":45},[210],{"type":18,"value":79},{"type":13,"tag":38,"props":212,"children":213},{"class":40,"line":82},[214,219,223,228],{"type":13,"tag":38,"props":215,"children":216},{"style":45},[217],{"type":18,"value":218}," transition_count",{"type":13,"tag":38,"props":220,"children":221},{"style":86},[222],{"type":18,"value":172},{"type":13,"tag":38,"props":224,"children":225},{"style":71},[226],{"type":18,"value":227}," u32",{"type":13,"tag":38,"props":229,"children":230},{"style":45},[231],{"type":18,"value":79},{"type":13,"tag":38,"props":233,"children":234},{"class":40,"line":101},[235,240,244,249,253,257,262],{"type":13,"tag":38,"props":236,"children":237},{"style":45},[238],{"type":18,"value":239}," p_transitions",{"type":13,"tag":38,"props":241,"children":242},{"style":86},[243],{"type":18,"value":172},{"type":13,"tag":38,"props":245,"children":246},{"style":86},[247],{"type":18,"value":248}," *const",{"type":13,"tag":38,"props":250,"children":251},{"style":71},[252],{"type":18,"value":197},{"type":13,"tag":38,"props":254,"children":255},{"style":86},[256],{"type":18,"value":192},{"type":13,"tag":38,"props":258,"children":259},{"style":71},[260],{"type":18,"value":261},"HostImageLayoutTransitionInfo",{"type":13,"tag":38,"props":263,"children":264},{"style":45},[265],{"type":18,"value":79},{"type":13,"tag":38,"props":267,"children":269},{"class":40,"line":268},5,[270,275,280,284,288,293],{"type":13,"tag":38,"props":271,"children":272},{"style":45},[273],{"type":18,"value":274},") ",{"type":13,"tag":38,"props":276,"children":277},{"style":86},[278],{"type":18,"value":279},"->",{"type":13,"tag":38,"props":281,"children":282},{"style":71},[283],{"type":18,"value":197},{"type":13,"tag":38,"props":285,"children":286},{"style":86},[287],{"type":18,"value":192},{"type":13,"tag":38,"props":289,"children":290},{"style":71},[291],{"type":18,"value":292},"Result",{"type":13,"tag":38,"props":294,"children":295},{"style":45},[296],{"type":18,"value":297},";\n",{"type":13,"tag":299,"props":300,"children":301},"ul",{},[302,329,340],{"type":13,"tag":303,"props":304,"children":305},"li",{},[306,311,313,319,321,327],{"type":13,"tag":34,"props":307,"children":309},{"className":308},[],[310],{"type":18,"value":74},{"type":18,"value":312}," is the device which owns ",{"type":13,"tag":34,"props":314,"children":316},{"className":315},[],[317],{"type":18,"value":318},"pTransitions",{"type":18,"value":320},"[i].",{"type":13,"tag":34,"props":322,"children":324},{"className":323},[],[325],{"type":18,"value":326},"image",{"type":18,"value":328},".",{"type":13,"tag":303,"props":330,"children":331},{},[332,338],{"type":13,"tag":34,"props":333,"children":335},{"className":334},[],[336],{"type":18,"value":337},"transitionCount",{"type":18,"value":339}," is the number of image layout transitions to\nperform.",{"type":13,"tag":303,"props":341,"children":342},{},[343,348,350,357,359,365],{"type":13,"tag":34,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":318},{"type":18,"value":349}," is a pointer to an array of\n",{"type":13,"tag":351,"props":352,"children":354},"a",{"href":353},"/man/VkHostImageLayoutTransitionInfo",[355],{"type":18,"value":356},"VkHostImageLayoutTransitionInfo",{"type":18,"value":358}," structures specifying the image\nand ",{"type":13,"tag":351,"props":360,"children":362},{"href":361},"/chapters/resources#resources-image-views",[363],{"type":18,"value":364},"subresource ranges",{"type":18,"value":366}," within them to\ntransition.",{"type":13,"tag":368,"props":369,"children":371},"validity-group",{"name":370},"Valid Usage (Implicit)",[372,402,433],{"type":13,"tag":373,"props":374,"children":376},"validity-field",{"name":375},"VUID-vkTransitionImageLayout-device-parameter",[377],{"type":13,"tag":14,"props":378,"children":379},{},[380,385,387,392,394,400],{"type":13,"tag":34,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":74},{"type":18,"value":386}," ",{"type":13,"tag":388,"props":389,"children":391},"normative",{"type":390},"must",[],{"type":18,"value":393}," be a valid ",{"type":13,"tag":351,"props":395,"children":397},{"href":396},"/man/VkDevice",[398],{"type":18,"value":399},"VkDevice",{"type":18,"value":401}," handle",{"type":13,"tag":373,"props":403,"children":405},{"name":404},"VUID-vkTransitionImageLayout-pTransitions-parameter",[406],{"type":13,"tag":14,"props":407,"children":408},{},[409,414,415,418,420,425,427,431],{"type":13,"tag":34,"props":410,"children":412},{"className":411},[],[413],{"type":18,"value":318},{"type":18,"value":386},{"type":13,"tag":388,"props":416,"children":417},{"type":390},[],{"type":18,"value":419}," be a valid pointer to an array of ",{"type":13,"tag":34,"props":421,"children":423},{"className":422},[],[424],{"type":18,"value":337},{"type":18,"value":426}," valid ",{"type":13,"tag":351,"props":428,"children":429},{"href":353},[430],{"type":18,"value":356},{"type":18,"value":432}," structures",{"type":13,"tag":373,"props":434,"children":436},{"name":435},"VUID-vkTransitionImageLayout-transitionCount-arraylength",[437],{"type":13,"tag":14,"props":438,"children":439},{},[440,445,446,449,451],{"type":13,"tag":34,"props":441,"children":443},{"className":442},[],[444],{"type":18,"value":337},{"type":18,"value":386},{"type":13,"tag":388,"props":447,"children":448},{"type":390},[],{"type":18,"value":450}," be greater than ",{"type":13,"tag":34,"props":452,"children":454},{"className":453},[],[455],{"type":18,"value":456},"0",{"type":13,"tag":458,"props":459,"children":460},"style",{},[461],{"type":18,"value":462},"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":62,"depth":62,"links":464},[],"markdown",1744876603040]