[{"data":1,"prerenderedAt":637},["ShallowReactive",2],{"OFlLmQ5uyZ":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":636,"_id":4},"vkCreateRenderPass2","Create a new render pass object","VK_VERSION_1_2","protos",[],{"type":10,"children":11,"toc":634},"root",[12,20,374,446,475,510,628],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To create a render pass, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,158],{"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 vkCreateRenderPass2KHR(\n VkDevice device,\n const VkRenderPassCreateInfo2* pCreateInfo,\n const VkAllocationCallbacks* pAllocator,\n VkRenderPass* pRenderPass);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,60,80,109,135],{"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},"vkCreateRenderPass2KHR",{"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,100,105],{"type":13,"tag":38,"props":85,"children":87},{"style":86},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[88],{"type":18,"value":89}," const",{"type":13,"tag":38,"props":91,"children":92},{"style":45},[93],{"type":18,"value":94}," VkRenderPassCreateInfo2",{"type":13,"tag":38,"props":96,"children":97},{"style":86},[98],{"type":18,"value":99},"*",{"type":13,"tag":38,"props":101,"children":102},{"style":71},[103],{"type":18,"value":104}," pCreateInfo",{"type":13,"tag":38,"props":106,"children":107},{"style":45},[108],{"type":18,"value":79},{"type":13,"tag":38,"props":110,"children":112},{"class":40,"line":111},4,[113,117,122,126,131],{"type":13,"tag":38,"props":114,"children":115},{"style":86},[116],{"type":18,"value":89},{"type":13,"tag":38,"props":118,"children":119},{"style":45},[120],{"type":18,"value":121}," VkAllocationCallbacks",{"type":13,"tag":38,"props":123,"children":124},{"style":86},[125],{"type":18,"value":99},{"type":13,"tag":38,"props":127,"children":128},{"style":71},[129],{"type":18,"value":130}," pAllocator",{"type":13,"tag":38,"props":132,"children":133},{"style":45},[134],{"type":18,"value":79},{"type":13,"tag":38,"props":136,"children":138},{"class":40,"line":137},5,[139,144,148,153],{"type":13,"tag":38,"props":140,"children":141},{"style":45},[142],{"type":18,"value":143}," VkRenderPass",{"type":13,"tag":38,"props":145,"children":146},{"style":86},[147],{"type":18,"value":99},{"type":13,"tag":38,"props":149,"children":150},{"style":71},[151],{"type":18,"value":152}," pRenderPass",{"type":13,"tag":38,"props":154,"children":155},{"style":45},[156],{"type":18,"value":157},");\n",{"type":13,"tag":25,"props":159,"children":164},{"className":160,"code":161,"filename":162,"language":163,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn create_render_pass2_khr(\n device: crate :: vk :: vk::Device,\n p_create_info: *const vk::RenderPassCreateInfo2,\n p_allocator: *const vk::AllocationCallbacks,\n p_render_pass: *mut vk::RenderPass,\n) -> vk::Result;\n","Rust","rs",[165],{"type":13,"tag":34,"props":166,"children":167},{"__ignoreMap":31},[168,190,241,275,308,342],{"type":13,"tag":38,"props":169,"children":170},{"class":40,"line":41},[171,176,181,186],{"type":13,"tag":38,"props":172,"children":173},{"style":86},[174],{"type":18,"value":175},"pub",{"type":13,"tag":38,"props":177,"children":178},{"style":86},[179],{"type":18,"value":180}," fn",{"type":13,"tag":38,"props":182,"children":183},{"style":51},[184],{"type":18,"value":185}," create_render_pass2_khr",{"type":13,"tag":38,"props":187,"children":188},{"style":45},[189],{"type":18,"value":59},{"type":13,"tag":38,"props":191,"children":192},{"class":40,"line":62},[193,198,203,208,213,218,223,228,232,237],{"type":13,"tag":38,"props":194,"children":195},{"style":45},[196],{"type":18,"value":197}," device",{"type":13,"tag":38,"props":199,"children":200},{"style":86},[201],{"type":18,"value":202},":",{"type":13,"tag":38,"props":204,"children":205},{"style":86},[206],{"type":18,"value":207}," crate",{"type":13,"tag":38,"props":209,"children":210},{"style":86},[211],{"type":18,"value":212}," ::",{"type":13,"tag":38,"props":214,"children":215},{"style":45},[216],{"type":18,"value":217}," vk ",{"type":13,"tag":38,"props":219,"children":220},{"style":86},[221],{"type":18,"value":222},"::",{"type":13,"tag":38,"props":224,"children":225},{"style":71},[226],{"type":18,"value":227}," vk",{"type":13,"tag":38,"props":229,"children":230},{"style":86},[231],{"type":18,"value":222},{"type":13,"tag":38,"props":233,"children":234},{"style":71},[235],{"type":18,"value":236},"Device",{"type":13,"tag":38,"props":238,"children":239},{"style":45},[240],{"type":18,"value":79},{"type":13,"tag":38,"props":242,"children":243},{"class":40,"line":82},[244,249,253,258,262,266,271],{"type":13,"tag":38,"props":245,"children":246},{"style":45},[247],{"type":18,"value":248}," p_create_info",{"type":13,"tag":38,"props":250,"children":251},{"style":86},[252],{"type":18,"value":202},{"type":13,"tag":38,"props":254,"children":255},{"style":86},[256],{"type":18,"value":257}," *const",{"type":13,"tag":38,"props":259,"children":260},{"style":71},[261],{"type":18,"value":227},{"type":13,"tag":38,"props":263,"children":264},{"style":86},[265],{"type":18,"value":222},{"type":13,"tag":38,"props":267,"children":268},{"style":71},[269],{"type":18,"value":270},"RenderPassCreateInfo2",{"type":13,"tag":38,"props":272,"children":273},{"style":45},[274],{"type":18,"value":79},{"type":13,"tag":38,"props":276,"children":277},{"class":40,"line":111},[278,283,287,291,295,299,304],{"type":13,"tag":38,"props":279,"children":280},{"style":45},[281],{"type":18,"value":282}," p_allocator",{"type":13,"tag":38,"props":284,"children":285},{"style":86},[286],{"type":18,"value":202},{"type":13,"tag":38,"props":288,"children":289},{"style":86},[290],{"type":18,"value":257},{"type":13,"tag":38,"props":292,"children":293},{"style":71},[294],{"type":18,"value":227},{"type":13,"tag":38,"props":296,"children":297},{"style":86},[298],{"type":18,"value":222},{"type":13,"tag":38,"props":300,"children":301},{"style":71},[302],{"type":18,"value":303},"AllocationCallbacks",{"type":13,"tag":38,"props":305,"children":306},{"style":45},[307],{"type":18,"value":79},{"type":13,"tag":38,"props":309,"children":310},{"class":40,"line":137},[311,316,320,325,329,333,338],{"type":13,"tag":38,"props":312,"children":313},{"style":45},[314],{"type":18,"value":315}," p_render_pass",{"type":13,"tag":38,"props":317,"children":318},{"style":86},[319],{"type":18,"value":202},{"type":13,"tag":38,"props":321,"children":322},{"style":86},[323],{"type":18,"value":324}," *mut",{"type":13,"tag":38,"props":326,"children":327},{"style":71},[328],{"type":18,"value":227},{"type":13,"tag":38,"props":330,"children":331},{"style":86},[332],{"type":18,"value":222},{"type":13,"tag":38,"props":334,"children":335},{"style":71},[336],{"type":18,"value":337},"RenderPass",{"type":13,"tag":38,"props":339,"children":340},{"style":45},[341],{"type":18,"value":79},{"type":13,"tag":38,"props":343,"children":345},{"class":40,"line":344},6,[346,351,356,360,364,369],{"type":13,"tag":38,"props":347,"children":348},{"style":45},[349],{"type":18,"value":350},") ",{"type":13,"tag":38,"props":352,"children":353},{"style":86},[354],{"type":18,"value":355},"->",{"type":13,"tag":38,"props":357,"children":358},{"style":71},[359],{"type":18,"value":227},{"type":13,"tag":38,"props":361,"children":362},{"style":86},[363],{"type":18,"value":222},{"type":13,"tag":38,"props":365,"children":366},{"style":71},[367],{"type":18,"value":368},"Result",{"type":13,"tag":38,"props":370,"children":371},{"style":45},[372],{"type":18,"value":373},";\n",{"type":13,"tag":375,"props":376,"children":377},"ul",{},[378,389,409,428],{"type":13,"tag":379,"props":380,"children":381},"li",{},[382,387],{"type":13,"tag":34,"props":383,"children":385},{"className":384},[],[386],{"type":18,"value":74},{"type":18,"value":388}," is the logical device that creates the render pass.",{"type":13,"tag":379,"props":390,"children":391},{},[392,398,400,407],{"type":13,"tag":34,"props":393,"children":395},{"className":394},[],[396],{"type":18,"value":397},"pCreateInfo",{"type":18,"value":399}," is a pointer to a ",{"type":13,"tag":401,"props":402,"children":404},"a",{"href":403},"/man/VkRenderPassCreateInfo2",[405],{"type":18,"value":406},"VkRenderPassCreateInfo2",{"type":18,"value":408},"\nstructure describing the parameters of the render pass.",{"type":13,"tag":379,"props":410,"children":411},{},[412,418,420,426],{"type":13,"tag":34,"props":413,"children":415},{"className":414},[],[416],{"type":18,"value":417},"pAllocator",{"type":18,"value":419}," controls host memory allocation as described in the\n",{"type":13,"tag":401,"props":421,"children":423},{"href":422},"/chapters/memory#memory-allocation",[424],{"type":18,"value":425},"Memory Allocation",{"type":18,"value":427}," chapter.",{"type":13,"tag":379,"props":429,"children":430},{},[431,437,438,444],{"type":13,"tag":34,"props":432,"children":434},{"className":433},[],[435],{"type":18,"value":436},"pRenderPass",{"type":18,"value":399},{"type":13,"tag":401,"props":439,"children":441},{"href":440},"/man/VkRenderPass",[442],{"type":18,"value":443},"VkRenderPass",{"type":18,"value":445}," handle in which\nthe resulting render pass object is returned.",{"type":13,"tag":14,"props":447,"children":448},{},[449,451,457,459,465,467,473],{"type":18,"value":450},"This command is functionally identical to ",{"type":13,"tag":401,"props":452,"children":454},{"href":453},"/man/vkCreateRenderPass",[455],{"type":18,"value":456},"vkCreateRenderPass",{"type":18,"value":458},", but\nincludes extensible sub-structures that include ",{"type":13,"tag":34,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":464},"sType",{"type":18,"value":466}," and ",{"type":13,"tag":34,"props":468,"children":470},{"className":469},[],[471],{"type":18,"value":472},"pNext",{"type":18,"value":474},"\nparameters, allowing them to be more easily extended.",{"type":13,"tag":476,"props":477,"children":479},"validity-group",{"name":478},"Valid Usage",[480],{"type":13,"tag":481,"props":482,"children":484},"validity-field",{"name":483},"VUID-vkCreateRenderPass2-device-10001",[485],{"type":13,"tag":14,"props":486,"children":487},{},[488,493,495,500,502,508],{"type":13,"tag":34,"props":489,"children":491},{"className":490},[],[492],{"type":18,"value":74},{"type":18,"value":494}," ",{"type":13,"tag":496,"props":497,"children":499},"normative",{"type":498},"must",[],{"type":18,"value":501}," support at least one queue family with the\n",{"type":13,"tag":34,"props":503,"children":505},{"className":504},[],[506],{"type":18,"value":507},"VK_QUEUE_GRAPHICS_BIT",{"type":18,"value":509}," capability",{"type":13,"tag":476,"props":511,"children":513},{"name":512},"Valid Usage (Implicit)",[514,540,564,605],{"type":13,"tag":481,"props":515,"children":517},{"name":516},"VUID-vkCreateRenderPass2-device-parameter",[518],{"type":13,"tag":14,"props":519,"children":520},{},[521,526,527,530,532,538],{"type":13,"tag":34,"props":522,"children":524},{"className":523},[],[525],{"type":18,"value":74},{"type":18,"value":494},{"type":13,"tag":496,"props":528,"children":529},{"type":498},[],{"type":18,"value":531}," be a valid ",{"type":13,"tag":401,"props":533,"children":535},{"href":534},"/man/VkDevice",[536],{"type":18,"value":537},"VkDevice",{"type":18,"value":539}," handle",{"type":13,"tag":481,"props":541,"children":543},{"name":542},"VUID-vkCreateRenderPass2-pCreateInfo-parameter",[544],{"type":13,"tag":14,"props":545,"children":546},{},[547,552,553,556,558,562],{"type":13,"tag":34,"props":548,"children":550},{"className":549},[],[551],{"type":18,"value":397},{"type":18,"value":494},{"type":13,"tag":496,"props":554,"children":555},{"type":498},[],{"type":18,"value":557}," be a valid pointer to a valid ",{"type":13,"tag":401,"props":559,"children":560},{"href":403},[561],{"type":18,"value":406},{"type":18,"value":563}," structure",{"type":13,"tag":481,"props":565,"children":567},{"name":566},"VUID-vkCreateRenderPass2-pAllocator-parameter",[568],{"type":13,"tag":14,"props":569,"children":570},{},[571,573,578,580,586,588,593,594,597,598,604],{"type":18,"value":572},"If ",{"type":13,"tag":34,"props":574,"children":576},{"className":575},[],[577],{"type":18,"value":417},{"type":18,"value":579}," is not ",{"type":13,"tag":34,"props":581,"children":583},{"className":582},[],[584],{"type":18,"value":585},"NULL",{"type":18,"value":587},", ",{"type":13,"tag":34,"props":589,"children":591},{"className":590},[],[592],{"type":18,"value":417},{"type":18,"value":494},{"type":13,"tag":496,"props":595,"children":596},{"type":498},[],{"type":18,"value":557},{"type":13,"tag":401,"props":599,"children":601},{"href":600},"/man/VkAllocationCallbacks",[602],{"type":18,"value":603},"VkAllocationCallbacks",{"type":18,"value":563},{"type":13,"tag":481,"props":606,"children":608},{"name":607},"VUID-vkCreateRenderPass2-pRenderPass-parameter",[609],{"type":13,"tag":14,"props":610,"children":611},{},[612,617,618,621,623,627],{"type":13,"tag":34,"props":613,"children":615},{"className":614},[],[616],{"type":18,"value":436},{"type":18,"value":494},{"type":13,"tag":496,"props":619,"children":620},{"type":498},[],{"type":18,"value":622}," be a valid pointer to a ",{"type":13,"tag":401,"props":624,"children":625},{"href":440},[626],{"type":18,"value":443},{"type":18,"value":539},{"type":13,"tag":629,"props":630,"children":631},"style",{},[632],{"type":18,"value":633},"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":635},[],"markdown",1725732613585]