[{"data":1,"prerenderedAt":777},["ShallowReactive",2],{"1m8gqUW1oz":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":776,"_id":4},"VkRenderingAttachmentLocationInfoKHR","Structure specifying attachment locations","VK_KHR_dynamic_rendering_local_read","structs",[],{"type":10,"children":11,"toc":774},"root",[12,28,277,365,370,411,429,468,509,572,612,740,768],{"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 VkRenderingAttachmentLocationInfoKHR {\n VkStructureType sType;\n const void* pNext;\n uint32_t colorAttachmentCount;\n const uint32_t* pColorAttachmentLocations;\n} VkRenderingAttachmentLocationInfoKHR;\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}," VkRenderingAttachmentLocationInfoKHR {\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},"} VkRenderingAttachmentLocationInfoKHR;\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 RenderingAttachmentLocationInfoKHR {\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}," RenderingAttachmentLocationInfoKHR",{"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":278,"props":279,"children":280},"ul",{},[281,302,321,340],{"type":13,"tag":282,"props":283,"children":284},"li",{},[285,291,293,300],{"type":13,"tag":21,"props":286,"children":288},{"className":287},[],[289],{"type":18,"value":290},"sType",{"type":18,"value":292}," is a ",{"type":13,"tag":294,"props":295,"children":297},"a",{"href":296},"/man/VkStructureType",[298],{"type":18,"value":299},"VkStructureType",{"type":18,"value":301}," value identifying this structure.",{"type":13,"tag":282,"props":303,"children":304},{},[305,311,313,319],{"type":13,"tag":21,"props":306,"children":308},{"className":307},[],[309],{"type":18,"value":310},"pNext",{"type":18,"value":312}," is ",{"type":13,"tag":21,"props":314,"children":316},{"className":315},[],[317],{"type":18,"value":318},"NULL",{"type":18,"value":320}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":282,"props":322,"children":323},{},[324,330,332,338],{"type":13,"tag":21,"props":325,"children":327},{"className":326},[],[328],{"type":18,"value":329},"colorAttachmentCount",{"type":18,"value":331}," is the number of elements in\n",{"type":13,"tag":21,"props":333,"children":335},{"className":334},[],[336],{"type":18,"value":337},"pColorAttachmentLocations",{"type":18,"value":339},".",{"type":13,"tag":282,"props":341,"children":342},{},[343,348,350,355,357,363],{"type":13,"tag":21,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":337},{"type":18,"value":349}," is a pointer to an array of\n",{"type":13,"tag":21,"props":351,"children":353},{"className":352},[],[354],{"type":18,"value":329},{"type":18,"value":356}," ",{"type":13,"tag":21,"props":358,"children":360},{"className":359},[],[361],{"type":18,"value":362},"uint32_t",{"type":18,"value":364}," values defining remapped\nlocations for color attachments.",{"type":13,"tag":14,"props":366,"children":367},{},[368],{"type":18,"value":369},"This structure allows applications to remap the locations of color\nattachments to different fragment shader output locations.",{"type":13,"tag":14,"props":371,"children":372},{},[373,375,380,382,388,390,395,397,402,404,409],{"type":18,"value":374},"Each element of ",{"type":13,"tag":21,"props":376,"children":378},{"className":377},[],[379],{"type":18,"value":337},{"type":18,"value":381}," set to\n",{"type":13,"tag":21,"props":383,"children":385},{"className":384},[],[386],{"type":18,"value":387},"VK_ATTACHMENT_UNUSED",{"type":18,"value":389}," will be inaccessible to this pipeline as a color\nattachment; no location will map to it.\nEach element of ",{"type":13,"tag":21,"props":391,"children":393},{"className":392},[],[394],{"type":18,"value":337},{"type":18,"value":396}," 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":398,"children":400},{"className":399},[],[401],{"type":18,"value":337},{"type":18,"value":403}," array.\nAny writes to a fragment output location that is not mapped to an attachment\n",{"type":13,"tag":405,"props":406,"children":408},"normative",{"type":407},"must",[],{"type":18,"value":410}," be discarded.",{"type":13,"tag":14,"props":412,"children":413},{},[414,416,421,422,427],{"type":18,"value":415},"If ",{"type":13,"tag":21,"props":417,"children":419},{"className":418},[],[420],{"type":18,"value":337},{"type":18,"value":312},{"type":13,"tag":21,"props":423,"children":425},{"className":424},[],[426],{"type":18,"value":318},{"type":18,"value":428},", it is equivalent to setting\neach element to its index within the array.",{"type":13,"tag":14,"props":430,"children":431},{},[432,434,438,440,445,447,453,455,460,462,466],{"type":18,"value":433},"This structure ",{"type":13,"tag":405,"props":435,"children":437},{"type":436},"can",[],{"type":18,"value":439}," be included in the ",{"type":13,"tag":21,"props":441,"children":443},{"className":442},[],[444],{"type":18,"value":310},{"type":18,"value":446}," chain of a\n",{"type":13,"tag":294,"props":448,"children":450},{"href":449},"/man/VkGraphicsPipelineCreateInfo",[451],{"type":18,"value":452},"VkGraphicsPipelineCreateInfo",{"type":18,"value":454}," structure to set this state for a\npipeline.\nIf this structure is not included in the ",{"type":13,"tag":21,"props":456,"children":458},{"className":457},[],[459],{"type":18,"value":310},{"type":18,"value":461}," chain of\n",{"type":13,"tag":294,"props":463,"children":464},{"href":449},[465],{"type":18,"value":452},{"type":18,"value":467},", it is equivalent to specifying this\nstructure with the following properties:",{"type":13,"tag":278,"props":469,"children":470},{},[471,493],{"type":13,"tag":282,"props":472,"children":473},{},[474,479,480,486,487,492],{"type":13,"tag":21,"props":475,"children":477},{"className":476},[],[478],{"type":18,"value":329},{"type":18,"value":381},{"type":13,"tag":294,"props":481,"children":483},{"href":482},"/man/VkPipelineRenderingCreateInfo",[484],{"type":18,"value":485},"VkPipelineRenderingCreateInfo",{"type":18,"value":191},{"type":13,"tag":21,"props":488,"children":490},{"className":489},[],[491],{"type":18,"value":329},{"type":18,"value":339},{"type":13,"tag":282,"props":494,"children":495},{},[496,501,503,508],{"type":13,"tag":21,"props":497,"children":499},{"className":498},[],[500],{"type":18,"value":337},{"type":18,"value":502}," set to ",{"type":13,"tag":21,"props":504,"children":506},{"className":505},[],[507],{"type":18,"value":318},{"type":18,"value":339},{"type":13,"tag":14,"props":510,"children":511},{},[512,513,516,517,522,523,529,531,535,537,543,545,551,553,559,561,566,567,571],{"type":18,"value":433},{"type":13,"tag":405,"props":514,"children":515},{"type":436},[],{"type":18,"value":439},{"type":13,"tag":21,"props":518,"children":520},{"className":519},[],[521],{"type":18,"value":310},{"type":18,"value":446},{"type":13,"tag":294,"props":524,"children":526},{"href":525},"/man/VkCommandBufferInheritanceInfo",[527],{"type":18,"value":528},"VkCommandBufferInheritanceInfo",{"type":18,"value":530}," structure to specify inherited state\nfrom the primary command buffer.\nIf ",{"type":13,"tag":294,"props":532,"children":533},{"href":525},[534],{"type":18,"value":528},{"type":18,"value":536},"::renderPass is not\n",{"type":13,"tag":294,"props":538,"children":540},{"href":539},"/man/VK_NULL_HANDLE",[541],{"type":18,"value":542},"VK_NULL_HANDLE",{"type":18,"value":544},", or\n",{"type":13,"tag":21,"props":546,"children":548},{"className":547},[],[549],{"type":18,"value":550},"VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT",{"type":18,"value":552}," is not specified in\n",{"type":13,"tag":294,"props":554,"children":556},{"href":555},"/man/VkCommandBufferBeginInfo",[557],{"type":18,"value":558},"VkCommandBufferBeginInfo",{"type":18,"value":560},"::flags, members of this structure are\nignored.\nIf this structure is not included in the ",{"type":13,"tag":21,"props":562,"children":564},{"className":563},[],[565],{"type":18,"value":310},{"type":18,"value":461},{"type":13,"tag":294,"props":568,"children":569},{"href":525},[570],{"type":18,"value":528},{"type":18,"value":467},{"type":13,"tag":278,"props":573,"children":574},{},[575,597],{"type":13,"tag":282,"props":576,"children":577},{},[578,583,584,590,591,596],{"type":13,"tag":21,"props":579,"children":581},{"className":580},[],[582],{"type":18,"value":329},{"type":18,"value":381},{"type":13,"tag":294,"props":585,"children":587},{"href":586},"/man/VkCommandBufferInheritanceRenderingInfo",[588],{"type":18,"value":589},"VkCommandBufferInheritanceRenderingInfo",{"type":18,"value":191},{"type":13,"tag":21,"props":592,"children":594},{"className":593},[],[595],{"type":18,"value":329},{"type":18,"value":339},{"type":13,"tag":282,"props":598,"children":599},{},[600,605,606,611],{"type":13,"tag":21,"props":601,"children":603},{"className":602},[],[604],{"type":18,"value":337},{"type":18,"value":502},{"type":13,"tag":21,"props":607,"children":609},{"className":608},[],[610],{"type":18,"value":318},{"type":18,"value":339},{"type":13,"tag":613,"props":614,"children":616},"validity-group",{"name":615},"Valid Usage",[617,658,685,713],{"type":13,"tag":618,"props":619,"children":621},"validity-field",{"name":620},"VUID-VkRenderingAttachmentLocationInfoKHR-dynamicRenderingLocalRead-09512",[622],{"type":13,"tag":14,"props":623,"children":624},{},[625,627,637,639,644,646,651,653,656],{"type":18,"value":626},"If the ",{"type":13,"tag":294,"props":628,"children":630},{"href":629},"/man/VkPhysicalDeviceDynamicRenderingLocalReadFeaturesKHR#features-dynamicRenderingLocalRead",[631],{"type":13,"tag":21,"props":632,"children":634},{"className":633},[],[635],{"type":18,"value":636},"dynamicRenderingLocalRead",{"type":18,"value":638}," feature is not enabled, and\n",{"type":13,"tag":21,"props":640,"children":642},{"className":641},[],[643],{"type":18,"value":337},{"type":18,"value":645}," is not ",{"type":13,"tag":21,"props":647,"children":649},{"className":648},[],[650],{"type":18,"value":318},{"type":18,"value":652},", each element ",{"type":13,"tag":405,"props":654,"children":655},{"type":407},[],{"type":18,"value":657}," be set\nto the value of its index within the array",{"type":13,"tag":618,"props":659,"children":661},{"name":660},"VUID-VkRenderingAttachmentLocationInfoKHR-pColorAttachmentLocations-09513",[662],{"type":13,"tag":14,"props":663,"children":664},{},[665,667,672,674,679,680,683],{"type":18,"value":666},"Elements of ",{"type":13,"tag":21,"props":668,"children":670},{"className":669},[],[671],{"type":18,"value":337},{"type":18,"value":673}," that are not\n",{"type":13,"tag":21,"props":675,"children":677},{"className":676},[],[678],{"type":18,"value":387},{"type":18,"value":356},{"type":13,"tag":405,"props":681,"children":682},{"type":407},[],{"type":18,"value":684}," each be unique",{"type":13,"tag":618,"props":686,"children":688},{"name":687},"VUID-VkRenderingAttachmentLocationInfoKHR-colorAttachmentCount-09514",[689],{"type":13,"tag":14,"props":690,"children":691},{},[692,697,698,701,703],{"type":13,"tag":21,"props":693,"children":695},{"className":694},[],[696],{"type":18,"value":329},{"type":18,"value":356},{"type":13,"tag":405,"props":699,"children":700},{"type":407},[],{"type":18,"value":702}," be less than or equal to\n",{"type":13,"tag":294,"props":704,"children":706},{"href":705},"/man/VkPhysicalDeviceLimits#limits-maxColorAttachments",[707],{"type":13,"tag":21,"props":708,"children":710},{"className":709},[],[711],{"type":18,"value":712},"maxColorAttachments",{"type":13,"tag":618,"props":714,"children":716},{"name":715},"VUID-VkRenderingAttachmentLocationInfoKHR-pColorAttachmentLocations-09515",[717],{"type":13,"tag":14,"props":718,"children":719},{},[720,721,726,727,730,732],{"type":18,"value":374},{"type":13,"tag":21,"props":722,"children":724},{"className":723},[],[725],{"type":18,"value":337},{"type":18,"value":356},{"type":13,"tag":405,"props":728,"children":729},{"type":407},[],{"type":18,"value":731}," be less than\n",{"type":13,"tag":294,"props":733,"children":734},{"href":705},[735],{"type":13,"tag":21,"props":736,"children":738},{"className":737},[],[739],{"type":18,"value":712},{"type":13,"tag":613,"props":741,"children":743},{"name":742},"Valid Usage (Implicit)",[744],{"type":13,"tag":618,"props":745,"children":747},{"name":746},"VUID-VkRenderingAttachmentLocationInfoKHR-sType-sType",[748],{"type":13,"tag":14,"props":749,"children":750},{},[751,756,757,760,762],{"type":13,"tag":21,"props":752,"children":754},{"className":753},[],[755],{"type":18,"value":290},{"type":18,"value":356},{"type":13,"tag":405,"props":758,"children":759},{"type":407},[],{"type":18,"value":761}," be ",{"type":13,"tag":21,"props":763,"children":765},{"className":764},[],[766],{"type":18,"value":767},"VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_LOCATION_INFO_KHR",{"type":13,"tag":769,"props":770,"children":771},"style",{},[772],{"type":18,"value":773},"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":775},[],"markdown",1725732583534]