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