[{"data":1,"prerenderedAt":562},["ShallowReactive",2],{"fZ1ZhoBI7S":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":561,"_id":4},"vkCmdSetAlphaToOneEnableEXT","Specify the alpha to one enable state 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":559},"root",[20,46,225,257,314,407,411,507,553],{"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}," the ",{"type":21,"tag":38,"props":39,"children":41},"code",{"className":40},[],[42],{"type":26,"value":43},"alphaToOneEnable",{"type":26,"value":45},"\nstate, call:",{"type":21,"tag":47,"props":48,"children":49},"code-group",{},[50,124],{"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 vkCmdSetAlphaToOneEnableEXT(\n VkCommandBuffer commandBuffer,\n VkBool32 alphaToOneEnable);\n","C","c","",[59],{"type":21,"tag":38,"props":60,"children":61},{"__ignoreMap":57},[62,86,106],{"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}," vkCmdSetAlphaToOneEnableEXT",{"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,119],{"type":21,"tag":63,"props":111,"children":112},{"style":82},[113],{"type":26,"value":114}," VkBool32 ",{"type":21,"tag":63,"props":116,"children":117},{"style":97},[118],{"type":26,"value":43},{"type":21,"tag":63,"props":120,"children":121},{"style":82},[122],{"type":26,"value":123},");\n",{"type":21,"tag":51,"props":125,"children":130},{"className":126,"code":127,"filename":128,"language":129,"meta":57,"style":57},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_set_alpha_to_one_enable_ext(\n command_buffer: vk::CommandBuffer,\n alpha_to_one_enable: vk::Bool32,\n);\n","Rust","rs",[131],{"type":21,"tag":38,"props":132,"children":133},{"__ignoreMap":57},[134,156,188,217],{"type":21,"tag":63,"props":135,"children":136},{"class":65,"line":66},[137,142,147,152],{"type":21,"tag":63,"props":138,"children":139},{"style":70},[140],{"type":26,"value":141},"pub",{"type":21,"tag":63,"props":143,"children":144},{"style":70},[145],{"type":26,"value":146}," fn",{"type":21,"tag":63,"props":148,"children":149},{"style":76},[150],{"type":26,"value":151}," cmd_set_alpha_to_one_enable_ext",{"type":21,"tag":63,"props":153,"children":154},{"style":82},[155],{"type":26,"value":85},{"type":21,"tag":63,"props":157,"children":158},{"class":65,"line":88},[159,164,169,174,179,184],{"type":21,"tag":63,"props":160,"children":161},{"style":82},[162],{"type":26,"value":163}," command_buffer",{"type":21,"tag":63,"props":165,"children":166},{"style":70},[167],{"type":26,"value":168},":",{"type":21,"tag":63,"props":170,"children":171},{"style":97},[172],{"type":26,"value":173}," vk",{"type":21,"tag":63,"props":175,"children":176},{"style":70},[177],{"type":26,"value":178},"::",{"type":21,"tag":63,"props":180,"children":181},{"style":97},[182],{"type":26,"value":183},"CommandBuffer",{"type":21,"tag":63,"props":185,"children":186},{"style":82},[187],{"type":26,"value":105},{"type":21,"tag":63,"props":189,"children":190},{"class":65,"line":108},[191,196,200,204,208,213],{"type":21,"tag":63,"props":192,"children":193},{"style":82},[194],{"type":26,"value":195}," alpha_to_one_enable",{"type":21,"tag":63,"props":197,"children":198},{"style":70},[199],{"type":26,"value":168},{"type":21,"tag":63,"props":201,"children":202},{"style":97},[203],{"type":26,"value":173},{"type":21,"tag":63,"props":205,"children":206},{"style":70},[207],{"type":26,"value":178},{"type":21,"tag":63,"props":209,"children":210},{"style":97},[211],{"type":26,"value":212},"Bool32",{"type":21,"tag":63,"props":214,"children":215},{"style":82},[216],{"type":26,"value":105},{"type":21,"tag":63,"props":218,"children":220},{"class":65,"line":219},4,[221],{"type":21,"tag":63,"props":222,"children":223},{"style":82},[224],{"type":26,"value":123},{"type":21,"tag":226,"props":227,"children":228},"ul",{},[229,240],{"type":21,"tag":230,"props":231,"children":232},"li",{},[233,238],{"type":21,"tag":38,"props":234,"children":236},{"className":235},[],[237],{"type":26,"value":100},{"type":26,"value":239}," is the command buffer into which the command will be\nrecorded.",{"type":21,"tag":230,"props":241,"children":242},{},[243,248,250,255],{"type":21,"tag":38,"props":244,"children":246},{"className":245},[],[247],{"type":26,"value":43},{"type":26,"value":249}," specifies the ",{"type":21,"tag":38,"props":251,"children":253},{"className":252},[],[254],{"type":26,"value":43},{"type":26,"value":256}," state.",{"type":21,"tag":22,"props":258,"children":259},{},[260,262,267,269,275,277,283,285,291,292,298,300,306,307,312],{"type":26,"value":261},"This command sets the ",{"type":21,"tag":38,"props":263,"children":265},{"className":264},[],[266],{"type":26,"value":43},{"type":26,"value":268}," state for subsequent drawing\ncommands\nwhen drawing using ",{"type":21,"tag":29,"props":270,"children":272},{"href":271},"/chapters/shaders#shaders-objects",[273],{"type":26,"value":274},"shader objects",{"type":26,"value":276},", or\nwhen the graphics pipeline is created with\n",{"type":21,"tag":38,"props":278,"children":280},{"className":279},[],[281],{"type":26,"value":282},"VK_DYNAMIC_STATE_ALPHA_TO_ONE_ENABLE_EXT",{"type":26,"value":284}," set in\n",{"type":21,"tag":29,"props":286,"children":288},{"href":287},"/man/VkPipelineDynamicStateCreateInfo",[289],{"type":26,"value":290},"VkPipelineDynamicStateCreateInfo",{"type":26,"value":178},{"type":21,"tag":38,"props":293,"children":295},{"className":294},[],[296],{"type":26,"value":297},"pDynamicStates",{"type":26,"value":299},".\nOtherwise, this state is specified by the\n",{"type":21,"tag":29,"props":301,"children":303},{"href":302},"/man/VkPipelineMultisampleStateCreateInfo",[304],{"type":26,"value":305},"VkPipelineMultisampleStateCreateInfo",{"type":26,"value":178},{"type":21,"tag":38,"props":308,"children":310},{"className":309},[],[311],{"type":26,"value":43},{"type":26,"value":313}," value\nused to create the currently active pipeline.",{"type":21,"tag":315,"props":316,"children":318},"validity-group",{"name":317},"Valid Usage",[319],{"type":21,"tag":320,"props":321,"children":323},"validity-field",{"name":322},"VUID-vkCmdSetAlphaToOneEnableEXT-None-09423",[324,348,368],{"type":21,"tag":22,"props":325,"children":326},{},[327,329,334,336,346],{"type":26,"value":328},"At least one of the following ",{"type":21,"tag":330,"props":331,"children":333},"normative",{"type":332},"must",[],{"type":26,"value":335}," be true:- The ",{"type":21,"tag":29,"props":337,"children":339},{"href":338},"/man/VkPhysicalDeviceExtendedDynamicState3FeaturesEXT#features-extendedDynamicState3AlphaToOneEnable",[340],{"type":21,"tag":38,"props":341,"children":343},{"className":342},[],[344],{"type":26,"value":345},"extendedDynamicState3AlphaToOneEnable",{"type":26,"value":347}," feature is\nenabled",{"type":21,"tag":226,"props":349,"children":350},{},[351],{"type":21,"tag":230,"props":352,"children":353},{},[354,356,366],{"type":26,"value":355},"The ",{"type":21,"tag":29,"props":357,"children":359},{"href":358},"/man/VkPhysicalDeviceShaderObjectFeaturesEXT#features-shaderObject",[360],{"type":21,"tag":38,"props":361,"children":363},{"className":362},[],[364],{"type":26,"value":365},"shaderObject",{"type":26,"value":367}," feature is enabled\n::",{"type":21,"tag":320,"props":369,"children":371},{"name":370},"VUID-vkCmdSetAlphaToOneEnableEXT-alphaToOne-07607",[372],{"type":21,"tag":22,"props":373,"children":374},{},[375,377,387,389,394,396,399,401],{"type":26,"value":376},"If the ",{"type":21,"tag":29,"props":378,"children":380},{"href":379},"/man/VkPhysicalDeviceFeatures#features-alphaToOne",[381],{"type":21,"tag":38,"props":382,"children":384},{"className":383},[],[385],{"type":26,"value":386},"alphaToOne",{"type":26,"value":388}," feature is not enabled,\n",{"type":21,"tag":38,"props":390,"children":392},{"className":391},[],[393],{"type":26,"value":43},{"type":26,"value":395}," ",{"type":21,"tag":330,"props":397,"children":398},{"type":332},[],{"type":26,"value":400}," be ",{"type":21,"tag":38,"props":402,"children":404},{"className":403},[],[405],{"type":26,"value":406},"VK_FALSE",{"type":21,"tag":22,"props":408,"children":409},{},[410],{"type":26,"value":178},{"type":21,"tag":315,"props":412,"children":414},{"name":413},"Valid Usage (Implicit)",[415,441,465,493],{"type":21,"tag":320,"props":416,"children":418},{"name":417},"VUID-vkCmdSetAlphaToOneEnableEXT-commandBuffer-parameter",[419],{"type":21,"tag":22,"props":420,"children":421},{},[422,427,428,431,433,439],{"type":21,"tag":38,"props":423,"children":425},{"className":424},[],[426],{"type":26,"value":100},{"type":26,"value":395},{"type":21,"tag":330,"props":429,"children":430},{"type":332},[],{"type":26,"value":432}," be a valid ",{"type":21,"tag":29,"props":434,"children":436},{"href":435},"/man/VkCommandBuffer",[437],{"type":26,"value":438},"VkCommandBuffer",{"type":26,"value":440}," handle",{"type":21,"tag":320,"props":442,"children":444},{"name":443},"VUID-vkCmdSetAlphaToOneEnableEXT-commandBuffer-recording",[445],{"type":21,"tag":22,"props":446,"children":447},{},[448,453,454,457,459],{"type":21,"tag":38,"props":449,"children":451},{"className":450},[],[452],{"type":26,"value":100},{"type":26,"value":395},{"type":21,"tag":330,"props":455,"children":456},{"type":332},[],{"type":26,"value":458}," be in the ",{"type":21,"tag":29,"props":460,"children":462},{"href":461},"/chapters/commandbuffers#commandbuffers-lifecycle",[463],{"type":26,"value":464},"recording state",{"type":21,"tag":320,"props":466,"children":468},{"name":467},"VUID-vkCmdSetAlphaToOneEnableEXT-commandBuffer-cmdpool",[469],{"type":21,"tag":22,"props":470,"children":471},{},[472,473,479,481,486,488,491],{"type":26,"value":355},{"type":21,"tag":38,"props":474,"children":476},{"className":475},[],[477],{"type":26,"value":478},"VkCommandPool",{"type":26,"value":480}," that ",{"type":21,"tag":38,"props":482,"children":484},{"className":483},[],[485],{"type":26,"value":100},{"type":26,"value":487}," was allocated from ",{"type":21,"tag":330,"props":489,"children":490},{"type":332},[],{"type":26,"value":492}," support graphics operations",{"type":21,"tag":320,"props":494,"children":496},{"name":495},"VUID-vkCmdSetAlphaToOneEnableEXT-videocoding",[497],{"type":21,"tag":22,"props":498,"children":499},{},[500,502,505],{"type":26,"value":501},"This command ",{"type":21,"tag":330,"props":503,"children":504},{"type":332},[],{"type":26,"value":506}," only be called outside of a video coding scope",{"type":21,"tag":508,"props":509,"children":511},"validity-box",{"name":510},"Host Synchronization",[512],{"type":21,"tag":226,"props":513,"children":514},{},[515,531],{"type":21,"tag":230,"props":516,"children":517},{},[518,520,525,526,529],{"type":26,"value":519},"Host access to ",{"type":21,"tag":38,"props":521,"children":523},{"className":522},[],[524],{"type":26,"value":100},{"type":26,"value":395},{"type":21,"tag":330,"props":527,"children":528},{"type":332},[],{"type":26,"value":530}," be externally synchronized",{"type":21,"tag":230,"props":532,"children":533},{},[534,536,541,542,547,548,551],{"type":26,"value":535},"Host access to the ",{"type":21,"tag":38,"props":537,"children":539},{"className":538},[],[540],{"type":26,"value":478},{"type":26,"value":480},{"type":21,"tag":38,"props":543,"children":545},{"className":544},[],[546],{"type":26,"value":100},{"type":26,"value":487},{"type":21,"tag":330,"props":549,"children":550},{"type":332},[],{"type":26,"value":552}," be externally synchronized\n::",{"type":21,"tag":554,"props":555,"children":556},"style",{},[557],{"type":26,"value":558},"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":560},[],"markdown",1729612503924]