[{"data":1,"prerenderedAt":485},["ShallowReactive",2],{"h7gz8h3UKi":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":484,"_id":4},"VkClearColorValue","Structure specifying a clear color value","VK_VERSION_1_0","structs",[],{"type":10,"children":11,"toc":482},"root",[12,28,315,378,383,388,393,476],{"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,159],{"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 union VkClearColorValue {\n float float32[4];\n int32_t int32[4];\n uint32_t uint32[4];\n} VkClearColorValue;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,98,124,150],{"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}," union",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkClearColorValue {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71,76,82,87,93],{"type":13,"tag":45,"props":72,"children":73},{"style":52},[74],{"type":18,"value":75}," float",{"type":13,"tag":45,"props":77,"children":79},{"style":78},"--shiki-default:#953800;--shiki-dark:#FFA657",[80],{"type":18,"value":81}," float32",{"type":13,"tag":45,"props":83,"children":84},{"style":63},[85],{"type":18,"value":86},"[",{"type":13,"tag":45,"props":88,"children":90},{"style":89},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[91],{"type":18,"value":92},"4",{"type":13,"tag":45,"props":94,"children":95},{"style":63},[96],{"type":18,"value":97},"];\n",{"type":13,"tag":45,"props":99,"children":101},{"class":47,"line":100},3,[102,107,112,116,120],{"type":13,"tag":45,"props":103,"children":104},{"style":52},[105],{"type":18,"value":106}," int32_t",{"type":13,"tag":45,"props":108,"children":109},{"style":78},[110],{"type":18,"value":111}," int32",{"type":13,"tag":45,"props":113,"children":114},{"style":63},[115],{"type":18,"value":86},{"type":13,"tag":45,"props":117,"children":118},{"style":89},[119],{"type":18,"value":92},{"type":13,"tag":45,"props":121,"children":122},{"style":63},[123],{"type":18,"value":97},{"type":13,"tag":45,"props":125,"children":127},{"class":47,"line":126},4,[128,133,138,142,146],{"type":13,"tag":45,"props":129,"children":130},{"style":52},[131],{"type":18,"value":132}," uint32_t",{"type":13,"tag":45,"props":134,"children":135},{"style":78},[136],{"type":18,"value":137}," uint32",{"type":13,"tag":45,"props":139,"children":140},{"style":63},[141],{"type":18,"value":86},{"type":13,"tag":45,"props":143,"children":144},{"style":89},[145],{"type":18,"value":92},{"type":13,"tag":45,"props":147,"children":148},{"style":63},[149],{"type":18,"value":97},{"type":13,"tag":45,"props":151,"children":153},{"class":47,"line":152},5,[154],{"type":13,"tag":45,"props":155,"children":156},{"style":63},[157],{"type":18,"value":158},"} VkClearColorValue;\n",{"type":13,"tag":33,"props":160,"children":165},{"className":161,"code":162,"filename":163,"language":164,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub union ClearColorValue {\n float32: *const [f32 ; 4],\n int32: *const [i32 ; 4],\n uint32: *const [u32 ; 4],\n}\n","Rust","rs",[166],{"type":13,"tag":21,"props":167,"children":168},{"__ignoreMap":39},[169,191,233,270,307],{"type":13,"tag":45,"props":170,"children":171},{"class":47,"line":48},[172,177,181,186],{"type":13,"tag":45,"props":173,"children":174},{"style":52},[175],{"type":18,"value":176},"pub",{"type":13,"tag":45,"props":178,"children":179},{"style":52},[180],{"type":18,"value":60},{"type":13,"tag":45,"props":182,"children":183},{"style":78},[184],{"type":18,"value":185}," ClearColorValue",{"type":13,"tag":45,"props":187,"children":188},{"style":63},[189],{"type":18,"value":190}," {\n",{"type":13,"tag":45,"props":192,"children":193},{"class":47,"line":69},[194,199,204,209,214,219,224,228],{"type":13,"tag":45,"props":195,"children":196},{"style":63},[197],{"type":18,"value":198}," float32",{"type":13,"tag":45,"props":200,"children":201},{"style":52},[202],{"type":18,"value":203},":",{"type":13,"tag":45,"props":205,"children":206},{"style":52},[207],{"type":18,"value":208}," *const",{"type":13,"tag":45,"props":210,"children":211},{"style":63},[212],{"type":18,"value":213}," [",{"type":13,"tag":45,"props":215,"children":216},{"style":78},[217],{"type":18,"value":218},"f32",{"type":13,"tag":45,"props":220,"children":221},{"style":63},[222],{"type":18,"value":223}," ; ",{"type":13,"tag":45,"props":225,"children":226},{"style":89},[227],{"type":18,"value":92},{"type":13,"tag":45,"props":229,"children":230},{"style":63},[231],{"type":18,"value":232},"],\n",{"type":13,"tag":45,"props":234,"children":235},{"class":47,"line":100},[236,241,245,249,253,258,262,266],{"type":13,"tag":45,"props":237,"children":238},{"style":63},[239],{"type":18,"value":240}," int32",{"type":13,"tag":45,"props":242,"children":243},{"style":52},[244],{"type":18,"value":203},{"type":13,"tag":45,"props":246,"children":247},{"style":52},[248],{"type":18,"value":208},{"type":13,"tag":45,"props":250,"children":251},{"style":63},[252],{"type":18,"value":213},{"type":13,"tag":45,"props":254,"children":255},{"style":78},[256],{"type":18,"value":257},"i32",{"type":13,"tag":45,"props":259,"children":260},{"style":63},[261],{"type":18,"value":223},{"type":13,"tag":45,"props":263,"children":264},{"style":89},[265],{"type":18,"value":92},{"type":13,"tag":45,"props":267,"children":268},{"style":63},[269],{"type":18,"value":232},{"type":13,"tag":45,"props":271,"children":272},{"class":47,"line":126},[273,278,282,286,290,295,299,303],{"type":13,"tag":45,"props":274,"children":275},{"style":63},[276],{"type":18,"value":277}," uint32",{"type":13,"tag":45,"props":279,"children":280},{"style":52},[281],{"type":18,"value":203},{"type":13,"tag":45,"props":283,"children":284},{"style":52},[285],{"type":18,"value":208},{"type":13,"tag":45,"props":287,"children":288},{"style":63},[289],{"type":18,"value":213},{"type":13,"tag":45,"props":291,"children":292},{"style":78},[293],{"type":18,"value":294},"u32",{"type":13,"tag":45,"props":296,"children":297},{"style":63},[298],{"type":18,"value":223},{"type":13,"tag":45,"props":300,"children":301},{"style":89},[302],{"type":18,"value":92},{"type":13,"tag":45,"props":304,"children":305},{"style":63},[306],{"type":18,"value":232},{"type":13,"tag":45,"props":308,"children":309},{"class":47,"line":152},[310],{"type":13,"tag":45,"props":311,"children":312},{"style":63},[313],{"type":18,"value":314},"}\n",{"type":13,"tag":316,"props":317,"children":318},"ul",{},[319,340,359],{"type":13,"tag":320,"props":321,"children":322},"li",{},[323,329,331,338],{"type":13,"tag":21,"props":324,"children":326},{"className":325},[],[327],{"type":18,"value":328},"float32",{"type":18,"value":330}," are the color clear values when the format of the image or\nattachment is one of the ",{"type":13,"tag":332,"props":333,"children":335},"a",{"href":334},"/chapters/formats#formats-numericformat",[336],{"type":18,"value":337},"numeric formats",{"type":18,"value":339}," with\na numeric type that is floating-point.\nFloating-point values are automatically converted to the format of the\nimage, with the clear value being treated as linear if the image is\nsRGB.",{"type":13,"tag":320,"props":341,"children":342},{},[343,349,351,357],{"type":13,"tag":21,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":348},"int32",{"type":18,"value":350}," are the color clear values when the format of the image or\nattachment has a numeric type that is signed integer (",{"type":13,"tag":21,"props":352,"children":354},{"className":353},[],[355],{"type":18,"value":356},"SINT",{"type":18,"value":358},").\nSigned integer values are converted to the format of the image by\ncasting to the smaller type (with negative 32-bit values mapping to\nnegative values in the smaller type).\nIf the integer clear value is not representable in the target type (e.g.\nwould overflow in conversion to that type), the clear value is\nundefined:.",{"type":13,"tag":320,"props":360,"children":361},{},[362,368,370,376],{"type":13,"tag":21,"props":363,"children":365},{"className":364},[],[366],{"type":18,"value":367},"uint32",{"type":18,"value":369}," are the color clear values when the format of the image or\nattachment has a numeric type that is unsigned integer (",{"type":13,"tag":21,"props":371,"children":373},{"className":372},[],[374],{"type":18,"value":375},"UINT",{"type":18,"value":377},").\nUnsigned integer values are converted to the format of the image by\ncasting to the integer type with fewer bits.",{"type":13,"tag":14,"props":379,"children":380},{},[381],{"type":18,"value":382},"The four array elements of the clear color map to R, G, B, and A components\nof image formats, in order.",{"type":13,"tag":14,"props":384,"children":385},{},[386],{"type":18,"value":387},"If the image has more than one sample, the same value is written to all\nsamples for any pixels being cleared.",{"type":13,"tag":14,"props":389,"children":390},{},[391],{"type":18,"value":392},"If the image or attachment format has a 64-bit component width, the first 2\narray elements of each of the arrays above are reinterpreted as a single\n64-bit element for the R component.\nThe next 2 array elements are used in the same way for the G component.\nIn other words, the union behaves as if it had the following additional\nmembers:",{"type":13,"tag":33,"props":394,"children":396},{"className":35,"code":395,"language":38,"meta":39,"style":39},"double float64[2];\nint64_t int64[2];\nuint64_t uint64[2];\n",[397],{"type":13,"tag":21,"props":398,"children":399},{"__ignoreMap":39},[400,426,451],{"type":13,"tag":45,"props":401,"children":402},{"class":47,"line":48},[403,408,413,417,422],{"type":13,"tag":45,"props":404,"children":405},{"style":52},[406],{"type":18,"value":407},"double",{"type":13,"tag":45,"props":409,"children":410},{"style":78},[411],{"type":18,"value":412}," float64",{"type":13,"tag":45,"props":414,"children":415},{"style":63},[416],{"type":18,"value":86},{"type":13,"tag":45,"props":418,"children":419},{"style":89},[420],{"type":18,"value":421},"2",{"type":13,"tag":45,"props":423,"children":424},{"style":63},[425],{"type":18,"value":97},{"type":13,"tag":45,"props":427,"children":428},{"class":47,"line":69},[429,434,439,443,447],{"type":13,"tag":45,"props":430,"children":431},{"style":52},[432],{"type":18,"value":433},"int64_t",{"type":13,"tag":45,"props":435,"children":436},{"style":78},[437],{"type":18,"value":438}," int64",{"type":13,"tag":45,"props":440,"children":441},{"style":63},[442],{"type":18,"value":86},{"type":13,"tag":45,"props":444,"children":445},{"style":89},[446],{"type":18,"value":421},{"type":13,"tag":45,"props":448,"children":449},{"style":63},[450],{"type":18,"value":97},{"type":13,"tag":45,"props":452,"children":453},{"class":47,"line":100},[454,459,464,468,472],{"type":13,"tag":45,"props":455,"children":456},{"style":52},[457],{"type":18,"value":458},"uint64_t",{"type":13,"tag":45,"props":460,"children":461},{"style":78},[462],{"type":18,"value":463}," uint64",{"type":13,"tag":45,"props":465,"children":466},{"style":63},[467],{"type":18,"value":86},{"type":13,"tag":45,"props":469,"children":470},{"style":89},[471],{"type":18,"value":421},{"type":13,"tag":45,"props":473,"children":474},{"style":63},[475],{"type":18,"value":97},{"type":13,"tag":477,"props":478,"children":479},"style",{},[480],{"type":18,"value":481},"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":483},[],"markdown",1729612436482]