[{"data":1,"prerenderedAt":541},["ShallowReactive",2],{"cijTOQi6K6":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":540,"_id":4},"VkAttachmentReference","Structure specifying an attachment reference","VK_VERSION_1_0","structs",[],{"type":10,"children":11,"toc":538},"root",[12,28,194,253,504,532],{"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,99],{"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 VkAttachmentReference {\n uint32_t attachment;\n VkImageLayout layout;\n} VkAttachmentReference;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,81,90],{"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}," VkAttachmentReference {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71,76],{"type":13,"tag":45,"props":72,"children":73},{"style":52},[74],{"type":18,"value":75}," uint32_t",{"type":13,"tag":45,"props":77,"children":78},{"style":63},[79],{"type":18,"value":80}," attachment;\n",{"type":13,"tag":45,"props":82,"children":84},{"class":47,"line":83},3,[85],{"type":13,"tag":45,"props":86,"children":87},{"style":63},[88],{"type":18,"value":89}," VkImageLayout layout;\n",{"type":13,"tag":45,"props":91,"children":93},{"class":47,"line":92},4,[94],{"type":13,"tag":45,"props":95,"children":96},{"style":63},[97],{"type":18,"value":98},"} VkAttachmentReference;\n",{"type":13,"tag":33,"props":100,"children":105},{"className":101,"code":102,"filename":103,"language":104,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct AttachmentReference {\n attachment: u32,\n layout: vk::ImageLayout,\n}\n","Rust","rs",[106],{"type":13,"tag":21,"props":107,"children":108},{"__ignoreMap":39},[109,132,155,186],{"type":13,"tag":45,"props":110,"children":111},{"class":47,"line":48},[112,117,121,127],{"type":13,"tag":45,"props":113,"children":114},{"style":52},[115],{"type":18,"value":116},"pub",{"type":13,"tag":45,"props":118,"children":119},{"style":52},[120],{"type":18,"value":60},{"type":13,"tag":45,"props":122,"children":124},{"style":123},"--shiki-default:#953800;--shiki-dark:#FFA657",[125],{"type":18,"value":126}," AttachmentReference",{"type":13,"tag":45,"props":128,"children":129},{"style":63},[130],{"type":18,"value":131}," {\n",{"type":13,"tag":45,"props":133,"children":134},{"class":47,"line":69},[135,140,145,150],{"type":13,"tag":45,"props":136,"children":137},{"style":63},[138],{"type":18,"value":139}," attachment",{"type":13,"tag":45,"props":141,"children":142},{"style":52},[143],{"type":18,"value":144},":",{"type":13,"tag":45,"props":146,"children":147},{"style":123},[148],{"type":18,"value":149}," u32",{"type":13,"tag":45,"props":151,"children":152},{"style":63},[153],{"type":18,"value":154},",\n",{"type":13,"tag":45,"props":156,"children":157},{"class":47,"line":83},[158,163,167,172,177,182],{"type":13,"tag":45,"props":159,"children":160},{"style":63},[161],{"type":18,"value":162}," layout",{"type":13,"tag":45,"props":164,"children":165},{"style":52},[166],{"type":18,"value":144},{"type":13,"tag":45,"props":168,"children":169},{"style":123},[170],{"type":18,"value":171}," vk",{"type":13,"tag":45,"props":173,"children":174},{"style":52},[175],{"type":18,"value":176},"::",{"type":13,"tag":45,"props":178,"children":179},{"style":123},[180],{"type":18,"value":181},"ImageLayout",{"type":13,"tag":45,"props":183,"children":184},{"style":63},[185],{"type":18,"value":154},{"type":13,"tag":45,"props":187,"children":188},{"class":47,"line":92},[189],{"type":13,"tag":45,"props":190,"children":191},{"style":63},[192],{"type":18,"value":193},"}\n",{"type":13,"tag":195,"props":196,"children":197},"ul",{},[198,234],{"type":13,"tag":199,"props":200,"children":201},"li",{},[202,208,210,217,218,224,226,232],{"type":13,"tag":21,"props":203,"children":205},{"className":204},[],[206],{"type":18,"value":207},"attachment",{"type":18,"value":209}," is either an integer value identifying an attachment at\nthe corresponding index in\n",{"type":13,"tag":211,"props":212,"children":214},"a",{"href":213},"/man/VkRenderPassCreateInfo",[215],{"type":18,"value":216},"VkRenderPassCreateInfo",{"type":18,"value":176},{"type":13,"tag":21,"props":219,"children":221},{"className":220},[],[222],{"type":18,"value":223},"pAttachments",{"type":18,"value":225},", or\n",{"type":13,"tag":21,"props":227,"children":229},{"className":228},[],[230],{"type":18,"value":231},"VK_ATTACHMENT_UNUSED",{"type":18,"value":233}," to signify that this attachment is not used.",{"type":13,"tag":199,"props":235,"children":236},{},[237,243,245,251],{"type":13,"tag":21,"props":238,"children":240},{"className":239},[],[241],{"type":18,"value":242},"layout",{"type":18,"value":244}," is a ",{"type":13,"tag":211,"props":246,"children":248},{"href":247},"/man/VkImageLayout",[249],{"type":18,"value":250},"VkImageLayout",{"type":18,"value":252}," value specifying the layout the\nattachment uses during the subpass.",{"type":13,"tag":254,"props":255,"children":257},"validity-group",{"name":256},"Valid Usage",[258,314,388,433,469],{"type":13,"tag":259,"props":260,"children":262},"validity-field",{"name":261},"VUID-VkAttachmentReference-layout-03077",[263],{"type":13,"tag":14,"props":264,"children":265},{},[266,268,273,275,280,282,287,292,294,300,301,307,308],{"type":18,"value":267},"If ",{"type":13,"tag":21,"props":269,"children":271},{"className":270},[],[272],{"type":18,"value":207},{"type":18,"value":274}," is not ",{"type":13,"tag":21,"props":276,"children":278},{"className":277},[],[279],{"type":18,"value":231},{"type":18,"value":281},", ",{"type":13,"tag":21,"props":283,"children":285},{"className":284},[],[286],{"type":18,"value":242},{"type":13,"tag":288,"props":289,"children":291},"normative",{"type":290},"must",[],{"type":18,"value":293}," not be ",{"type":13,"tag":21,"props":295,"children":297},{"className":296},[],[298],{"type":18,"value":299},"VK_IMAGE_LAYOUT_UNDEFINED",{"type":18,"value":154},{"type":13,"tag":21,"props":302,"children":304},{"className":303},[],[305],{"type":18,"value":306},"VK_IMAGE_LAYOUT_PREINITIALIZED",{"type":18,"value":225},{"type":13,"tag":21,"props":309,"children":311},{"className":310},[],[312],{"type":18,"value":313},"VK_IMAGE_LAYOUT_PRESENT_SRC_KHR",{"type":13,"tag":259,"props":315,"children":317},{"name":316},"VUID-VkAttachmentReference-separateDepthStencilLayouts-03313",[318],{"type":13,"tag":14,"props":319,"children":320},{},[321,323,333,335,340,341,346,347,352,354,357,359,365,366,372,373,379,380,386],{"type":18,"value":322},"If the ",{"type":13,"tag":211,"props":324,"children":326},{"href":325},"/man/VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures#features-separateDepthStencilLayouts",[327],{"type":13,"tag":21,"props":328,"children":330},{"className":329},[],[331],{"type":18,"value":332},"separateDepthStencilLayouts",{"type":18,"value":334}," feature is not enabled, and\n",{"type":13,"tag":21,"props":336,"children":338},{"className":337},[],[339],{"type":18,"value":207},{"type":18,"value":274},{"type":13,"tag":21,"props":342,"children":344},{"className":343},[],[345],{"type":18,"value":231},{"type":18,"value":281},{"type":13,"tag":21,"props":348,"children":350},{"className":349},[],[351],{"type":18,"value":242},{"type":18,"value":353}," ",{"type":13,"tag":288,"props":355,"children":356},{"type":290},[],{"type":18,"value":358},"\nnot be ",{"type":13,"tag":21,"props":360,"children":362},{"className":361},[],[363],{"type":18,"value":364},"VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL",{"type":18,"value":154},{"type":13,"tag":21,"props":367,"children":369},{"className":368},[],[370],{"type":18,"value":371},"VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL",{"type":18,"value":154},{"type":13,"tag":21,"props":374,"children":376},{"className":375},[],[377],{"type":18,"value":378},"VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL",{"type":18,"value":225},{"type":13,"tag":21,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":385},"VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL",{"type":18,"value":387},",",{"type":13,"tag":259,"props":389,"children":391},{"name":390},"VUID-VkAttachmentReference-synchronization2-06910",[392],{"type":13,"tag":14,"props":393,"children":394},{},[395,396,406,408,413,414,417,419,425,427],{"type":18,"value":322},{"type":13,"tag":211,"props":397,"children":399},{"href":398},"/man/VkPhysicalDeviceSynchronization2Features#features-synchronization2",[400],{"type":13,"tag":21,"props":401,"children":403},{"className":402},[],[404],{"type":18,"value":405},"synchronization2",{"type":18,"value":407}," feature is\nnot enabled, ",{"type":13,"tag":21,"props":409,"children":411},{"className":410},[],[412],{"type":18,"value":242},{"type":18,"value":353},{"type":13,"tag":288,"props":415,"children":416},{"type":290},[],{"type":18,"value":418}," not be\n",{"type":13,"tag":21,"props":420,"children":422},{"className":421},[],[423],{"type":18,"value":424},"VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR",{"type":18,"value":426}," or\n",{"type":13,"tag":21,"props":428,"children":430},{"className":429},[],[431],{"type":18,"value":432},"VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHR",{"type":13,"tag":259,"props":434,"children":436},{"name":435},"VUID-VkAttachmentReference-attachmentFeedbackLoopLayout-07311",[437],{"type":13,"tag":14,"props":438,"children":439},{},[440,441,451,453,458,459,462,463],{"type":18,"value":322},{"type":13,"tag":211,"props":442,"children":444},{"href":443},"/man/VkPhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT#features-attachmentFeedbackLoopLayout",[445],{"type":13,"tag":21,"props":446,"children":448},{"className":447},[],[449],{"type":18,"value":450},"attachmentFeedbackLoopLayout",{"type":18,"value":452}," feature is not enabled,\n",{"type":13,"tag":21,"props":454,"children":456},{"className":455},[],[457],{"type":18,"value":242},{"type":18,"value":353},{"type":13,"tag":288,"props":460,"children":461},{"type":290},[],{"type":18,"value":418},{"type":13,"tag":21,"props":464,"children":466},{"className":465},[],[467],{"type":18,"value":468},"VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT",{"type":13,"tag":259,"props":470,"children":472},{"name":471},"VUID-VkAttachmentReference-dynamicRenderingLocalRead-09546",[473],{"type":13,"tag":14,"props":474,"children":475},{},[476,477,487,489,494,497,498],{"type":18,"value":322},{"type":13,"tag":211,"props":478,"children":480},{"href":479},"/man/VkPhysicalDeviceDynamicRenderingLocalReadFeaturesKHR#features-dynamicRenderingLocalRead",[481],{"type":13,"tag":21,"props":482,"children":484},{"className":483},[],[485],{"type":18,"value":486},"dynamicRenderingLocalRead",{"type":18,"value":488}," feature is not enabled, ",{"type":13,"tag":21,"props":490,"children":492},{"className":491},[],[493],{"type":18,"value":242},{"type":13,"tag":288,"props":495,"children":496},{"type":290},[],{"type":18,"value":293},{"type":13,"tag":21,"props":499,"children":501},{"className":500},[],[502],{"type":18,"value":503},"VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ_KHR",{"type":13,"tag":254,"props":505,"children":507},{"name":506},"Valid Usage (Implicit)",[508],{"type":13,"tag":259,"props":509,"children":511},{"name":510},"VUID-VkAttachmentReference-layout-parameter",[512],{"type":13,"tag":14,"props":513,"children":514},{},[515,520,521,524,526,530],{"type":13,"tag":21,"props":516,"children":518},{"className":517},[],[519],{"type":18,"value":242},{"type":18,"value":353},{"type":13,"tag":288,"props":522,"children":523},{"type":290},[],{"type":18,"value":525}," be a valid ",{"type":13,"tag":211,"props":527,"children":528},{"href":247},[529],{"type":18,"value":250},{"type":18,"value":531}," value",{"type":13,"tag":533,"props":534,"children":535},"style",{},[536],{"type":18,"value":537},"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":539},[],"markdown",1725732539342]