[{"data":1,"prerenderedAt":466},["ShallowReactive",2],{"2wSduTC3Yc":3},{"title":4,"description":5,"parent":6,"cmd_buf_level":7,"render_pass_scope":10,"supported_queue_types":11,"tasks":14,"type":17,"xrefs":18,"body":19,"_type":465,"_id":4},"vkCmdBeginConditionalRenderingEXT","Define the beginning of a conditional rendering block","VK_EXT_conditional_rendering",[8,9],"primary","secondary","both",[12,13],"graphics","compute",[15,16],"action","state","protos",[],{"type":20,"children":21,"toc":463},"root",[22,30,226,261,289,411,457],{"type":23,"tag":24,"props":25,"children":26},"element","p",{},[27],{"type":28,"value":29},"text","To begin conditional rendering, call:",{"type":23,"tag":31,"props":32,"children":33},"code-group",{},[34,120],{"type":23,"tag":35,"props":36,"children":42},"pre",{"className":37,"code":38,"filename":39,"language":40,"meta":41,"style":41},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdBeginConditionalRenderingEXT(\n VkCommandBuffer commandBuffer,\n const VkConditionalRenderingBeginInfoEXT* pConditionalRenderingBegin);\n","C","c","",[43],{"type":23,"tag":44,"props":45,"children":46},"code",{"__ignoreMap":41},[47,71,91],{"type":23,"tag":48,"props":49,"children":52},"span",{"class":50,"line":51},"line",1,[53,59,65],{"type":23,"tag":48,"props":54,"children":56},{"style":55},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[57],{"type":28,"value":58},"void",{"type":23,"tag":48,"props":60,"children":62},{"style":61},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[63],{"type":28,"value":64}," vkCmdBeginConditionalRenderingEXT",{"type":23,"tag":48,"props":66,"children":68},{"style":67},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[69],{"type":28,"value":70},"(\n",{"type":23,"tag":48,"props":72,"children":74},{"class":50,"line":73},2,[75,80,86],{"type":23,"tag":48,"props":76,"children":77},{"style":67},[78],{"type":28,"value":79}," VkCommandBuffer ",{"type":23,"tag":48,"props":81,"children":83},{"style":82},"--shiki-default:#953800;--shiki-dark:#FFA657",[84],{"type":28,"value":85},"commandBuffer",{"type":23,"tag":48,"props":87,"children":88},{"style":67},[89],{"type":28,"value":90},",\n",{"type":23,"tag":48,"props":92,"children":94},{"class":50,"line":93},3,[95,100,105,110,115],{"type":23,"tag":48,"props":96,"children":97},{"style":55},[98],{"type":28,"value":99}," const",{"type":23,"tag":48,"props":101,"children":102},{"style":67},[103],{"type":28,"value":104}," VkConditionalRenderingBeginInfoEXT",{"type":23,"tag":48,"props":106,"children":107},{"style":55},[108],{"type":28,"value":109},"*",{"type":23,"tag":48,"props":111,"children":112},{"style":82},[113],{"type":28,"value":114}," pConditionalRenderingBegin",{"type":23,"tag":48,"props":116,"children":117},{"style":67},[118],{"type":28,"value":119},");\n",{"type":23,"tag":35,"props":121,"children":126},{"className":122,"code":123,"filename":124,"language":125,"meta":41,"style":41},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_begin_conditional_rendering_ext(\n command_buffer: vk::CommandBuffer,\n p_conditional_rendering_begin: *const vk::ConditionalRenderingBeginInfoEXT,\n);\n","Rust","rs",[127],{"type":23,"tag":44,"props":128,"children":129},{"__ignoreMap":41},[130,152,184,218],{"type":23,"tag":48,"props":131,"children":132},{"class":50,"line":51},[133,138,143,148],{"type":23,"tag":48,"props":134,"children":135},{"style":55},[136],{"type":28,"value":137},"pub",{"type":23,"tag":48,"props":139,"children":140},{"style":55},[141],{"type":28,"value":142}," fn",{"type":23,"tag":48,"props":144,"children":145},{"style":61},[146],{"type":28,"value":147}," cmd_begin_conditional_rendering_ext",{"type":23,"tag":48,"props":149,"children":150},{"style":67},[151],{"type":28,"value":70},{"type":23,"tag":48,"props":153,"children":154},{"class":50,"line":73},[155,160,165,170,175,180],{"type":23,"tag":48,"props":156,"children":157},{"style":67},[158],{"type":28,"value":159}," command_buffer",{"type":23,"tag":48,"props":161,"children":162},{"style":55},[163],{"type":28,"value":164},":",{"type":23,"tag":48,"props":166,"children":167},{"style":82},[168],{"type":28,"value":169}," vk",{"type":23,"tag":48,"props":171,"children":172},{"style":55},[173],{"type":28,"value":174},"::",{"type":23,"tag":48,"props":176,"children":177},{"style":82},[178],{"type":28,"value":179},"CommandBuffer",{"type":23,"tag":48,"props":181,"children":182},{"style":67},[183],{"type":28,"value":90},{"type":23,"tag":48,"props":185,"children":186},{"class":50,"line":93},[187,192,196,201,205,209,214],{"type":23,"tag":48,"props":188,"children":189},{"style":67},[190],{"type":28,"value":191}," p_conditional_rendering_begin",{"type":23,"tag":48,"props":193,"children":194},{"style":55},[195],{"type":28,"value":164},{"type":23,"tag":48,"props":197,"children":198},{"style":55},[199],{"type":28,"value":200}," *const",{"type":23,"tag":48,"props":202,"children":203},{"style":82},[204],{"type":28,"value":169},{"type":23,"tag":48,"props":206,"children":207},{"style":55},[208],{"type":28,"value":174},{"type":23,"tag":48,"props":210,"children":211},{"style":82},[212],{"type":28,"value":213},"ConditionalRenderingBeginInfoEXT",{"type":23,"tag":48,"props":215,"children":216},{"style":67},[217],{"type":28,"value":90},{"type":23,"tag":48,"props":219,"children":221},{"class":50,"line":220},4,[222],{"type":23,"tag":48,"props":223,"children":224},{"style":67},[225],{"type":28,"value":119},{"type":23,"tag":227,"props":228,"children":229},"ul",{},[230,241],{"type":23,"tag":231,"props":232,"children":233},"li",{},[234,239],{"type":23,"tag":44,"props":235,"children":237},{"className":236},[],[238],{"type":28,"value":85},{"type":28,"value":240}," is the command buffer into which this command will\nbe recorded.",{"type":23,"tag":231,"props":242,"children":243},{},[244,250,252,259],{"type":23,"tag":44,"props":245,"children":247},{"className":246},[],[248],{"type":28,"value":249},"pConditionalRenderingBegin",{"type":28,"value":251}," is a pointer to a\n",{"type":23,"tag":253,"props":254,"children":256},"a",{"href":255},"/man/VkConditionalRenderingBeginInfoEXT",[257],{"type":28,"value":258},"VkConditionalRenderingBeginInfoEXT",{"type":28,"value":260}," structure specifying parameters\nof conditional rendering.",{"type":23,"tag":262,"props":263,"children":265},"validity-group",{"name":264},"Valid Usage",[266],{"type":23,"tag":267,"props":268,"children":270},"validity-field",{"name":269},"VUID-vkCmdBeginConditionalRenderingEXT-None-01980",[271],{"type":23,"tag":24,"props":272,"children":273},{},[274,276,281,283],{"type":28,"value":275},"Conditional rendering ",{"type":23,"tag":277,"props":278,"children":280},"normative",{"type":279},"must",[],{"type":28,"value":282}," not already be\n",{"type":23,"tag":253,"props":284,"children":286},{"href":285},"/chapters/drawing#active-conditional-rendering",[287],{"type":28,"value":288},"active",{"type":23,"tag":262,"props":290,"children":292},{"name":291},"Valid Usage (Implicit)",[293,320,344,368,397],{"type":23,"tag":267,"props":294,"children":296},{"name":295},"VUID-vkCmdBeginConditionalRenderingEXT-commandBuffer-parameter",[297],{"type":23,"tag":24,"props":298,"children":299},{},[300,305,307,310,312,318],{"type":23,"tag":44,"props":301,"children":303},{"className":302},[],[304],{"type":28,"value":85},{"type":28,"value":306}," ",{"type":23,"tag":277,"props":308,"children":309},{"type":279},[],{"type":28,"value":311}," be a valid ",{"type":23,"tag":253,"props":313,"children":315},{"href":314},"/man/VkCommandBuffer",[316],{"type":28,"value":317},"VkCommandBuffer",{"type":28,"value":319}," handle",{"type":23,"tag":267,"props":321,"children":323},{"name":322},"VUID-vkCmdBeginConditionalRenderingEXT-pConditionalRenderingBegin-parameter",[324],{"type":23,"tag":24,"props":325,"children":326},{},[327,332,333,336,338,342],{"type":23,"tag":44,"props":328,"children":330},{"className":329},[],[331],{"type":28,"value":249},{"type":28,"value":306},{"type":23,"tag":277,"props":334,"children":335},{"type":279},[],{"type":28,"value":337}," be a valid pointer to a valid ",{"type":23,"tag":253,"props":339,"children":340},{"href":255},[341],{"type":28,"value":258},{"type":28,"value":343}," structure",{"type":23,"tag":267,"props":345,"children":347},{"name":346},"VUID-vkCmdBeginConditionalRenderingEXT-commandBuffer-recording",[348],{"type":23,"tag":24,"props":349,"children":350},{},[351,356,357,360,362],{"type":23,"tag":44,"props":352,"children":354},{"className":353},[],[355],{"type":28,"value":85},{"type":28,"value":306},{"type":23,"tag":277,"props":358,"children":359},{"type":279},[],{"type":28,"value":361}," be in the ",{"type":23,"tag":253,"props":363,"children":365},{"href":364},"/chapters/commandbuffers#commandbuffers-lifecycle",[366],{"type":28,"value":367},"recording state",{"type":23,"tag":267,"props":369,"children":371},{"name":370},"VUID-vkCmdBeginConditionalRenderingEXT-commandBuffer-cmdpool",[372],{"type":23,"tag":24,"props":373,"children":374},{},[375,377,383,385,390,392,395],{"type":28,"value":376},"The ",{"type":23,"tag":44,"props":378,"children":380},{"className":379},[],[381],{"type":28,"value":382},"VkCommandPool",{"type":28,"value":384}," that ",{"type":23,"tag":44,"props":386,"children":388},{"className":387},[],[389],{"type":28,"value":85},{"type":28,"value":391}," was allocated from ",{"type":23,"tag":277,"props":393,"children":394},{"type":279},[],{"type":28,"value":396}," support graphics, or compute operations",{"type":23,"tag":267,"props":398,"children":400},{"name":399},"VUID-vkCmdBeginConditionalRenderingEXT-videocoding",[401],{"type":23,"tag":24,"props":402,"children":403},{},[404,406,409],{"type":28,"value":405},"This command ",{"type":23,"tag":277,"props":407,"children":408},{"type":279},[],{"type":28,"value":410}," only be called outside of a video coding scope",{"type":23,"tag":412,"props":413,"children":415},"validity-box",{"name":414},"Host Synchronization",[416],{"type":23,"tag":227,"props":417,"children":418},{},[419,435],{"type":23,"tag":231,"props":420,"children":421},{},[422,424,429,430,433],{"type":28,"value":423},"Host access to ",{"type":23,"tag":44,"props":425,"children":427},{"className":426},[],[428],{"type":28,"value":85},{"type":28,"value":306},{"type":23,"tag":277,"props":431,"children":432},{"type":279},[],{"type":28,"value":434}," be externally synchronized",{"type":23,"tag":231,"props":436,"children":437},{},[438,440,445,446,451,452,455],{"type":28,"value":439},"Host access to the ",{"type":23,"tag":44,"props":441,"children":443},{"className":442},[],[444],{"type":28,"value":382},{"type":28,"value":384},{"type":23,"tag":44,"props":447,"children":449},{"className":448},[],[450],{"type":28,"value":85},{"type":28,"value":391},{"type":23,"tag":277,"props":453,"children":454},{"type":279},[],{"type":28,"value":456}," be externally synchronized\n::",{"type":23,"tag":458,"props":459,"children":460},"style",{},[461],{"type":28,"value":462},"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":41,"searchDepth":73,"depth":73,"links":464},[],"markdown",1725732597173]