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