[{"data":1,"prerenderedAt":501},["ShallowReactive",2],{"oe9pdN2Ajv":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":500,"_id":4},"VkColorComponentFlagBits","Bitmask controlling which components are written to the framebuffer","VK_VERSION_1_0","enums",[],{"type":10,"children":11,"toc":498},"root",[12,45,425,474,479,492],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25,27,34,36,43],{"type":18,"value":19},"text","Bits which ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"can",[],{"type":18,"value":26}," be set in\n",{"type":13,"tag":28,"props":29,"children":31},"a",{"href":30},"/man/VkPipelineColorBlendAttachmentState",[32],{"type":18,"value":33},"VkPipelineColorBlendAttachmentState",{"type":18,"value":35},"::",{"type":13,"tag":37,"props":38,"children":40},"code",{"className":39},[],[41],{"type":18,"value":42},"colorWriteMask",{"type":18,"value":44},", determining\nwhether the final color values R, G, B and A are written to the\nframebuffer attachment, are:",{"type":13,"tag":46,"props":47,"children":48},"code-group",{},[49,201],{"type":13,"tag":50,"props":51,"children":57},"pre",{"className":52,"code":53,"filename":54,"language":55,"meta":56,"style":56},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkColorComponentFlagBits {\n VK_COLOR_COMPONENT_R_BIT = 0x00000001,\n VK_COLOR_COMPONENT_G_BIT = 0x00000002,\n VK_COLOR_COMPONENT_B_BIT = 0x00000004,\n VK_COLOR_COMPONENT_A_BIT = 0x00000008,\n} VkColorComponentFlagBits;\n","C","c","",[58],{"type":13,"tag":37,"props":59,"children":60},{"__ignoreMap":56},[61,84,114,140,166,192],{"type":13,"tag":62,"props":63,"children":66},"span",{"class":64,"line":65},"line",1,[67,73,78],{"type":13,"tag":62,"props":68,"children":70},{"style":69},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[71],{"type":18,"value":72},"typedef",{"type":13,"tag":62,"props":74,"children":75},{"style":69},[76],{"type":18,"value":77}," enum",{"type":13,"tag":62,"props":79,"children":81},{"style":80},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[82],{"type":18,"value":83}," VkColorComponentFlagBits {\n",{"type":13,"tag":62,"props":85,"children":87},{"class":64,"line":86},2,[88,93,98,103,109],{"type":13,"tag":62,"props":89,"children":90},{"style":80},[91],{"type":18,"value":92}," VK_COLOR_COMPONENT_R_BIT ",{"type":13,"tag":62,"props":94,"children":95},{"style":69},[96],{"type":18,"value":97},"=",{"type":13,"tag":62,"props":99,"children":100},{"style":69},[101],{"type":18,"value":102}," 0x",{"type":13,"tag":62,"props":104,"children":106},{"style":105},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[107],{"type":18,"value":108},"00000001",{"type":13,"tag":62,"props":110,"children":111},{"style":80},[112],{"type":18,"value":113},",\n",{"type":13,"tag":62,"props":115,"children":117},{"class":64,"line":116},3,[118,123,127,131,136],{"type":13,"tag":62,"props":119,"children":120},{"style":80},[121],{"type":18,"value":122}," VK_COLOR_COMPONENT_G_BIT ",{"type":13,"tag":62,"props":124,"children":125},{"style":69},[126],{"type":18,"value":97},{"type":13,"tag":62,"props":128,"children":129},{"style":69},[130],{"type":18,"value":102},{"type":13,"tag":62,"props":132,"children":133},{"style":105},[134],{"type":18,"value":135},"00000002",{"type":13,"tag":62,"props":137,"children":138},{"style":80},[139],{"type":18,"value":113},{"type":13,"tag":62,"props":141,"children":143},{"class":64,"line":142},4,[144,149,153,157,162],{"type":13,"tag":62,"props":145,"children":146},{"style":80},[147],{"type":18,"value":148}," VK_COLOR_COMPONENT_B_BIT ",{"type":13,"tag":62,"props":150,"children":151},{"style":69},[152],{"type":18,"value":97},{"type":13,"tag":62,"props":154,"children":155},{"style":69},[156],{"type":18,"value":102},{"type":13,"tag":62,"props":158,"children":159},{"style":105},[160],{"type":18,"value":161},"00000004",{"type":13,"tag":62,"props":163,"children":164},{"style":80},[165],{"type":18,"value":113},{"type":13,"tag":62,"props":167,"children":169},{"class":64,"line":168},5,[170,175,179,183,188],{"type":13,"tag":62,"props":171,"children":172},{"style":80},[173],{"type":18,"value":174}," VK_COLOR_COMPONENT_A_BIT ",{"type":13,"tag":62,"props":176,"children":177},{"style":69},[178],{"type":18,"value":97},{"type":13,"tag":62,"props":180,"children":181},{"style":69},[182],{"type":18,"value":102},{"type":13,"tag":62,"props":184,"children":185},{"style":105},[186],{"type":18,"value":187},"00000008",{"type":13,"tag":62,"props":189,"children":190},{"style":80},[191],{"type":18,"value":113},{"type":13,"tag":62,"props":193,"children":195},{"class":64,"line":194},6,[196],{"type":13,"tag":62,"props":197,"children":198},{"style":80},[199],{"type":18,"value":200},"} VkColorComponentFlagBits;\n",{"type":13,"tag":50,"props":202,"children":207},{"className":203,"code":204,"filename":205,"language":206,"meta":56,"style":56},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ColorComponentFlagBits(u32);\nimpl ColorComponentFlagBits {\n pub const R: Self = 0x00000001;\n pub const G: Self = 0x00000002;\n pub const B: Self = 0x00000004;\n pub const A: Self = 0x00000008;\n}\n","Rust","rs",[208],{"type":13,"tag":37,"props":209,"children":210},{"__ignoreMap":56},[211,245,262,305,342,379,416],{"type":13,"tag":62,"props":212,"children":213},{"class":64,"line":65},[214,219,224,230,235,240],{"type":13,"tag":62,"props":215,"children":216},{"style":69},[217],{"type":18,"value":218},"pub",{"type":13,"tag":62,"props":220,"children":221},{"style":69},[222],{"type":18,"value":223}," struct",{"type":13,"tag":62,"props":225,"children":227},{"style":226},"--shiki-default:#953800;--shiki-dark:#FFA657",[228],{"type":18,"value":229}," ColorComponentFlagBits",{"type":13,"tag":62,"props":231,"children":232},{"style":80},[233],{"type":18,"value":234},"(",{"type":13,"tag":62,"props":236,"children":237},{"style":226},[238],{"type":18,"value":239},"u32",{"type":13,"tag":62,"props":241,"children":242},{"style":80},[243],{"type":18,"value":244},");\n",{"type":13,"tag":62,"props":246,"children":247},{"class":64,"line":86},[248,253,257],{"type":13,"tag":62,"props":249,"children":250},{"style":69},[251],{"type":18,"value":252},"impl",{"type":13,"tag":62,"props":254,"children":255},{"style":226},[256],{"type":18,"value":229},{"type":13,"tag":62,"props":258,"children":259},{"style":80},[260],{"type":18,"value":261}," {\n",{"type":13,"tag":62,"props":263,"children":264},{"class":64,"line":116},[265,270,275,280,285,290,295,300],{"type":13,"tag":62,"props":266,"children":267},{"style":69},[268],{"type":18,"value":269}," pub",{"type":13,"tag":62,"props":271,"children":272},{"style":69},[273],{"type":18,"value":274}," const",{"type":13,"tag":62,"props":276,"children":277},{"style":105},[278],{"type":18,"value":279}," R",{"type":13,"tag":62,"props":281,"children":282},{"style":69},[283],{"type":18,"value":284},":",{"type":13,"tag":62,"props":286,"children":287},{"style":105},[288],{"type":18,"value":289}," Self",{"type":13,"tag":62,"props":291,"children":292},{"style":69},[293],{"type":18,"value":294}," =",{"type":13,"tag":62,"props":296,"children":297},{"style":105},[298],{"type":18,"value":299}," 0x00000001",{"type":13,"tag":62,"props":301,"children":302},{"style":80},[303],{"type":18,"value":304},";\n",{"type":13,"tag":62,"props":306,"children":307},{"class":64,"line":142},[308,312,316,321,325,329,333,338],{"type":13,"tag":62,"props":309,"children":310},{"style":69},[311],{"type":18,"value":269},{"type":13,"tag":62,"props":313,"children":314},{"style":69},[315],{"type":18,"value":274},{"type":13,"tag":62,"props":317,"children":318},{"style":105},[319],{"type":18,"value":320}," G",{"type":13,"tag":62,"props":322,"children":323},{"style":69},[324],{"type":18,"value":284},{"type":13,"tag":62,"props":326,"children":327},{"style":105},[328],{"type":18,"value":289},{"type":13,"tag":62,"props":330,"children":331},{"style":69},[332],{"type":18,"value":294},{"type":13,"tag":62,"props":334,"children":335},{"style":105},[336],{"type":18,"value":337}," 0x00000002",{"type":13,"tag":62,"props":339,"children":340},{"style":80},[341],{"type":18,"value":304},{"type":13,"tag":62,"props":343,"children":344},{"class":64,"line":168},[345,349,353,358,362,366,370,375],{"type":13,"tag":62,"props":346,"children":347},{"style":69},[348],{"type":18,"value":269},{"type":13,"tag":62,"props":350,"children":351},{"style":69},[352],{"type":18,"value":274},{"type":13,"tag":62,"props":354,"children":355},{"style":105},[356],{"type":18,"value":357}," B",{"type":13,"tag":62,"props":359,"children":360},{"style":69},[361],{"type":18,"value":284},{"type":13,"tag":62,"props":363,"children":364},{"style":105},[365],{"type":18,"value":289},{"type":13,"tag":62,"props":367,"children":368},{"style":69},[369],{"type":18,"value":294},{"type":13,"tag":62,"props":371,"children":372},{"style":105},[373],{"type":18,"value":374}," 0x00000004",{"type":13,"tag":62,"props":376,"children":377},{"style":80},[378],{"type":18,"value":304},{"type":13,"tag":62,"props":380,"children":381},{"class":64,"line":194},[382,386,390,395,399,403,407,412],{"type":13,"tag":62,"props":383,"children":384},{"style":69},[385],{"type":18,"value":269},{"type":13,"tag":62,"props":387,"children":388},{"style":69},[389],{"type":18,"value":274},{"type":13,"tag":62,"props":391,"children":392},{"style":105},[393],{"type":18,"value":394}," A",{"type":13,"tag":62,"props":396,"children":397},{"style":69},[398],{"type":18,"value":284},{"type":13,"tag":62,"props":400,"children":401},{"style":105},[402],{"type":18,"value":289},{"type":13,"tag":62,"props":404,"children":405},{"style":69},[406],{"type":18,"value":294},{"type":13,"tag":62,"props":408,"children":409},{"style":105},[410],{"type":18,"value":411}," 0x00000008",{"type":13,"tag":62,"props":413,"children":414},{"style":80},[415],{"type":18,"value":304},{"type":13,"tag":62,"props":417,"children":419},{"class":64,"line":418},7,[420],{"type":13,"tag":62,"props":421,"children":422},{"style":80},[423],{"type":18,"value":424},"}\n",{"type":13,"tag":426,"props":427,"children":428},"ul",{},[429,441,452,463],{"type":13,"tag":430,"props":431,"children":432},"li",{},[433,439],{"type":13,"tag":37,"props":434,"children":436},{"className":435},[],[437],{"type":18,"value":438},"VK_COLOR_COMPONENT_R_BIT",{"type":18,"value":440}," specifies that the R value is\nwritten to the color attachment for the appropriate sample.\nOtherwise, the value in memory is unmodified.",{"type":13,"tag":430,"props":442,"children":443},{},[444,450],{"type":13,"tag":37,"props":445,"children":447},{"className":446},[],[448],{"type":18,"value":449},"VK_COLOR_COMPONENT_G_BIT",{"type":18,"value":451}," specifies that the G value is\nwritten to the color attachment for the appropriate sample.\nOtherwise, the value in memory is unmodified.",{"type":13,"tag":430,"props":453,"children":454},{},[455,461],{"type":13,"tag":37,"props":456,"children":458},{"className":457},[],[459],{"type":18,"value":460},"VK_COLOR_COMPONENT_B_BIT",{"type":18,"value":462}," specifies that the B value is\nwritten to the color attachment for the appropriate sample.\nOtherwise, the value in memory is unmodified.",{"type":13,"tag":430,"props":464,"children":465},{},[466,472],{"type":13,"tag":37,"props":467,"children":469},{"className":468},[],[470],{"type":18,"value":471},"VK_COLOR_COMPONENT_A_BIT",{"type":18,"value":473}," specifies that the A value is\nwritten to the color attachment for the appropriate sample.\nOtherwise, the value in memory is unmodified.",{"type":13,"tag":14,"props":475,"children":476},{},[477],{"type":18,"value":478},"The color write mask operation is applied regardless of whether blending is\nenabled.",{"type":13,"tag":14,"props":480,"children":481},{},[482,484,490],{"type":18,"value":483},"The color write mask operation is applied only if\n",{"type":13,"tag":28,"props":485,"children":487},{"href":486},"/chapters/framebuffer#framebuffer-color-write-enable",[488],{"type":18,"value":489},"Color Write Enable",{"type":18,"value":491}," is enabled for the\nrespective attachment.\nOtherwise the color write mask is ignored and writes to all components of\nthe attachment are disabled.",{"type":13,"tag":493,"props":494,"children":495},"style",{},[496],{"type":18,"value":497},"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":56,"searchDepth":86,"depth":86,"links":499},[],"markdown",1725732542498]