[{"data":1,"prerenderedAt":720},["ShallowReactive",2],{"ihj5ib02Pg":3},{"title":4,"description":5,"parent":6,"cmd_buf_level":7,"render_pass_scope":10,"supported_queue_types":11,"tasks":13,"type":15,"xrefs":16,"body":17,"_type":719,"_id":4},"vkCmdSetColorBlendEquationEXT","Specify the blend factors and operations dynamically for a command buffer","VK_EXT_extended_dynamic_state3, VK_EXT_shader_object",[8,9],"primary","secondary","both",[12],"graphics",[14],"state","protos",[],{"type":18,"children":19,"toc":717},"root",[20,37,309,378,490,512,665,711],{"type":21,"tag":22,"props":23,"children":24},"element","p",{},[25,28,35],{"type":26,"value":27},"text","To ",{"type":21,"tag":29,"props":30,"children":32},"a",{"href":31},"/chapters/pipelines#pipelines-dynamic-state",[33],{"type":26,"value":34},"dynamically set",{"type":26,"value":36}," color blend factors and\noperations, call:",{"type":21,"tag":38,"props":39,"children":40},"code-group",{},[41,162],{"type":21,"tag":42,"props":43,"children":49},"pre",{"className":44,"code":45,"filename":46,"language":47,"meta":48,"style":48},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdSetColorBlendEquationEXT(\n VkCommandBuffer commandBuffer,\n uint32_t firstAttachment,\n uint32_t attachmentCount,\n const VkColorBlendEquationEXT* pColorBlendEquations);\n","C","c","",[50],{"type":21,"tag":51,"props":52,"children":53},"code",{"__ignoreMap":48},[54,78,98,116,133],{"type":21,"tag":55,"props":56,"children":59},"span",{"class":57,"line":58},"line",1,[60,66,72],{"type":21,"tag":55,"props":61,"children":63},{"style":62},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[64],{"type":26,"value":65},"void",{"type":21,"tag":55,"props":67,"children":69},{"style":68},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[70],{"type":26,"value":71}," vkCmdSetColorBlendEquationEXT",{"type":21,"tag":55,"props":73,"children":75},{"style":74},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[76],{"type":26,"value":77},"(\n",{"type":21,"tag":55,"props":79,"children":81},{"class":57,"line":80},2,[82,87,93],{"type":21,"tag":55,"props":83,"children":84},{"style":74},[85],{"type":26,"value":86}," VkCommandBuffer ",{"type":21,"tag":55,"props":88,"children":90},{"style":89},"--shiki-default:#953800;--shiki-dark:#FFA657",[91],{"type":26,"value":92},"commandBuffer",{"type":21,"tag":55,"props":94,"children":95},{"style":74},[96],{"type":26,"value":97},",\n",{"type":21,"tag":55,"props":99,"children":101},{"class":57,"line":100},3,[102,107,112],{"type":21,"tag":55,"props":103,"children":104},{"style":62},[105],{"type":26,"value":106}," uint32_t",{"type":21,"tag":55,"props":108,"children":109},{"style":89},[110],{"type":26,"value":111}," firstAttachment",{"type":21,"tag":55,"props":113,"children":114},{"style":74},[115],{"type":26,"value":97},{"type":21,"tag":55,"props":117,"children":119},{"class":57,"line":118},4,[120,124,129],{"type":21,"tag":55,"props":121,"children":122},{"style":62},[123],{"type":26,"value":106},{"type":21,"tag":55,"props":125,"children":126},{"style":89},[127],{"type":26,"value":128}," attachmentCount",{"type":21,"tag":55,"props":130,"children":131},{"style":74},[132],{"type":26,"value":97},{"type":21,"tag":55,"props":134,"children":136},{"class":57,"line":135},5,[137,142,147,152,157],{"type":21,"tag":55,"props":138,"children":139},{"style":62},[140],{"type":26,"value":141}," const",{"type":21,"tag":55,"props":143,"children":144},{"style":74},[145],{"type":26,"value":146}," VkColorBlendEquationEXT",{"type":21,"tag":55,"props":148,"children":149},{"style":62},[150],{"type":26,"value":151},"*",{"type":21,"tag":55,"props":153,"children":154},{"style":89},[155],{"type":26,"value":156}," pColorBlendEquations",{"type":21,"tag":55,"props":158,"children":159},{"style":74},[160],{"type":26,"value":161},");\n",{"type":21,"tag":42,"props":163,"children":168},{"className":164,"code":165,"filename":166,"language":167,"meta":48,"style":48},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_set_color_blend_equation_ext(\n command_buffer: vk::CommandBuffer,\n first_attachment: u32,\n attachment_count: u32,\n p_color_blend_equations: *const vk::ColorBlendEquationEXT,\n);\n","Rust","rs",[169],{"type":21,"tag":51,"props":170,"children":171},{"__ignoreMap":48},[172,194,226,247,267,301],{"type":21,"tag":55,"props":173,"children":174},{"class":57,"line":58},[175,180,185,190],{"type":21,"tag":55,"props":176,"children":177},{"style":62},[178],{"type":26,"value":179},"pub",{"type":21,"tag":55,"props":181,"children":182},{"style":62},[183],{"type":26,"value":184}," fn",{"type":21,"tag":55,"props":186,"children":187},{"style":68},[188],{"type":26,"value":189}," cmd_set_color_blend_equation_ext",{"type":21,"tag":55,"props":191,"children":192},{"style":74},[193],{"type":26,"value":77},{"type":21,"tag":55,"props":195,"children":196},{"class":57,"line":80},[197,202,207,212,217,222],{"type":21,"tag":55,"props":198,"children":199},{"style":74},[200],{"type":26,"value":201}," command_buffer",{"type":21,"tag":55,"props":203,"children":204},{"style":62},[205],{"type":26,"value":206},":",{"type":21,"tag":55,"props":208,"children":209},{"style":89},[210],{"type":26,"value":211}," vk",{"type":21,"tag":55,"props":213,"children":214},{"style":62},[215],{"type":26,"value":216},"::",{"type":21,"tag":55,"props":218,"children":219},{"style":89},[220],{"type":26,"value":221},"CommandBuffer",{"type":21,"tag":55,"props":223,"children":224},{"style":74},[225],{"type":26,"value":97},{"type":21,"tag":55,"props":227,"children":228},{"class":57,"line":100},[229,234,238,243],{"type":21,"tag":55,"props":230,"children":231},{"style":74},[232],{"type":26,"value":233}," first_attachment",{"type":21,"tag":55,"props":235,"children":236},{"style":62},[237],{"type":26,"value":206},{"type":21,"tag":55,"props":239,"children":240},{"style":89},[241],{"type":26,"value":242}," u32",{"type":21,"tag":55,"props":244,"children":245},{"style":74},[246],{"type":26,"value":97},{"type":21,"tag":55,"props":248,"children":249},{"class":57,"line":118},[250,255,259,263],{"type":21,"tag":55,"props":251,"children":252},{"style":74},[253],{"type":26,"value":254}," attachment_count",{"type":21,"tag":55,"props":256,"children":257},{"style":62},[258],{"type":26,"value":206},{"type":21,"tag":55,"props":260,"children":261},{"style":89},[262],{"type":26,"value":242},{"type":21,"tag":55,"props":264,"children":265},{"style":74},[266],{"type":26,"value":97},{"type":21,"tag":55,"props":268,"children":269},{"class":57,"line":135},[270,275,279,284,288,292,297],{"type":21,"tag":55,"props":271,"children":272},{"style":74},[273],{"type":26,"value":274}," p_color_blend_equations",{"type":21,"tag":55,"props":276,"children":277},{"style":62},[278],{"type":26,"value":206},{"type":21,"tag":55,"props":280,"children":281},{"style":62},[282],{"type":26,"value":283}," *const",{"type":21,"tag":55,"props":285,"children":286},{"style":89},[287],{"type":26,"value":211},{"type":21,"tag":55,"props":289,"children":290},{"style":62},[291],{"type":26,"value":216},{"type":21,"tag":55,"props":293,"children":294},{"style":89},[295],{"type":26,"value":296},"ColorBlendEquationEXT",{"type":21,"tag":55,"props":298,"children":299},{"style":74},[300],{"type":26,"value":97},{"type":21,"tag":55,"props":302,"children":304},{"class":57,"line":303},6,[305],{"type":21,"tag":55,"props":306,"children":307},{"style":74},[308],{"type":26,"value":161},{"type":21,"tag":310,"props":311,"children":312},"ul",{},[313,324,335,362],{"type":21,"tag":314,"props":315,"children":316},"li",{},[317,322],{"type":21,"tag":51,"props":318,"children":320},{"className":319},[],[321],{"type":26,"value":92},{"type":26,"value":323}," is the command buffer into which the command will be\nrecorded.",{"type":21,"tag":314,"props":325,"children":326},{},[327,333],{"type":21,"tag":51,"props":328,"children":330},{"className":329},[],[331],{"type":26,"value":332},"firstAttachment",{"type":26,"value":334}," the first color attachment the color blend factors\nand operations apply to.",{"type":21,"tag":314,"props":336,"children":337},{},[338,344,346,352,354,360],{"type":21,"tag":51,"props":339,"children":341},{"className":340},[],[342],{"type":26,"value":343},"attachmentCount",{"type":26,"value":345}," the number of ",{"type":21,"tag":29,"props":347,"children":349},{"href":348},"/man/VkColorBlendEquationEXT",[350],{"type":26,"value":351},"VkColorBlendEquationEXT",{"type":26,"value":353},"\nelements in the ",{"type":21,"tag":51,"props":355,"children":357},{"className":356},[],[358],{"type":26,"value":359},"pColorBlendEquations",{"type":26,"value":361}," array.",{"type":21,"tag":314,"props":363,"children":364},{},[365,370,372,376],{"type":21,"tag":51,"props":366,"children":368},{"className":367},[],[369],{"type":26,"value":359},{"type":26,"value":371}," an array of ",{"type":21,"tag":29,"props":373,"children":374},{"href":348},[375],{"type":26,"value":351},{"type":26,"value":377},"\nstructs that specify the color blend factors and operations for the\ncorresponding attachments.",{"type":21,"tag":22,"props":379,"children":380},{},[381,383,389,391,397,399,405,406,412,414,420,421,427,428,432,433,439,440,444,445,451,452,456,457,463,464,468,469,475,477,481,482,488],{"type":26,"value":382},"This command sets the color blending factors and operations of the specified\nattachments for subsequent drawing commands\nwhen drawing using ",{"type":21,"tag":29,"props":384,"children":386},{"href":385},"/chapters/shaders#shaders-objects",[387],{"type":26,"value":388},"shader objects",{"type":26,"value":390},", or\nwhen the graphics pipeline is created with\n",{"type":21,"tag":51,"props":392,"children":394},{"className":393},[],[395],{"type":26,"value":396},"VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT",{"type":26,"value":398}," set in\n",{"type":21,"tag":29,"props":400,"children":402},{"href":401},"/man/VkPipelineDynamicStateCreateInfo",[403],{"type":26,"value":404},"VkPipelineDynamicStateCreateInfo",{"type":26,"value":216},{"type":21,"tag":51,"props":407,"children":409},{"className":408},[],[410],{"type":26,"value":411},"pDynamicStates",{"type":26,"value":413},".\nOtherwise, this state is specified by the\n",{"type":21,"tag":29,"props":415,"children":417},{"href":416},"/man/VkPipelineColorBlendAttachmentState",[418],{"type":26,"value":419},"VkPipelineColorBlendAttachmentState",{"type":26,"value":216},{"type":21,"tag":51,"props":422,"children":424},{"className":423},[],[425],{"type":26,"value":426},"srcColorBlendFactor",{"type":26,"value":97},{"type":21,"tag":29,"props":429,"children":430},{"href":416},[431],{"type":26,"value":419},{"type":26,"value":216},{"type":21,"tag":51,"props":434,"children":436},{"className":435},[],[437],{"type":26,"value":438},"dstColorBlendFactor",{"type":26,"value":97},{"type":21,"tag":29,"props":441,"children":442},{"href":416},[443],{"type":26,"value":419},{"type":26,"value":216},{"type":21,"tag":51,"props":446,"children":448},{"className":447},[],[449],{"type":26,"value":450},"colorBlendOp",{"type":26,"value":97},{"type":21,"tag":29,"props":453,"children":454},{"href":416},[455],{"type":26,"value":419},{"type":26,"value":216},{"type":21,"tag":51,"props":458,"children":460},{"className":459},[],[461],{"type":26,"value":462},"srcAlphaBlendFactor",{"type":26,"value":97},{"type":21,"tag":29,"props":465,"children":466},{"href":416},[467],{"type":26,"value":419},{"type":26,"value":216},{"type":21,"tag":51,"props":470,"children":472},{"className":471},[],[473],{"type":26,"value":474},"dstAlphaBlendFactor",{"type":26,"value":476},", and\n",{"type":21,"tag":29,"props":478,"children":479},{"href":416},[480],{"type":26,"value":419},{"type":26,"value":216},{"type":21,"tag":51,"props":483,"children":485},{"className":484},[],[486],{"type":26,"value":487},"alphaBlendOp",{"type":26,"value":489}," values used to\ncreate the currently active pipeline.",{"type":21,"tag":491,"props":492,"children":494},"validity-group",{"name":493},"Valid Usage",[495],{"type":21,"tag":496,"props":497,"children":499},"validity-field",{"name":498},"VUID-vkCmdSetColorBlendEquationEXT-None-09423",[500],{"type":21,"tag":22,"props":501,"children":502},{},[503,505,510],{"type":26,"value":504},"At least one of the following ",{"type":21,"tag":506,"props":507,"children":509},"normative",{"type":508},"must",[],{"type":26,"value":511}," be true:",{"type":21,"tag":491,"props":513,"children":515},{"name":514},"Valid Usage (Implicit)",[516,543,574,598,627,641],{"type":21,"tag":496,"props":517,"children":519},{"name":518},"VUID-vkCmdSetColorBlendEquationEXT-commandBuffer-parameter",[520],{"type":21,"tag":22,"props":521,"children":522},{},[523,528,530,533,535,541],{"type":21,"tag":51,"props":524,"children":526},{"className":525},[],[527],{"type":26,"value":92},{"type":26,"value":529}," ",{"type":21,"tag":506,"props":531,"children":532},{"type":508},[],{"type":26,"value":534}," be a valid ",{"type":21,"tag":29,"props":536,"children":538},{"href":537},"/man/VkCommandBuffer",[539],{"type":26,"value":540},"VkCommandBuffer",{"type":26,"value":542}," handle",{"type":21,"tag":496,"props":544,"children":546},{"name":545},"VUID-vkCmdSetColorBlendEquationEXT-pColorBlendEquations-parameter",[547],{"type":21,"tag":22,"props":548,"children":549},{},[550,555,556,559,561,566,568,572],{"type":21,"tag":51,"props":551,"children":553},{"className":552},[],[554],{"type":26,"value":359},{"type":26,"value":529},{"type":21,"tag":506,"props":557,"children":558},{"type":508},[],{"type":26,"value":560}," be a valid pointer to an array of ",{"type":21,"tag":51,"props":562,"children":564},{"className":563},[],[565],{"type":26,"value":343},{"type":26,"value":567}," valid ",{"type":21,"tag":29,"props":569,"children":570},{"href":348},[571],{"type":26,"value":351},{"type":26,"value":573}," structures",{"type":21,"tag":496,"props":575,"children":577},{"name":576},"VUID-vkCmdSetColorBlendEquationEXT-commandBuffer-recording",[578],{"type":21,"tag":22,"props":579,"children":580},{},[581,586,587,590,592],{"type":21,"tag":51,"props":582,"children":584},{"className":583},[],[585],{"type":26,"value":92},{"type":26,"value":529},{"type":21,"tag":506,"props":588,"children":589},{"type":508},[],{"type":26,"value":591}," be in the ",{"type":21,"tag":29,"props":593,"children":595},{"href":594},"/chapters/commandbuffers#commandbuffers-lifecycle",[596],{"type":26,"value":597},"recording state",{"type":21,"tag":496,"props":599,"children":601},{"name":600},"VUID-vkCmdSetColorBlendEquationEXT-commandBuffer-cmdpool",[602],{"type":21,"tag":22,"props":603,"children":604},{},[605,607,613,615,620,622,625],{"type":26,"value":606},"The ",{"type":21,"tag":51,"props":608,"children":610},{"className":609},[],[611],{"type":26,"value":612},"VkCommandPool",{"type":26,"value":614}," that ",{"type":21,"tag":51,"props":616,"children":618},{"className":617},[],[619],{"type":26,"value":92},{"type":26,"value":621}," was allocated from ",{"type":21,"tag":506,"props":623,"children":624},{"type":508},[],{"type":26,"value":626}," support graphics operations",{"type":21,"tag":496,"props":628,"children":630},{"name":629},"VUID-vkCmdSetColorBlendEquationEXT-videocoding",[631],{"type":21,"tag":22,"props":632,"children":633},{},[634,636,639],{"type":26,"value":635},"This command ",{"type":21,"tag":506,"props":637,"children":638},{"type":508},[],{"type":26,"value":640}," only be called outside of a video coding scope",{"type":21,"tag":496,"props":642,"children":644},{"name":643},"VUID-vkCmdSetColorBlendEquationEXT-attachmentCount-arraylength",[645],{"type":21,"tag":22,"props":646,"children":647},{},[648,653,654,657,659],{"type":21,"tag":51,"props":649,"children":651},{"className":650},[],[652],{"type":26,"value":343},{"type":26,"value":529},{"type":21,"tag":506,"props":655,"children":656},{"type":508},[],{"type":26,"value":658}," be greater than ",{"type":21,"tag":51,"props":660,"children":662},{"className":661},[],[663],{"type":26,"value":664},"0",{"type":21,"tag":666,"props":667,"children":669},"validity-box",{"name":668},"Host Synchronization",[670],{"type":21,"tag":310,"props":671,"children":672},{},[673,689],{"type":21,"tag":314,"props":674,"children":675},{},[676,678,683,684,687],{"type":26,"value":677},"Host access to ",{"type":21,"tag":51,"props":679,"children":681},{"className":680},[],[682],{"type":26,"value":92},{"type":26,"value":529},{"type":21,"tag":506,"props":685,"children":686},{"type":508},[],{"type":26,"value":688}," be externally synchronized",{"type":21,"tag":314,"props":690,"children":691},{},[692,694,699,700,705,706,709],{"type":26,"value":693},"Host access to the ",{"type":21,"tag":51,"props":695,"children":697},{"className":696},[],[698],{"type":26,"value":612},{"type":26,"value":614},{"type":21,"tag":51,"props":701,"children":703},{"className":702},[],[704],{"type":26,"value":92},{"type":26,"value":621},{"type":21,"tag":506,"props":707,"children":708},{"type":508},[],{"type":26,"value":710}," be externally synchronized\n::",{"type":21,"tag":712,"props":713,"children":714},"style",{},[715],{"type":26,"value":716},"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":48,"searchDepth":80,"depth":80,"links":718},[],"markdown",1725732607919]