[{"data":1,"prerenderedAt":519},["ShallowReactive",2],{"nF5HRvMit3":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":518,"_id":4},"vkCmdSetDepthClampEnableEXT","Specify dynamically whether depth clamping 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":516},"root",[20,37,218,243,293,306,367,464,510],{"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\nclamping, 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 vkCmdSetDepthClampEnableEXT(\n VkCommandBuffer commandBuffer,\n VkBool32 depthClampEnable);\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}," vkCmdSetDepthClampEnableEXT",{"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},"depthClampEnable",{"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_clamp_enable_ext(\n command_buffer: vk::CommandBuffer,\n depth_clamp_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_clamp_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_clamp_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 clamping is enabled.",{"type":21,"tag":22,"props":244,"children":245},{},[246,248,254,256,262,264,270,271,277,279,285,286,291],{"type":26,"value":247},"This command sets whether depth clamping 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_CLAMP_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/VkPipelineRasterizationStateCreateInfo",[283],{"type":26,"value":284},"VkPipelineRasterizationStateCreateInfo",{"type":26,"value":171},{"type":21,"tag":51,"props":287,"children":289},{"className":288},[],[290],{"type":26,"value":111},{"type":26,"value":292}," value\nused to create the currently active pipeline.",{"type":21,"tag":22,"props":294,"children":295},{},[296,298,304],{"type":26,"value":297},"If the depth clamping state is changed dynamically, and the pipeline was not\ncreated with ",{"type":21,"tag":51,"props":299,"children":301},{"className":300},[],[302],{"type":26,"value":303},"VK_DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT",{"type":26,"value":305}," enabled, then\ndepth clipping is enabled when depth clamping is disabled and vice versa.",{"type":21,"tag":307,"props":308,"children":310},"validity-group",{"name":309},"Valid Usage",[311,328],{"type":21,"tag":312,"props":313,"children":315},"validity-field",{"name":314},"VUID-vkCmdSetDepthClampEnableEXT-None-09423",[316],{"type":21,"tag":22,"props":317,"children":318},{},[319,321,326],{"type":26,"value":320},"At least one of the following ",{"type":21,"tag":322,"props":323,"children":325},"normative",{"type":324},"must",[],{"type":26,"value":327}," be true:",{"type":21,"tag":312,"props":329,"children":331},{"name":330},"VUID-vkCmdSetDepthClampEnableEXT-depthClamp-07449",[332],{"type":21,"tag":22,"props":333,"children":334},{},[335,337,347,349,354,356,359,361],{"type":26,"value":336},"If the ",{"type":21,"tag":29,"props":338,"children":340},{"href":339},"/man/VkPhysicalDeviceFeatures#features-depthClamp",[341],{"type":21,"tag":51,"props":342,"children":344},{"className":343},[],[345],{"type":26,"value":346},"depthClamp",{"type":26,"value":348}," feature is not enabled,\n",{"type":21,"tag":51,"props":350,"children":352},{"className":351},[],[353],{"type":26,"value":111},{"type":26,"value":355}," ",{"type":21,"tag":322,"props":357,"children":358},{"type":324},[],{"type":26,"value":360}," be ",{"type":21,"tag":51,"props":362,"children":364},{"className":363},[],[365],{"type":26,"value":366},"VK_FALSE",{"type":21,"tag":307,"props":368,"children":370},{"name":369},"Valid Usage (Implicit)",[371,397,421,450],{"type":21,"tag":312,"props":372,"children":374},{"name":373},"VUID-vkCmdSetDepthClampEnableEXT-commandBuffer-parameter",[375],{"type":21,"tag":22,"props":376,"children":377},{},[378,383,384,387,389,395],{"type":21,"tag":51,"props":379,"children":381},{"className":380},[],[382],{"type":26,"value":92},{"type":26,"value":355},{"type":21,"tag":322,"props":385,"children":386},{"type":324},[],{"type":26,"value":388}," be a valid ",{"type":21,"tag":29,"props":390,"children":392},{"href":391},"/man/VkCommandBuffer",[393],{"type":26,"value":394},"VkCommandBuffer",{"type":26,"value":396}," handle",{"type":21,"tag":312,"props":398,"children":400},{"name":399},"VUID-vkCmdSetDepthClampEnableEXT-commandBuffer-recording",[401],{"type":21,"tag":22,"props":402,"children":403},{},[404,409,410,413,415],{"type":21,"tag":51,"props":405,"children":407},{"className":406},[],[408],{"type":26,"value":92},{"type":26,"value":355},{"type":21,"tag":322,"props":411,"children":412},{"type":324},[],{"type":26,"value":414}," be in the ",{"type":21,"tag":29,"props":416,"children":418},{"href":417},"/chapters/commandbuffers#commandbuffers-lifecycle",[419],{"type":26,"value":420},"recording state",{"type":21,"tag":312,"props":422,"children":424},{"name":423},"VUID-vkCmdSetDepthClampEnableEXT-commandBuffer-cmdpool",[425],{"type":21,"tag":22,"props":426,"children":427},{},[428,430,436,438,443,445,448],{"type":26,"value":429},"The ",{"type":21,"tag":51,"props":431,"children":433},{"className":432},[],[434],{"type":26,"value":435},"VkCommandPool",{"type":26,"value":437}," that ",{"type":21,"tag":51,"props":439,"children":441},{"className":440},[],[442],{"type":26,"value":92},{"type":26,"value":444}," was allocated from ",{"type":21,"tag":322,"props":446,"children":447},{"type":324},[],{"type":26,"value":449}," support graphics operations",{"type":21,"tag":312,"props":451,"children":453},{"name":452},"VUID-vkCmdSetDepthClampEnableEXT-videocoding",[454],{"type":21,"tag":22,"props":455,"children":456},{},[457,459,462],{"type":26,"value":458},"This command ",{"type":21,"tag":322,"props":460,"children":461},{"type":324},[],{"type":26,"value":463}," only be called outside of a video coding scope",{"type":21,"tag":465,"props":466,"children":468},"validity-box",{"name":467},"Host Synchronization",[469],{"type":21,"tag":219,"props":470,"children":471},{},[472,488],{"type":21,"tag":223,"props":473,"children":474},{},[475,477,482,483,486],{"type":26,"value":476},"Host access to ",{"type":21,"tag":51,"props":478,"children":480},{"className":479},[],[481],{"type":26,"value":92},{"type":26,"value":355},{"type":21,"tag":322,"props":484,"children":485},{"type":324},[],{"type":26,"value":487}," be externally synchronized",{"type":21,"tag":223,"props":489,"children":490},{},[491,493,498,499,504,505,508],{"type":26,"value":492},"Host access to the ",{"type":21,"tag":51,"props":494,"children":496},{"className":495},[],[497],{"type":26,"value":435},{"type":26,"value":437},{"type":21,"tag":51,"props":500,"children":502},{"className":501},[],[503],{"type":26,"value":92},{"type":26,"value":444},{"type":21,"tag":322,"props":506,"children":507},{"type":324},[],{"type":26,"value":509}," be externally synchronized\n::",{"type":21,"tag":511,"props":512,"children":513},"style",{},[514],{"type":26,"value":515},"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":517},[],"markdown",1725732608552]