[{"data":1,"prerenderedAt":847},["ShallowReactive",2],{"efMve8OzzT":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":846,"_id":4},"VkRenderingAttachmentLocationInfo","Structure specifying attachment locations","VK_VERSION_1_4","structs",[],{"type":10,"children":11,"toc":844},"root",[12,28,277,282,347,435,440,481,499,538,579,642,682,810,838],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure is defined as:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,136],{"type":13,"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","typedef struct VkRenderingAttachmentLocationInfo {\n VkStructureType sType;\n const void* pNext;\n uint32_t colorAttachmentCount;\n const uint32_t* pColorAttachmentLocations;\n} VkRenderingAttachmentLocationInfo;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,95,109,127],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkRenderingAttachmentLocationInfo {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71],{"type":13,"tag":45,"props":72,"children":73},{"style":63},[74],{"type":18,"value":75}," VkStructureType sType;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85,90],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," const",{"type":13,"tag":45,"props":86,"children":87},{"style":52},[88],{"type":18,"value":89}," void*",{"type":13,"tag":45,"props":91,"children":92},{"style":63},[93],{"type":18,"value":94}," pNext;\n",{"type":13,"tag":45,"props":96,"children":98},{"class":47,"line":97},4,[99,104],{"type":13,"tag":45,"props":100,"children":101},{"style":52},[102],{"type":18,"value":103}," uint32_t",{"type":13,"tag":45,"props":105,"children":106},{"style":63},[107],{"type":18,"value":108}," colorAttachmentCount;\n",{"type":13,"tag":45,"props":110,"children":112},{"class":47,"line":111},5,[113,117,122],{"type":13,"tag":45,"props":114,"children":115},{"style":52},[116],{"type":18,"value":84},{"type":13,"tag":45,"props":118,"children":119},{"style":52},[120],{"type":18,"value":121}," uint32_t*",{"type":13,"tag":45,"props":123,"children":124},{"style":63},[125],{"type":18,"value":126}," pColorAttachmentLocations;\n",{"type":13,"tag":45,"props":128,"children":130},{"class":47,"line":129},6,[131],{"type":13,"tag":45,"props":132,"children":133},{"style":63},[134],{"type":18,"value":135},"} VkRenderingAttachmentLocationInfo;\n",{"type":13,"tag":33,"props":137,"children":142},{"className":138,"code":139,"filename":140,"language":141,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct RenderingAttachmentLocationInfo {\n s_type: vk::StructureType,\n p_next: *const c_void,\n color_attachment_count: u32,\n p_color_attachment_locations: *const u32,\n}\n","Rust","rs",[143],{"type":13,"tag":21,"props":144,"children":145},{"__ignoreMap":39},[146,169,202,224,245,269],{"type":13,"tag":45,"props":147,"children":148},{"class":47,"line":48},[149,154,158,164],{"type":13,"tag":45,"props":150,"children":151},{"style":52},[152],{"type":18,"value":153},"pub",{"type":13,"tag":45,"props":155,"children":156},{"style":52},[157],{"type":18,"value":60},{"type":13,"tag":45,"props":159,"children":161},{"style":160},"--shiki-default:#953800;--shiki-dark:#FFA657",[162],{"type":18,"value":163}," RenderingAttachmentLocationInfo",{"type":13,"tag":45,"props":165,"children":166},{"style":63},[167],{"type":18,"value":168}," {\n",{"type":13,"tag":45,"props":170,"children":171},{"class":47,"line":69},[172,177,182,187,192,197],{"type":13,"tag":45,"props":173,"children":174},{"style":63},[175],{"type":18,"value":176}," s_type",{"type":13,"tag":45,"props":178,"children":179},{"style":52},[180],{"type":18,"value":181},":",{"type":13,"tag":45,"props":183,"children":184},{"style":160},[185],{"type":18,"value":186}," vk",{"type":13,"tag":45,"props":188,"children":189},{"style":52},[190],{"type":18,"value":191},"::",{"type":13,"tag":45,"props":193,"children":194},{"style":160},[195],{"type":18,"value":196},"StructureType",{"type":13,"tag":45,"props":198,"children":199},{"style":63},[200],{"type":18,"value":201},",\n",{"type":13,"tag":45,"props":203,"children":204},{"class":47,"line":78},[205,210,214,219],{"type":13,"tag":45,"props":206,"children":207},{"style":63},[208],{"type":18,"value":209}," p_next",{"type":13,"tag":45,"props":211,"children":212},{"style":52},[213],{"type":18,"value":181},{"type":13,"tag":45,"props":215,"children":216},{"style":52},[217],{"type":18,"value":218}," *const",{"type":13,"tag":45,"props":220,"children":221},{"style":63},[222],{"type":18,"value":223}," c_void,\n",{"type":13,"tag":45,"props":225,"children":226},{"class":47,"line":97},[227,232,236,241],{"type":13,"tag":45,"props":228,"children":229},{"style":63},[230],{"type":18,"value":231}," color_attachment_count",{"type":13,"tag":45,"props":233,"children":234},{"style":52},[235],{"type":18,"value":181},{"type":13,"tag":45,"props":237,"children":238},{"style":160},[239],{"type":18,"value":240}," u32",{"type":13,"tag":45,"props":242,"children":243},{"style":63},[244],{"type":18,"value":201},{"type":13,"tag":45,"props":246,"children":247},{"class":47,"line":111},[248,253,257,261,265],{"type":13,"tag":45,"props":249,"children":250},{"style":63},[251],{"type":18,"value":252}," p_color_attachment_locations",{"type":13,"tag":45,"props":254,"children":255},{"style":52},[256],{"type":18,"value":181},{"type":13,"tag":45,"props":258,"children":259},{"style":52},[260],{"type":18,"value":218},{"type":13,"tag":45,"props":262,"children":263},{"style":160},[264],{"type":18,"value":240},{"type":13,"tag":45,"props":266,"children":267},{"style":63},[268],{"type":18,"value":201},{"type":13,"tag":45,"props":270,"children":271},{"class":47,"line":129},[272],{"type":13,"tag":45,"props":273,"children":274},{"style":63},[275],{"type":18,"value":276},"}\n",{"type":13,"tag":14,"props":278,"children":279},{},[280],{"type":18,"value":281},"or the equivalent",{"type":13,"tag":29,"props":283,"children":284},{},[285,304],{"type":13,"tag":33,"props":286,"children":288},{"className":35,"code":287,"filename":37,"language":38,"meta":39,"style":39},"typedef VkRenderingAttachmentLocationInfo VkRenderingAttachmentLocationInfoKHR;\n",[289],{"type":13,"tag":21,"props":290,"children":291},{"__ignoreMap":39},[292],{"type":13,"tag":45,"props":293,"children":294},{"class":47,"line":48},[295,299],{"type":13,"tag":45,"props":296,"children":297},{"style":52},[298],{"type":18,"value":55},{"type":13,"tag":45,"props":300,"children":301},{"style":63},[302],{"type":18,"value":303}," VkRenderingAttachmentLocationInfo VkRenderingAttachmentLocationInfoKHR;\n",{"type":13,"tag":33,"props":305,"children":307},{"className":138,"code":306,"filename":140,"language":141,"meta":39,"style":39},"type RenderingAttachmentLocationInfoKHR = vk::RenderingAttachmentLocationInfo;\n",[308],{"type":13,"tag":21,"props":309,"children":310},{"__ignoreMap":39},[311],{"type":13,"tag":45,"props":312,"children":313},{"class":47,"line":48},[314,319,324,329,333,337,342],{"type":13,"tag":45,"props":315,"children":316},{"style":52},[317],{"type":18,"value":318},"type",{"type":13,"tag":45,"props":320,"children":321},{"style":160},[322],{"type":18,"value":323}," RenderingAttachmentLocationInfoKHR",{"type":13,"tag":45,"props":325,"children":326},{"style":52},[327],{"type":18,"value":328}," =",{"type":13,"tag":45,"props":330,"children":331},{"style":160},[332],{"type":18,"value":186},{"type":13,"tag":45,"props":334,"children":335},{"style":52},[336],{"type":18,"value":191},{"type":13,"tag":45,"props":338,"children":339},{"style":160},[340],{"type":18,"value":341},"RenderingAttachmentLocationInfo",{"type":13,"tag":45,"props":343,"children":344},{"style":63},[345],{"type":18,"value":346},";\n",{"type":13,"tag":348,"props":349,"children":350},"ul",{},[351,372,391,410],{"type":13,"tag":352,"props":353,"children":354},"li",{},[355,361,363,370],{"type":13,"tag":21,"props":356,"children":358},{"className":357},[],[359],{"type":18,"value":360},"sType",{"type":18,"value":362}," is a ",{"type":13,"tag":364,"props":365,"children":367},"a",{"href":366},"/man/VkStructureType",[368],{"type":18,"value":369},"VkStructureType",{"type":18,"value":371}," value identifying this structure.",{"type":13,"tag":352,"props":373,"children":374},{},[375,381,383,389],{"type":13,"tag":21,"props":376,"children":378},{"className":377},[],[379],{"type":18,"value":380},"pNext",{"type":18,"value":382}," is ",{"type":13,"tag":21,"props":384,"children":386},{"className":385},[],[387],{"type":18,"value":388},"NULL",{"type":18,"value":390}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":352,"props":392,"children":393},{},[394,400,402,408],{"type":13,"tag":21,"props":395,"children":397},{"className":396},[],[398],{"type":18,"value":399},"colorAttachmentCount",{"type":18,"value":401}," is the number of elements in\n",{"type":13,"tag":21,"props":403,"children":405},{"className":404},[],[406],{"type":18,"value":407},"pColorAttachmentLocations",{"type":18,"value":409},".",{"type":13,"tag":352,"props":411,"children":412},{},[413,418,420,425,427,433],{"type":13,"tag":21,"props":414,"children":416},{"className":415},[],[417],{"type":18,"value":407},{"type":18,"value":419}," is a pointer to an array of\n",{"type":13,"tag":21,"props":421,"children":423},{"className":422},[],[424],{"type":18,"value":399},{"type":18,"value":426}," ",{"type":13,"tag":21,"props":428,"children":430},{"className":429},[],[431],{"type":18,"value":432},"uint32_t",{"type":18,"value":434}," values defining remapped\nlocations for color attachments.",{"type":13,"tag":14,"props":436,"children":437},{},[438],{"type":18,"value":439},"This structure allows applications to remap the locations of color\nattachments to different fragment shader output locations.",{"type":13,"tag":14,"props":441,"children":442},{},[443,445,450,452,458,460,465,467,472,474,479],{"type":18,"value":444},"Each element of ",{"type":13,"tag":21,"props":446,"children":448},{"className":447},[],[449],{"type":18,"value":407},{"type":18,"value":451}," set to\n",{"type":13,"tag":21,"props":453,"children":455},{"className":454},[],[456],{"type":18,"value":457},"VK_ATTACHMENT_UNUSED",{"type":18,"value":459}," will be inaccessible to this pipeline as a color\nattachment; no location will map to it.\nEach element of ",{"type":13,"tag":21,"props":461,"children":463},{"className":462},[],[464],{"type":18,"value":407},{"type":18,"value":466}," set to any other value will\nmap the specified location value to the color attachment specified in the\nrender pass at the corresponding index in the\n",{"type":13,"tag":21,"props":468,"children":470},{"className":469},[],[471],{"type":18,"value":407},{"type":18,"value":473}," array.\nAny writes to a fragment output location that is not mapped to an attachment\n",{"type":13,"tag":475,"props":476,"children":478},"normative",{"type":477},"must",[],{"type":18,"value":480}," be discarded.",{"type":13,"tag":14,"props":482,"children":483},{},[484,486,491,492,497],{"type":18,"value":485},"If ",{"type":13,"tag":21,"props":487,"children":489},{"className":488},[],[490],{"type":18,"value":407},{"type":18,"value":382},{"type":13,"tag":21,"props":493,"children":495},{"className":494},[],[496],{"type":18,"value":388},{"type":18,"value":498},", it is equivalent to setting\neach element to its index within the array.",{"type":13,"tag":14,"props":500,"children":501},{},[502,504,508,510,515,517,523,525,530,532,536],{"type":18,"value":503},"This structure ",{"type":13,"tag":475,"props":505,"children":507},{"type":506},"can",[],{"type":18,"value":509}," be included in the ",{"type":13,"tag":21,"props":511,"children":513},{"className":512},[],[514],{"type":18,"value":380},{"type":18,"value":516}," chain of a\n",{"type":13,"tag":364,"props":518,"children":520},{"href":519},"/man/VkGraphicsPipelineCreateInfo",[521],{"type":18,"value":522},"VkGraphicsPipelineCreateInfo",{"type":18,"value":524}," structure to set this state for a\npipeline.\nIf this structure is not included in the ",{"type":13,"tag":21,"props":526,"children":528},{"className":527},[],[529],{"type":18,"value":380},{"type":18,"value":531}," chain of\n",{"type":13,"tag":364,"props":533,"children":534},{"href":519},[535],{"type":18,"value":522},{"type":18,"value":537},", it is equivalent to specifying this\nstructure with the following properties:",{"type":13,"tag":348,"props":539,"children":540},{},[541,563],{"type":13,"tag":352,"props":542,"children":543},{},[544,549,550,556,557,562],{"type":13,"tag":21,"props":545,"children":547},{"className":546},[],[548],{"type":18,"value":399},{"type":18,"value":451},{"type":13,"tag":364,"props":551,"children":553},{"href":552},"/man/VkPipelineRenderingCreateInfo",[554],{"type":18,"value":555},"VkPipelineRenderingCreateInfo",{"type":18,"value":191},{"type":13,"tag":21,"props":558,"children":560},{"className":559},[],[561],{"type":18,"value":399},{"type":18,"value":409},{"type":13,"tag":352,"props":564,"children":565},{},[566,571,573,578],{"type":13,"tag":21,"props":567,"children":569},{"className":568},[],[570],{"type":18,"value":407},{"type":18,"value":572}," set to ",{"type":13,"tag":21,"props":574,"children":576},{"className":575},[],[577],{"type":18,"value":388},{"type":18,"value":409},{"type":13,"tag":14,"props":580,"children":581},{},[582,583,586,587,592,593,599,601,605,607,613,615,621,623,629,631,636,637,641],{"type":18,"value":503},{"type":13,"tag":475,"props":584,"children":585},{"type":506},[],{"type":18,"value":509},{"type":13,"tag":21,"props":588,"children":590},{"className":589},[],[591],{"type":18,"value":380},{"type":18,"value":516},{"type":13,"tag":364,"props":594,"children":596},{"href":595},"/man/VkCommandBufferInheritanceInfo",[597],{"type":18,"value":598},"VkCommandBufferInheritanceInfo",{"type":18,"value":600}," structure to specify inherited state\nfrom the primary command buffer.\nIf ",{"type":13,"tag":364,"props":602,"children":603},{"href":595},[604],{"type":18,"value":598},{"type":18,"value":606},"::renderPass is not\n",{"type":13,"tag":364,"props":608,"children":610},{"href":609},"/man/VK_NULL_HANDLE",[611],{"type":18,"value":612},"VK_NULL_HANDLE",{"type":18,"value":614},", or\n",{"type":13,"tag":21,"props":616,"children":618},{"className":617},[],[619],{"type":18,"value":620},"VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT",{"type":18,"value":622}," is not specified in\n",{"type":13,"tag":364,"props":624,"children":626},{"href":625},"/man/VkCommandBufferBeginInfo",[627],{"type":18,"value":628},"VkCommandBufferBeginInfo",{"type":18,"value":630},"::flags, members of this structure are\nignored.\nIf this structure is not included in the ",{"type":13,"tag":21,"props":632,"children":634},{"className":633},[],[635],{"type":18,"value":380},{"type":18,"value":531},{"type":13,"tag":364,"props":638,"children":639},{"href":595},[640],{"type":18,"value":598},{"type":18,"value":537},{"type":13,"tag":348,"props":643,"children":644},{},[645,667],{"type":13,"tag":352,"props":646,"children":647},{},[648,653,654,660,661,666],{"type":13,"tag":21,"props":649,"children":651},{"className":650},[],[652],{"type":18,"value":399},{"type":18,"value":451},{"type":13,"tag":364,"props":655,"children":657},{"href":656},"/man/VkCommandBufferInheritanceRenderingInfo",[658],{"type":18,"value":659},"VkCommandBufferInheritanceRenderingInfo",{"type":18,"value":191},{"type":13,"tag":21,"props":662,"children":664},{"className":663},[],[665],{"type":18,"value":399},{"type":18,"value":409},{"type":13,"tag":352,"props":668,"children":669},{},[670,675,676,681],{"type":13,"tag":21,"props":671,"children":673},{"className":672},[],[674],{"type":18,"value":407},{"type":18,"value":572},{"type":13,"tag":21,"props":677,"children":679},{"className":678},[],[680],{"type":18,"value":388},{"type":18,"value":409},{"type":13,"tag":683,"props":684,"children":686},"validity-group",{"name":685},"Valid Usage",[687,728,755,783],{"type":13,"tag":688,"props":689,"children":691},"validity-field",{"name":690},"VUID-VkRenderingAttachmentLocationInfo-dynamicRenderingLocalRead-09512",[692],{"type":13,"tag":14,"props":693,"children":694},{},[695,697,707,709,714,716,721,723,726],{"type":18,"value":696},"If the ",{"type":13,"tag":364,"props":698,"children":700},{"href":699},"/man/VkPhysicalDeviceDynamicRenderingLocalReadFeatures#features-dynamicRenderingLocalRead",[701],{"type":13,"tag":21,"props":702,"children":704},{"className":703},[],[705],{"type":18,"value":706},"dynamicRenderingLocalRead",{"type":18,"value":708}," feature is not enabled, and\n",{"type":13,"tag":21,"props":710,"children":712},{"className":711},[],[713],{"type":18,"value":407},{"type":18,"value":715}," is not ",{"type":13,"tag":21,"props":717,"children":719},{"className":718},[],[720],{"type":18,"value":388},{"type":18,"value":722},", each element ",{"type":13,"tag":475,"props":724,"children":725},{"type":477},[],{"type":18,"value":727}," be the\nvalue of its index within the array",{"type":13,"tag":688,"props":729,"children":731},{"name":730},"VUID-VkRenderingAttachmentLocationInfo-pColorAttachmentLocations-09513",[732],{"type":13,"tag":14,"props":733,"children":734},{},[735,737,742,744,749,750,753],{"type":18,"value":736},"Elements of ",{"type":13,"tag":21,"props":738,"children":740},{"className":739},[],[741],{"type":18,"value":407},{"type":18,"value":743}," that are not\n",{"type":13,"tag":21,"props":745,"children":747},{"className":746},[],[748],{"type":18,"value":457},{"type":18,"value":426},{"type":13,"tag":475,"props":751,"children":752},{"type":477},[],{"type":18,"value":754}," each be unique",{"type":13,"tag":688,"props":756,"children":758},{"name":757},"VUID-VkRenderingAttachmentLocationInfo-colorAttachmentCount-09514",[759],{"type":13,"tag":14,"props":760,"children":761},{},[762,767,768,771,773],{"type":13,"tag":21,"props":763,"children":765},{"className":764},[],[766],{"type":18,"value":399},{"type":18,"value":426},{"type":13,"tag":475,"props":769,"children":770},{"type":477},[],{"type":18,"value":772}," be less than or equal to\n",{"type":13,"tag":364,"props":774,"children":776},{"href":775},"/man/VkPhysicalDeviceLimits#limits-maxColorAttachments",[777],{"type":13,"tag":21,"props":778,"children":780},{"className":779},[],[781],{"type":18,"value":782},"maxColorAttachments",{"type":13,"tag":688,"props":784,"children":786},{"name":785},"VUID-VkRenderingAttachmentLocationInfo-pColorAttachmentLocations-09515",[787],{"type":13,"tag":14,"props":788,"children":789},{},[790,791,796,797,800,802],{"type":18,"value":444},{"type":13,"tag":21,"props":792,"children":794},{"className":793},[],[795],{"type":18,"value":407},{"type":18,"value":426},{"type":13,"tag":475,"props":798,"children":799},{"type":477},[],{"type":18,"value":801}," be less than\n",{"type":13,"tag":364,"props":803,"children":804},{"href":775},[805],{"type":13,"tag":21,"props":806,"children":808},{"className":807},[],[809],{"type":18,"value":782},{"type":13,"tag":683,"props":811,"children":813},{"name":812},"Valid Usage (Implicit)",[814],{"type":13,"tag":688,"props":815,"children":817},{"name":816},"VUID-VkRenderingAttachmentLocationInfo-sType-sType",[818],{"type":13,"tag":14,"props":819,"children":820},{},[821,826,827,830,832],{"type":13,"tag":21,"props":822,"children":824},{"className":823},[],[825],{"type":18,"value":360},{"type":18,"value":426},{"type":13,"tag":475,"props":828,"children":829},{"type":477},[],{"type":18,"value":831}," be ",{"type":13,"tag":21,"props":833,"children":835},{"className":834},[],[836],{"type":18,"value":837},"VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_LOCATION_INFO",{"type":13,"tag":839,"props":840,"children":841},"style",{},[842],{"type":18,"value":843},"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":69,"depth":69,"links":845},[],"markdown",1744876570733]