[{"data":1,"prerenderedAt":600},["ShallowReactive",2],{"ohI2mwDuPt":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":599,"_id":4},"vkCmdSetRenderingInputAttachmentIndices","Set input attachment index mappings for a command buffer","VK_VERSION_1_4","protos",[],{"type":10,"children":11,"toc":597},"root",[12,20,216,251,283,325,411,545,591],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To set the input attachment index mappings during dynamic rendering, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,110],{"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 vkCmdSetRenderingInputAttachmentIndicesKHR(\n VkCommandBuffer commandBuffer,\n const VkRenderingInputAttachmentIndexInfo* pInputAttachmentIndexInfo);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,61,81],{"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}," vkCmdSetRenderingInputAttachmentIndicesKHR",{"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}," VkCommandBuffer ",{"type":13,"tag":38,"props":71,"children":73},{"style":72},"--shiki-default:#953800;--shiki-dark:#FFA657",[74],{"type":18,"value":75},"commandBuffer",{"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,100,105],{"type":13,"tag":38,"props":86,"children":87},{"style":45},[88],{"type":18,"value":89}," const",{"type":13,"tag":38,"props":91,"children":92},{"style":57},[93],{"type":18,"value":94}," VkRenderingInputAttachmentIndexInfo",{"type":13,"tag":38,"props":96,"children":97},{"style":45},[98],{"type":18,"value":99},"*",{"type":13,"tag":38,"props":101,"children":102},{"style":72},[103],{"type":18,"value":104}," pInputAttachmentIndexInfo",{"type":13,"tag":38,"props":106,"children":107},{"style":57},[108],{"type":18,"value":109},");\n",{"type":13,"tag":25,"props":111,"children":116},{"className":112,"code":113,"filename":114,"language":115,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_set_rendering_input_attachment_indices_khr(\n command_buffer: vk::CommandBuffer,\n p_input_attachment_index_info: *const vk::RenderingInputAttachmentIndexInfo,\n);\n","Rust","rs",[117],{"type":13,"tag":34,"props":118,"children":119},{"__ignoreMap":31},[120,142,174,208],{"type":13,"tag":38,"props":121,"children":122},{"class":40,"line":41},[123,128,133,138],{"type":13,"tag":38,"props":124,"children":125},{"style":45},[126],{"type":18,"value":127},"pub",{"type":13,"tag":38,"props":129,"children":130},{"style":45},[131],{"type":18,"value":132}," fn",{"type":13,"tag":38,"props":134,"children":135},{"style":51},[136],{"type":18,"value":137}," cmd_set_rendering_input_attachment_indices_khr",{"type":13,"tag":38,"props":139,"children":140},{"style":57},[141],{"type":18,"value":60},{"type":13,"tag":38,"props":143,"children":144},{"class":40,"line":63},[145,150,155,160,165,170],{"type":13,"tag":38,"props":146,"children":147},{"style":57},[148],{"type":18,"value":149}," command_buffer",{"type":13,"tag":38,"props":151,"children":152},{"style":45},[153],{"type":18,"value":154},":",{"type":13,"tag":38,"props":156,"children":157},{"style":72},[158],{"type":18,"value":159}," vk",{"type":13,"tag":38,"props":161,"children":162},{"style":45},[163],{"type":18,"value":164},"::",{"type":13,"tag":38,"props":166,"children":167},{"style":72},[168],{"type":18,"value":169},"CommandBuffer",{"type":13,"tag":38,"props":171,"children":172},{"style":57},[173],{"type":18,"value":80},{"type":13,"tag":38,"props":175,"children":176},{"class":40,"line":83},[177,182,186,191,195,199,204],{"type":13,"tag":38,"props":178,"children":179},{"style":57},[180],{"type":18,"value":181}," p_input_attachment_index_info",{"type":13,"tag":38,"props":183,"children":184},{"style":45},[185],{"type":18,"value":154},{"type":13,"tag":38,"props":187,"children":188},{"style":45},[189],{"type":18,"value":190}," *const",{"type":13,"tag":38,"props":192,"children":193},{"style":72},[194],{"type":18,"value":159},{"type":13,"tag":38,"props":196,"children":197},{"style":45},[198],{"type":18,"value":164},{"type":13,"tag":38,"props":200,"children":201},{"style":72},[202],{"type":18,"value":203},"RenderingInputAttachmentIndexInfo",{"type":13,"tag":38,"props":205,"children":206},{"style":57},[207],{"type":18,"value":80},{"type":13,"tag":38,"props":209,"children":211},{"class":40,"line":210},4,[212],{"type":13,"tag":38,"props":213,"children":214},{"style":57},[215],{"type":18,"value":109},{"type":13,"tag":217,"props":218,"children":219},"ul",{},[220,231],{"type":13,"tag":221,"props":222,"children":223},"li",{},[224,229],{"type":13,"tag":34,"props":225,"children":227},{"className":226},[],[228],{"type":18,"value":75},{"type":18,"value":230}," is the command buffer into which the command will be\nrecorded.",{"type":13,"tag":221,"props":232,"children":233},{},[234,240,242,249],{"type":13,"tag":34,"props":235,"children":237},{"className":236},[],[238],{"type":18,"value":239},"pInputAttachmentIndexInfo",{"type":18,"value":241}," is a\n",{"type":13,"tag":243,"props":244,"children":246},"a",{"href":245},"/man/VkRenderingInputAttachmentIndexInfo",[247],{"type":18,"value":248},"VkRenderingInputAttachmentIndexInfo",{"type":18,"value":250}," structure indicating the new\nmappings.",{"type":13,"tag":14,"props":252,"children":253},{},[254,256,261,263,267,269,273,275,281],{"type":18,"value":255},"This command sets the input attachment index mappings for subsequent drawing\ncommands, and ",{"type":13,"tag":257,"props":258,"children":260},"normative",{"type":259},"must",[],{"type":18,"value":262}," match the mappings provided to the bound pipeline,\nif one is bound,\nwhich ",{"type":13,"tag":257,"props":264,"children":266},{"type":265},"can",[],{"type":18,"value":268}," be set by chaining ",{"type":13,"tag":243,"props":270,"children":271},{"href":245},[272],{"type":18,"value":248},{"type":18,"value":274}," to\n",{"type":13,"tag":243,"props":276,"children":278},{"href":277},"/man/VkGraphicsPipelineCreateInfo",[279],{"type":18,"value":280},"VkGraphicsPipelineCreateInfo",{"type":18,"value":282},".",{"type":13,"tag":14,"props":284,"children":285},{},[286,288,294,296,302,304,310,311,317,319,323],{"type":18,"value":287},"Until this command is called, mappings in the command buffer state are\ntreated as each color attachment specified in ",{"type":13,"tag":243,"props":289,"children":291},{"href":290},"/man/vkCmdBeginRendering",[292],{"type":18,"value":293},"vkCmdBeginRendering",{"type":18,"value":295},"\nmapping to subpass inputs with a ",{"type":13,"tag":34,"props":297,"children":299},{"className":298},[],[300],{"type":18,"value":301},"InputAttachmentIndex",{"type":18,"value":303}," equal to its\nindex in ",{"type":13,"tag":243,"props":305,"children":307},{"href":306},"/man/VkRenderingInfo",[308],{"type":18,"value":309},"VkRenderingInfo",{"type":18,"value":164},{"type":13,"tag":34,"props":312,"children":314},{"className":313},[],[315],{"type":18,"value":316},"pColorAttachments",{"type":18,"value":318},", and depth/stencil\nattachments mapping to input attachments without these decorations.\nThis state is reset whenever ",{"type":13,"tag":243,"props":320,"children":321},{"href":290},[322],{"type":18,"value":293},{"type":18,"value":324}," is called.",{"type":13,"tag":326,"props":327,"children":329},"validity-group",{"name":328},"Valid Usage",[330,353,386],{"type":13,"tag":331,"props":332,"children":334},"validity-field",{"name":333},"VUID-vkCmdSetRenderingInputAttachmentIndices-dynamicRenderingLocalRead-09516",[335],{"type":13,"tag":14,"props":336,"children":337},{},[338,348,351],{"type":13,"tag":243,"props":339,"children":341},{"href":340},"/man/VkPhysicalDeviceDynamicRenderingLocalReadFeatures#features-dynamicRenderingLocalRead",[342],{"type":13,"tag":34,"props":343,"children":345},{"className":344},[],[346],{"type":18,"value":347},"dynamicRenderingLocalRead",{"type":13,"tag":257,"props":349,"children":350},{"type":259},[],{"type":18,"value":352}," be enabled",{"type":13,"tag":331,"props":354,"children":356},{"name":355},"VUID-vkCmdSetRenderingInputAttachmentIndices-pInputAttachmentIndexInfo-09517",[357],{"type":13,"tag":14,"props":358,"children":359},{},[360,366,368,371,373,377,378,384],{"type":13,"tag":34,"props":361,"children":363},{"className":362},[],[364],{"type":18,"value":365},"pInputAttachmentIndexInfo→colorAttachmentCount",{"type":18,"value":367}," ",{"type":13,"tag":257,"props":369,"children":370},{"type":259},[],{"type":18,"value":372}," be equal to\nthe value of ",{"type":13,"tag":243,"props":374,"children":375},{"href":306},[376],{"type":18,"value":309},{"type":18,"value":164},{"type":13,"tag":34,"props":379,"children":381},{"className":380},[],[382],{"type":18,"value":383},"colorAttachmentCount",{"type":18,"value":385}," used to\nbegin the current render pass instance",{"type":13,"tag":331,"props":387,"children":389},{"name":388},"VUID-vkCmdSetRenderingInputAttachmentIndices-commandBuffer-09518",[390],{"type":13,"tag":14,"props":391,"children":392},{},[393,395,398,400,404,406],{"type":18,"value":394},"The current render pass instance ",{"type":13,"tag":257,"props":396,"children":397},{"type":259},[],{"type":18,"value":399}," have been started or resumed by\n",{"type":13,"tag":243,"props":401,"children":402},{"href":290},[403],{"type":18,"value":293},{"type":18,"value":405}," in this ",{"type":13,"tag":34,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":75},{"type":13,"tag":326,"props":412,"children":414},{"name":413},"Valid Usage (Implicit)",[415,441,465,489,518,532],{"type":13,"tag":331,"props":416,"children":418},{"name":417},"VUID-vkCmdSetRenderingInputAttachmentIndices-commandBuffer-parameter",[419],{"type":13,"tag":14,"props":420,"children":421},{},[422,427,428,431,433,439],{"type":13,"tag":34,"props":423,"children":425},{"className":424},[],[426],{"type":18,"value":75},{"type":18,"value":367},{"type":13,"tag":257,"props":429,"children":430},{"type":259},[],{"type":18,"value":432}," be a valid ",{"type":13,"tag":243,"props":434,"children":436},{"href":435},"/man/VkCommandBuffer",[437],{"type":18,"value":438},"VkCommandBuffer",{"type":18,"value":440}," handle",{"type":13,"tag":331,"props":442,"children":444},{"name":443},"VUID-vkCmdSetRenderingInputAttachmentIndices-pInputAttachmentIndexInfo-parameter",[445],{"type":13,"tag":14,"props":446,"children":447},{},[448,453,454,457,459,463],{"type":13,"tag":34,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":239},{"type":18,"value":367},{"type":13,"tag":257,"props":455,"children":456},{"type":259},[],{"type":18,"value":458}," be a valid pointer to a valid ",{"type":13,"tag":243,"props":460,"children":461},{"href":245},[462],{"type":18,"value":248},{"type":18,"value":464}," structure",{"type":13,"tag":331,"props":466,"children":468},{"name":467},"VUID-vkCmdSetRenderingInputAttachmentIndices-commandBuffer-recording",[469],{"type":13,"tag":14,"props":470,"children":471},{},[472,477,478,481,483],{"type":13,"tag":34,"props":473,"children":475},{"className":474},[],[476],{"type":18,"value":75},{"type":18,"value":367},{"type":13,"tag":257,"props":479,"children":480},{"type":259},[],{"type":18,"value":482}," be in the ",{"type":13,"tag":243,"props":484,"children":486},{"href":485},"/chapters/commandbuffers#commandbuffers-lifecycle",[487],{"type":18,"value":488},"recording state",{"type":13,"tag":331,"props":490,"children":492},{"name":491},"VUID-vkCmdSetRenderingInputAttachmentIndices-commandBuffer-cmdpool",[493],{"type":13,"tag":14,"props":494,"children":495},{},[496,498,504,506,511,513,516],{"type":18,"value":497},"The ",{"type":13,"tag":34,"props":499,"children":501},{"className":500},[],[502],{"type":18,"value":503},"VkCommandPool",{"type":18,"value":505}," that ",{"type":13,"tag":34,"props":507,"children":509},{"className":508},[],[510],{"type":18,"value":75},{"type":18,"value":512}," was allocated from ",{"type":13,"tag":257,"props":514,"children":515},{"type":259},[],{"type":18,"value":517}," support graphics operations",{"type":13,"tag":331,"props":519,"children":521},{"name":520},"VUID-vkCmdSetRenderingInputAttachmentIndices-renderpass",[522],{"type":13,"tag":14,"props":523,"children":524},{},[525,527,530],{"type":18,"value":526},"This command ",{"type":13,"tag":257,"props":528,"children":529},{"type":259},[],{"type":18,"value":531}," only be called inside of a render pass instance",{"type":13,"tag":331,"props":533,"children":535},{"name":534},"VUID-vkCmdSetRenderingInputAttachmentIndices-videocoding",[536],{"type":13,"tag":14,"props":537,"children":538},{},[539,540,543],{"type":18,"value":526},{"type":13,"tag":257,"props":541,"children":542},{"type":259},[],{"type":18,"value":544}," only be called outside of a video coding scope",{"type":13,"tag":546,"props":547,"children":549},"validity-box",{"name":548},"Host Synchronization",[550],{"type":13,"tag":217,"props":551,"children":552},{},[553,569],{"type":13,"tag":221,"props":554,"children":555},{},[556,558,563,564,567],{"type":18,"value":557},"Host access to ",{"type":13,"tag":34,"props":559,"children":561},{"className":560},[],[562],{"type":18,"value":75},{"type":18,"value":367},{"type":13,"tag":257,"props":565,"children":566},{"type":259},[],{"type":18,"value":568}," be externally synchronized",{"type":13,"tag":221,"props":570,"children":571},{},[572,574,579,580,585,586,589],{"type":18,"value":573},"Host access to the ",{"type":13,"tag":34,"props":575,"children":577},{"className":576},[],[578],{"type":18,"value":503},{"type":18,"value":505},{"type":13,"tag":34,"props":581,"children":583},{"className":582},[],[584],{"type":18,"value":75},{"type":18,"value":512},{"type":13,"tag":257,"props":587,"children":588},{"type":259},[],{"type":18,"value":590}," be externally synchronized\n::",{"type":13,"tag":592,"props":593,"children":594},"style",{},[595],{"type":18,"value":596},"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":598},[],"markdown",1744876592331]