[{"data":1,"prerenderedAt":463},["ShallowReactive",2],{"Qqsgfg1rmc":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":462,"_id":4},"VkClearAttachment","Structure specifying a clear attachment","VK_VERSION_1_0","structs",[],{"type":10,"children":11,"toc":460},"root",[12,28,232,294,400,454],{"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,108],{"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 VkClearAttachment {\n VkImageAspectFlags aspectMask;\n uint32_t colorAttachment;\n VkClearValue clearValue;\n} VkClearAttachment;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,90,99],{"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}," VkClearAttachment {\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}," VkImageAspectFlags aspectMask;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," uint32_t",{"type":13,"tag":45,"props":86,"children":87},{"style":63},[88],{"type":18,"value":89}," colorAttachment;\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}," VkClearValue clearValue;\n",{"type":13,"tag":45,"props":100,"children":102},{"class":47,"line":101},5,[103],{"type":13,"tag":45,"props":104,"children":105},{"style":63},[106],{"type":18,"value":107},"} VkClearAttachment;\n",{"type":13,"tag":33,"props":109,"children":114},{"className":110,"code":111,"filename":112,"language":113,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ClearAttachment {\n aspect_mask: vk::ImageAspectFlags,\n color_attachment: u32,\n clear_value: vk::ClearValue,\n}\n","Rust","rs",[115],{"type":13,"tag":21,"props":116,"children":117},{"__ignoreMap":39},[118,141,174,195,224],{"type":13,"tag":45,"props":119,"children":120},{"class":47,"line":48},[121,126,130,136],{"type":13,"tag":45,"props":122,"children":123},{"style":52},[124],{"type":18,"value":125},"pub",{"type":13,"tag":45,"props":127,"children":128},{"style":52},[129],{"type":18,"value":60},{"type":13,"tag":45,"props":131,"children":133},{"style":132},"--shiki-default:#953800;--shiki-dark:#FFA657",[134],{"type":18,"value":135}," ClearAttachment",{"type":13,"tag":45,"props":137,"children":138},{"style":63},[139],{"type":18,"value":140}," {\n",{"type":13,"tag":45,"props":142,"children":143},{"class":47,"line":69},[144,149,154,159,164,169],{"type":13,"tag":45,"props":145,"children":146},{"style":63},[147],{"type":18,"value":148}," aspect_mask",{"type":13,"tag":45,"props":150,"children":151},{"style":52},[152],{"type":18,"value":153},":",{"type":13,"tag":45,"props":155,"children":156},{"style":132},[157],{"type":18,"value":158}," vk",{"type":13,"tag":45,"props":160,"children":161},{"style":52},[162],{"type":18,"value":163},"::",{"type":13,"tag":45,"props":165,"children":166},{"style":132},[167],{"type":18,"value":168},"ImageAspectFlags",{"type":13,"tag":45,"props":170,"children":171},{"style":63},[172],{"type":18,"value":173},",\n",{"type":13,"tag":45,"props":175,"children":176},{"class":47,"line":78},[177,182,186,191],{"type":13,"tag":45,"props":178,"children":179},{"style":63},[180],{"type":18,"value":181}," color_attachment",{"type":13,"tag":45,"props":183,"children":184},{"style":52},[185],{"type":18,"value":153},{"type":13,"tag":45,"props":187,"children":188},{"style":132},[189],{"type":18,"value":190}," u32",{"type":13,"tag":45,"props":192,"children":193},{"style":63},[194],{"type":18,"value":173},{"type":13,"tag":45,"props":196,"children":197},{"class":47,"line":92},[198,203,207,211,215,220],{"type":13,"tag":45,"props":199,"children":200},{"style":63},[201],{"type":18,"value":202}," clear_value",{"type":13,"tag":45,"props":204,"children":205},{"style":52},[206],{"type":18,"value":153},{"type":13,"tag":45,"props":208,"children":209},{"style":132},[210],{"type":18,"value":158},{"type":13,"tag":45,"props":212,"children":213},{"style":52},[214],{"type":18,"value":163},{"type":13,"tag":45,"props":216,"children":217},{"style":132},[218],{"type":18,"value":219},"ClearValue",{"type":13,"tag":45,"props":221,"children":222},{"style":63},[223],{"type":18,"value":173},{"type":13,"tag":45,"props":225,"children":226},{"class":47,"line":101},[227],{"type":13,"tag":45,"props":228,"children":229},{"style":63},[230],{"type":18,"value":231},"}\n",{"type":13,"tag":233,"props":234,"children":235},"ul",{},[236,248,274],{"type":13,"tag":237,"props":238,"children":239},"li",{},[240,246],{"type":13,"tag":21,"props":241,"children":243},{"className":242},[],[244],{"type":18,"value":245},"aspectMask",{"type":18,"value":247}," is a mask selecting the color, depth and/or stencil\naspects of the attachment to be cleared.",{"type":13,"tag":237,"props":249,"children":250},{},[251,257,259,265,267,272],{"type":13,"tag":21,"props":252,"children":254},{"className":253},[],[255],{"type":18,"value":256},"colorAttachment",{"type":18,"value":258}," is only meaningful if\n",{"type":13,"tag":21,"props":260,"children":262},{"className":261},[],[263],{"type":18,"value":264},"VK_IMAGE_ASPECT_COLOR_BIT",{"type":18,"value":266}," is set in ",{"type":13,"tag":21,"props":268,"children":270},{"className":269},[],[271],{"type":18,"value":245},{"type":18,"value":273},", in which\ncase it is an index into the currently bound color attachments.",{"type":13,"tag":237,"props":275,"children":276},{},[277,283,285,292],{"type":13,"tag":21,"props":278,"children":280},{"className":279},[],[281],{"type":18,"value":282},"clearValue",{"type":18,"value":284}," is the color or depth/stencil value to clear the\nattachment to, as described in ",{"type":13,"tag":286,"props":287,"children":289},"a",{"href":288},"/chapters/clears#clears-values",[290],{"type":18,"value":291},"Clear Values",{"type":18,"value":293}," below.",{"type":13,"tag":295,"props":296,"children":298},"validity-group",{"name":297},"Valid Usage",[299,344,369],{"type":13,"tag":300,"props":301,"children":303},"validity-field",{"name":302},"VUID-VkClearAttachment-aspectMask-00019",[304],{"type":13,"tag":14,"props":305,"children":306},{},[307,309,314,316,321,323,328,330,336,338],{"type":18,"value":308},"If ",{"type":13,"tag":21,"props":310,"children":312},{"className":311},[],[313],{"type":18,"value":245},{"type":18,"value":315}," includes ",{"type":13,"tag":21,"props":317,"children":319},{"className":318},[],[320],{"type":18,"value":264},{"type":18,"value":322},", it ",{"type":13,"tag":324,"props":325,"children":327},"normative",{"type":326},"must",[],{"type":18,"value":329},"\nnot include ",{"type":13,"tag":21,"props":331,"children":333},{"className":332},[],[334],{"type":18,"value":335},"VK_IMAGE_ASPECT_DEPTH_BIT",{"type":18,"value":337}," or\n",{"type":13,"tag":21,"props":339,"children":341},{"className":340},[],[342],{"type":18,"value":343},"VK_IMAGE_ASPECT_STENCIL_BIT",{"type":13,"tag":300,"props":345,"children":347},{"name":346},"VUID-VkClearAttachment-aspectMask-00020",[348],{"type":13,"tag":14,"props":349,"children":350},{},[351,356,358,361,363],{"type":13,"tag":21,"props":352,"children":354},{"className":353},[],[355],{"type":18,"value":245},{"type":18,"value":357}," ",{"type":13,"tag":324,"props":359,"children":360},{"type":326},[],{"type":18,"value":362}," not include ",{"type":13,"tag":21,"props":364,"children":366},{"className":365},[],[367],{"type":18,"value":368},"VK_IMAGE_ASPECT_METADATA_BIT",{"type":13,"tag":300,"props":370,"children":372},{"name":371},"VUID-VkClearAttachment-aspectMask-02246",[373],{"type":13,"tag":14,"props":374,"children":375},{},[376,381,382,385,387,393,395],{"type":13,"tag":21,"props":377,"children":379},{"className":378},[],[380],{"type":18,"value":245},{"type":18,"value":357},{"type":13,"tag":324,"props":383,"children":384},{"type":326},[],{"type":18,"value":386}," not include\nVK_IMAGE_ASPECT_MEMORY_PLANE",{"type":13,"tag":388,"props":389,"children":390},"strong",{},[391],{"type":18,"value":392},"i",{"type":18,"value":394},"BIT_EXT for any index ",{"type":13,"tag":396,"props":397,"children":398},"em",{},[399],{"type":18,"value":392},{"type":13,"tag":295,"props":401,"children":403},{"name":402},"Valid Usage (Implicit)",[404,430],{"type":13,"tag":300,"props":405,"children":407},{"name":406},"VUID-VkClearAttachment-aspectMask-parameter",[408],{"type":13,"tag":14,"props":409,"children":410},{},[411,416,417,420,422,428],{"type":13,"tag":21,"props":412,"children":414},{"className":413},[],[415],{"type":18,"value":245},{"type":18,"value":357},{"type":13,"tag":324,"props":418,"children":419},{"type":326},[],{"type":18,"value":421}," be a valid combination of ",{"type":13,"tag":286,"props":423,"children":425},{"href":424},"/man/VkImageAspectFlagBits",[426],{"type":18,"value":427},"VkImageAspectFlagBits",{"type":18,"value":429}," values",{"type":13,"tag":300,"props":431,"children":433},{"name":432},"VUID-VkClearAttachment-aspectMask-requiredbitmask",[434],{"type":13,"tag":14,"props":435,"children":436},{},[437,442,443,446,448],{"type":13,"tag":21,"props":438,"children":440},{"className":439},[],[441],{"type":18,"value":245},{"type":18,"value":357},{"type":13,"tag":324,"props":444,"children":445},{"type":326},[],{"type":18,"value":447}," not be ",{"type":13,"tag":21,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":453},"0",{"type":13,"tag":455,"props":456,"children":457},"style",{},[458],{"type":18,"value":459},"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":461},[],"markdown",1725732542206]