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