[{"data":1,"prerenderedAt":774},["ShallowReactive",2],{"NXigKENRn2":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":773,"_id":4},"VkPipelineColorWriteCreateInfoEXT","Structure specifying color write state of a newly created pipeline","VK_EXT_color_write_enable","structs",[],{"type":10,"children":11,"toc":771},"root",[12,28,298,379,441,484,497,557,693,765],{"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,141],{"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 VkPipelineColorWriteCreateInfoEXT {\n VkStructureType sType;\n const void* pNext;\n uint32_t attachmentCount;\n const VkBool32* pColorWriteEnables;\n} VkPipelineColorWriteCreateInfoEXT;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,95,109,132],{"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}," VkPipelineColorWriteCreateInfoEXT {\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}," attachmentCount;\n",{"type":13,"tag":45,"props":110,"children":112},{"class":47,"line":111},5,[113,117,122,127],{"type":13,"tag":45,"props":114,"children":115},{"style":52},[116],{"type":18,"value":84},{"type":13,"tag":45,"props":118,"children":119},{"style":63},[120],{"type":18,"value":121}," VkBool32",{"type":13,"tag":45,"props":123,"children":124},{"style":52},[125],{"type":18,"value":126},"*",{"type":13,"tag":45,"props":128,"children":129},{"style":63},[130],{"type":18,"value":131}," pColorWriteEnables;\n",{"type":13,"tag":45,"props":133,"children":135},{"class":47,"line":134},6,[136],{"type":13,"tag":45,"props":137,"children":138},{"style":63},[139],{"type":18,"value":140},"} VkPipelineColorWriteCreateInfoEXT;\n",{"type":13,"tag":33,"props":142,"children":147},{"className":143,"code":144,"filename":145,"language":146,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PipelineColorWriteCreateInfoEXT {\n s_type: vk::StructureType,\n p_next: *const c_void,\n attachment_count: u32, // # of pAttachments\n p_color_write_enables: *const vk::Bool32,\n}\n","Rust","rs",[148],{"type":13,"tag":21,"props":149,"children":150},{"__ignoreMap":39},[151,174,207,229,257,290],{"type":13,"tag":45,"props":152,"children":153},{"class":47,"line":48},[154,159,163,169],{"type":13,"tag":45,"props":155,"children":156},{"style":52},[157],{"type":18,"value":158},"pub",{"type":13,"tag":45,"props":160,"children":161},{"style":52},[162],{"type":18,"value":60},{"type":13,"tag":45,"props":164,"children":166},{"style":165},"--shiki-default:#953800;--shiki-dark:#FFA657",[167],{"type":18,"value":168}," PipelineColorWriteCreateInfoEXT",{"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":69},[177,182,187,192,197,202],{"type":13,"tag":45,"props":178,"children":179},{"style":63},[180],{"type":18,"value":181}," s_type",{"type":13,"tag":45,"props":183,"children":184},{"style":52},[185],{"type":18,"value":186},":",{"type":13,"tag":45,"props":188,"children":189},{"style":165},[190],{"type":18,"value":191}," vk",{"type":13,"tag":45,"props":193,"children":194},{"style":52},[195],{"type":18,"value":196},"::",{"type":13,"tag":45,"props":198,"children":199},{"style":165},[200],{"type":18,"value":201},"StructureType",{"type":13,"tag":45,"props":203,"children":204},{"style":63},[205],{"type":18,"value":206},",\n",{"type":13,"tag":45,"props":208,"children":209},{"class":47,"line":78},[210,215,219,224],{"type":13,"tag":45,"props":211,"children":212},{"style":63},[213],{"type":18,"value":214}," p_next",{"type":13,"tag":45,"props":216,"children":217},{"style":52},[218],{"type":18,"value":186},{"type":13,"tag":45,"props":220,"children":221},{"style":52},[222],{"type":18,"value":223}," *const",{"type":13,"tag":45,"props":225,"children":226},{"style":63},[227],{"type":18,"value":228}," c_void,\n",{"type":13,"tag":45,"props":230,"children":231},{"class":47,"line":97},[232,237,241,246,251],{"type":13,"tag":45,"props":233,"children":234},{"style":63},[235],{"type":18,"value":236}," attachment_count",{"type":13,"tag":45,"props":238,"children":239},{"style":52},[240],{"type":18,"value":186},{"type":13,"tag":45,"props":242,"children":243},{"style":165},[244],{"type":18,"value":245}," u32",{"type":13,"tag":45,"props":247,"children":248},{"style":63},[249],{"type":18,"value":250},", ",{"type":13,"tag":45,"props":252,"children":254},{"style":253},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[255],{"type":18,"value":256},"// # of pAttachments\n",{"type":13,"tag":45,"props":258,"children":259},{"class":47,"line":111},[260,265,269,273,277,281,286],{"type":13,"tag":45,"props":261,"children":262},{"style":63},[263],{"type":18,"value":264}," p_color_write_enables",{"type":13,"tag":45,"props":266,"children":267},{"style":52},[268],{"type":18,"value":186},{"type":13,"tag":45,"props":270,"children":271},{"style":52},[272],{"type":18,"value":223},{"type":13,"tag":45,"props":274,"children":275},{"style":165},[276],{"type":18,"value":191},{"type":13,"tag":45,"props":278,"children":279},{"style":52},[280],{"type":18,"value":196},{"type":13,"tag":45,"props":282,"children":283},{"style":165},[284],{"type":18,"value":285},"Bool32",{"type":13,"tag":45,"props":287,"children":288},{"style":63},[289],{"type":18,"value":206},{"type":13,"tag":45,"props":291,"children":292},{"class":47,"line":134},[293],{"type":13,"tag":45,"props":294,"children":295},{"style":63},[296],{"type":18,"value":297},"}\n",{"type":13,"tag":299,"props":300,"children":301},"ul",{},[302,323,342,369],{"type":13,"tag":303,"props":304,"children":305},"li",{},[306,312,314,321],{"type":13,"tag":21,"props":307,"children":309},{"className":308},[],[310],{"type":18,"value":311},"sType",{"type":18,"value":313}," is a ",{"type":13,"tag":315,"props":316,"children":318},"a",{"href":317},"/man/VkStructureType",[319],{"type":18,"value":320},"VkStructureType",{"type":18,"value":322}," value identifying this structure.",{"type":13,"tag":303,"props":324,"children":325},{},[326,332,334,340],{"type":13,"tag":21,"props":327,"children":329},{"className":328},[],[330],{"type":18,"value":331},"pNext",{"type":18,"value":333}," is ",{"type":13,"tag":21,"props":335,"children":337},{"className":336},[],[338],{"type":18,"value":339},"NULL",{"type":18,"value":341}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":303,"props":343,"children":344},{},[345,351,353,359,361,367],{"type":13,"tag":21,"props":346,"children":348},{"className":347},[],[349],{"type":18,"value":350},"attachmentCount",{"type":18,"value":352}," is the number of ",{"type":13,"tag":315,"props":354,"children":356},{"href":355},"/man/VkBool32",[357],{"type":18,"value":358},"VkBool32",{"type":18,"value":360}," elements in\n",{"type":13,"tag":21,"props":362,"children":364},{"className":363},[],[365],{"type":18,"value":366},"pColorWriteEnables",{"type":18,"value":368},".",{"type":13,"tag":303,"props":370,"children":371},{},[372,377],{"type":13,"tag":21,"props":373,"children":375},{"className":374},[],[376],{"type":18,"value":366},{"type":18,"value":378}," is a pointer to an array of per target\nattachment boolean values specifying whether color writes are enabled\nfor the given attachment.",{"type":13,"tag":14,"props":380,"children":381},{},[382,384,389,391,397,399,404,406,411,413,418,420,424,426,431,433,439],{"type":18,"value":383},"When this structure is included in the ",{"type":13,"tag":21,"props":385,"children":387},{"className":386},[],[388],{"type":18,"value":331},{"type":18,"value":390}," chain of\n",{"type":13,"tag":315,"props":392,"children":394},{"href":393},"/man/VkPipelineColorBlendStateCreateInfo",[395],{"type":18,"value":396},"VkPipelineColorBlendStateCreateInfo",{"type":18,"value":398},", it defines per-attachment color\nwrite state.\nIf this structure is not included in the ",{"type":13,"tag":21,"props":400,"children":402},{"className":401},[],[403],{"type":18,"value":331},{"type":18,"value":405}," chain, it is equivalent\nto specifying this structure with ",{"type":13,"tag":21,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":350},{"type":18,"value":412}," equal to the\n",{"type":13,"tag":21,"props":414,"children":416},{"className":415},[],[417],{"type":18,"value":350},{"type":18,"value":419}," member of ",{"type":13,"tag":315,"props":421,"children":422},{"href":393},[423],{"type":18,"value":396},{"type":18,"value":425},",\nand ",{"type":13,"tag":21,"props":427,"children":429},{"className":428},[],[430],{"type":18,"value":366},{"type":18,"value":432}," pointing to an array of as many ",{"type":13,"tag":21,"props":434,"children":436},{"className":435},[],[437],{"type":18,"value":438},"VK_TRUE",{"type":18,"value":440},"\nvalues.",{"type":13,"tag":14,"props":442,"children":443},{},[444,446,456,458,462,464,469,471,476,478,483],{"type":18,"value":445},"If the ",{"type":13,"tag":315,"props":447,"children":449},{"href":448},"/man/VkPhysicalDeviceColorWriteEnableFeaturesEXT#features-colorWriteEnable",[450],{"type":13,"tag":21,"props":451,"children":453},{"className":452},[],[454],{"type":18,"value":455},"colorWriteEnable",{"type":18,"value":457}," feature is not\nenabled on the device, all ",{"type":13,"tag":315,"props":459,"children":460},{"href":355},[461],{"type":18,"value":358},{"type":18,"value":463}," elements in the\n",{"type":13,"tag":21,"props":465,"children":467},{"className":466},[],[468],{"type":18,"value":366},{"type":18,"value":470}," array ",{"type":13,"tag":472,"props":473,"children":475},"normative",{"type":474},"must",[],{"type":18,"value":477}," be ",{"type":13,"tag":21,"props":479,"children":481},{"className":480},[],[482],{"type":18,"value":438},{"type":18,"value":368},{"type":13,"tag":14,"props":485,"children":486},{},[487,489,495],{"type":18,"value":488},"Color Write Enable interacts with the ",{"type":13,"tag":315,"props":490,"children":492},{"href":491},"/chapters/framebuffer#framebuffer-color-write-mask",[493],{"type":18,"value":494},"Color\nWrite Mask",{"type":18,"value":496}," as follows:",{"type":13,"tag":299,"props":498,"children":499},{},[500,525],{"type":13,"tag":303,"props":501,"children":502},{},[503,505,510,511,516,518,524],{"type":18,"value":504},"If ",{"type":13,"tag":21,"props":506,"children":508},{"className":507},[],[509],{"type":18,"value":455},{"type":18,"value":333},{"type":13,"tag":21,"props":512,"children":514},{"className":513},[],[515],{"type":18,"value":438},{"type":18,"value":517},", writes to the attachment are\ndetermined by the ",{"type":13,"tag":21,"props":519,"children":521},{"className":520},[],[522],{"type":18,"value":523},"colorWriteMask",{"type":18,"value":368},{"type":13,"tag":303,"props":526,"children":527},{},[528,529,534,535,541,543,548,550,555],{"type":18,"value":504},{"type":13,"tag":21,"props":530,"children":532},{"className":531},[],[533],{"type":18,"value":455},{"type":18,"value":333},{"type":13,"tag":21,"props":536,"children":538},{"className":537},[],[539],{"type":18,"value":540},"VK_FALSE",{"type":18,"value":542},", the ",{"type":13,"tag":21,"props":544,"children":546},{"className":545},[],[547],{"type":18,"value":523},{"type":18,"value":549}," is\nignored and writes to all components of the attachment are disabled.\nThis is equivalent to specifying a ",{"type":13,"tag":21,"props":551,"children":553},{"className":552},[],[554],{"type":18,"value":523},{"type":18,"value":556}," of 0.",{"type":13,"tag":558,"props":559,"children":561},"validity-group",{"name":560},"Valid Usage",[562,598,662],{"type":13,"tag":563,"props":564,"children":566},"validity-field",{"name":565},"VUID-VkPipelineColorWriteCreateInfoEXT-pAttachments-04801",[567],{"type":13,"tag":14,"props":568,"children":569},{},[570,571,579,581,586,588,591,593],{"type":18,"value":445},{"type":13,"tag":315,"props":572,"children":573},{"href":448},[574],{"type":13,"tag":21,"props":575,"children":577},{"className":576},[],[578],{"type":18,"value":455},{"type":18,"value":580}," feature is\nnot enabled, all elements of ",{"type":13,"tag":21,"props":582,"children":584},{"className":583},[],[585],{"type":18,"value":366},{"type":18,"value":587}," ",{"type":13,"tag":472,"props":589,"children":590},{"type":474},[],{"type":18,"value":592}," be\n",{"type":13,"tag":21,"props":594,"children":596},{"className":595},[],[597],{"type":18,"value":438},{"type":13,"tag":563,"props":599,"children":601},{"name":600},"VUID-VkPipelineColorWriteCreateInfoEXT-attachmentCount-07608",[602],{"type":13,"tag":14,"props":603,"children":604},{},[605,607,613,614,620,621,627,629,635,637,642,643,646,648,653,655,660],{"type":18,"value":606},"If the pipeline is being created with\n",{"type":13,"tag":21,"props":608,"children":610},{"className":609},[],[611],{"type":18,"value":612},"VK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT",{"type":18,"value":206},{"type":13,"tag":21,"props":615,"children":617},{"className":616},[],[618],{"type":18,"value":619},"VK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT",{"type":18,"value":206},{"type":13,"tag":21,"props":622,"children":624},{"className":623},[],[625],{"type":18,"value":626},"VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT",{"type":18,"value":628},", or\n",{"type":13,"tag":21,"props":630,"children":632},{"className":631},[],[633],{"type":18,"value":634},"VK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT",{"type":18,"value":636}," dynamic states not set,\n",{"type":13,"tag":21,"props":638,"children":640},{"className":639},[],[641],{"type":18,"value":350},{"type":18,"value":587},{"type":13,"tag":472,"props":644,"children":645},{"type":474},[],{"type":18,"value":647}," be equal to the ",{"type":13,"tag":21,"props":649,"children":651},{"className":650},[],[652],{"type":18,"value":350},{"type":18,"value":654}," member\nof the ",{"type":13,"tag":21,"props":656,"children":658},{"className":657},[],[659],{"type":18,"value":396},{"type":18,"value":661}," structure specified\nduring pipeline creation",{"type":13,"tag":563,"props":663,"children":665},{"name":664},"VUID-VkPipelineColorWriteCreateInfoEXT-attachmentCount-06655",[666],{"type":13,"tag":14,"props":667,"children":668},{},[669,674,675,678,680,686,687],{"type":13,"tag":21,"props":670,"children":672},{"className":671},[],[673],{"type":18,"value":350},{"type":18,"value":587},{"type":13,"tag":472,"props":676,"children":677},{"type":474},[],{"type":18,"value":679}," be less than or equal to the\n",{"type":13,"tag":21,"props":681,"children":683},{"className":682},[],[684],{"type":18,"value":685},"maxColorAttachments",{"type":18,"value":419},{"type":13,"tag":21,"props":688,"children":690},{"className":689},[],[691],{"type":18,"value":692},"VkPhysicalDeviceLimits",{"type":13,"tag":558,"props":694,"children":696},{"name":695},"Valid Usage (Implicit)",[697,720],{"type":13,"tag":563,"props":698,"children":700},{"name":699},"VUID-VkPipelineColorWriteCreateInfoEXT-sType-sType",[701],{"type":13,"tag":14,"props":702,"children":703},{},[704,709,710,713,714],{"type":13,"tag":21,"props":705,"children":707},{"className":706},[],[708],{"type":18,"value":311},{"type":18,"value":587},{"type":13,"tag":472,"props":711,"children":712},{"type":474},[],{"type":18,"value":477},{"type":13,"tag":21,"props":715,"children":717},{"className":716},[],[718],{"type":18,"value":719},"VK_STRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXT",{"type":13,"tag":563,"props":721,"children":723},{"name":722},"VUID-VkPipelineColorWriteCreateInfoEXT-pColorWriteEnables-parameter",[724],{"type":13,"tag":14,"props":725,"children":726},{},[727,728,733,735,741,742,747,748,751,753,758,759,763],{"type":18,"value":504},{"type":13,"tag":21,"props":729,"children":731},{"className":730},[],[732],{"type":18,"value":350},{"type":18,"value":734}," is not ",{"type":13,"tag":21,"props":736,"children":738},{"className":737},[],[739],{"type":18,"value":740},"0",{"type":18,"value":250},{"type":13,"tag":21,"props":743,"children":745},{"className":744},[],[746],{"type":18,"value":366},{"type":18,"value":587},{"type":13,"tag":472,"props":749,"children":750},{"type":474},[],{"type":18,"value":752}," be a valid pointer to an array of ",{"type":13,"tag":21,"props":754,"children":756},{"className":755},[],[757],{"type":18,"value":350},{"type":18,"value":587},{"type":13,"tag":315,"props":760,"children":761},{"href":355},[762],{"type":18,"value":358},{"type":18,"value":764}," values",{"type":13,"tag":766,"props":767,"children":768},"style",{},[769],{"type":18,"value":770},"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":772},[],"markdown",1729612471694]