[{"data":1,"prerenderedAt":644},["ShallowReactive",2],{"4Vjbuolbcv":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":643,"_id":4},"vkCmdSetDepthClampRangeEXT","Set the viewport depth clamp range dynamically for a command buffer","VK_EXT_shader_object, VK_EXT_depth_clamp_control",[8,9],"primary","secondary","both",[12],"graphics",[14],"state","protos",[],{"type":18,"children":19,"toc":641},"root",[20,37,280,331,381,424,589,635],{"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}," the viewport depth clamp\nrange parameters, call:",{"type":21,"tag":38,"props":39,"children":40},"code-group",{},[41,145],{"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 vkCmdSetDepthClampRangeEXT(\n VkCommandBuffer commandBuffer,\n VkDepthClampModeEXT depthClampMode,\n const VkDepthClampRangeEXT* pDepthClampRange);\n","C","c","",[50],{"type":21,"tag":51,"props":52,"children":53},"code",{"__ignoreMap":48},[54,78,98,116],{"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}," vkCmdSetDepthClampRangeEXT",{"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}," VkDepthClampModeEXT ",{"type":21,"tag":55,"props":108,"children":109},{"style":89},[110],{"type":26,"value":111},"depthClampMode",{"type":21,"tag":55,"props":113,"children":114},{"style":74},[115],{"type":26,"value":97},{"type":21,"tag":55,"props":117,"children":119},{"class":57,"line":118},4,[120,125,130,135,140],{"type":21,"tag":55,"props":121,"children":122},{"style":62},[123],{"type":26,"value":124}," const",{"type":21,"tag":55,"props":126,"children":127},{"style":74},[128],{"type":26,"value":129}," VkDepthClampRangeEXT",{"type":21,"tag":55,"props":131,"children":132},{"style":62},[133],{"type":26,"value":134},"*",{"type":21,"tag":55,"props":136,"children":137},{"style":89},[138],{"type":26,"value":139}," pDepthClampRange",{"type":21,"tag":55,"props":141,"children":142},{"style":74},[143],{"type":26,"value":144},");\n",{"type":21,"tag":42,"props":146,"children":151},{"className":147,"code":148,"filename":149,"language":150,"meta":48,"style":48},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_set_depth_clamp_range_ext(\n command_buffer: vk::CommandBuffer,\n depth_clamp_mode: vk::DepthClampModeEXT,\n p_depth_clamp_range: *const vk::DepthClampRangeEXT,\n);\n","Rust","rs",[152],{"type":21,"tag":51,"props":153,"children":154},{"__ignoreMap":48},[155,177,209,238,272],{"type":21,"tag":55,"props":156,"children":157},{"class":57,"line":58},[158,163,168,173],{"type":21,"tag":55,"props":159,"children":160},{"style":62},[161],{"type":26,"value":162},"pub",{"type":21,"tag":55,"props":164,"children":165},{"style":62},[166],{"type":26,"value":167}," fn",{"type":21,"tag":55,"props":169,"children":170},{"style":68},[171],{"type":26,"value":172}," cmd_set_depth_clamp_range_ext",{"type":21,"tag":55,"props":174,"children":175},{"style":74},[176],{"type":26,"value":77},{"type":21,"tag":55,"props":178,"children":179},{"class":57,"line":80},[180,185,190,195,200,205],{"type":21,"tag":55,"props":181,"children":182},{"style":74},[183],{"type":26,"value":184}," command_buffer",{"type":21,"tag":55,"props":186,"children":187},{"style":62},[188],{"type":26,"value":189},":",{"type":21,"tag":55,"props":191,"children":192},{"style":89},[193],{"type":26,"value":194}," vk",{"type":21,"tag":55,"props":196,"children":197},{"style":62},[198],{"type":26,"value":199},"::",{"type":21,"tag":55,"props":201,"children":202},{"style":89},[203],{"type":26,"value":204},"CommandBuffer",{"type":21,"tag":55,"props":206,"children":207},{"style":74},[208],{"type":26,"value":97},{"type":21,"tag":55,"props":210,"children":211},{"class":57,"line":100},[212,217,221,225,229,234],{"type":21,"tag":55,"props":213,"children":214},{"style":74},[215],{"type":26,"value":216}," depth_clamp_mode",{"type":21,"tag":55,"props":218,"children":219},{"style":62},[220],{"type":26,"value":189},{"type":21,"tag":55,"props":222,"children":223},{"style":89},[224],{"type":26,"value":194},{"type":21,"tag":55,"props":226,"children":227},{"style":62},[228],{"type":26,"value":199},{"type":21,"tag":55,"props":230,"children":231},{"style":89},[232],{"type":26,"value":233},"DepthClampModeEXT",{"type":21,"tag":55,"props":235,"children":236},{"style":74},[237],{"type":26,"value":97},{"type":21,"tag":55,"props":239,"children":240},{"class":57,"line":118},[241,246,250,255,259,263,268],{"type":21,"tag":55,"props":242,"children":243},{"style":74},[244],{"type":26,"value":245}," p_depth_clamp_range",{"type":21,"tag":55,"props":247,"children":248},{"style":62},[249],{"type":26,"value":189},{"type":21,"tag":55,"props":251,"children":252},{"style":62},[253],{"type":26,"value":254}," *const",{"type":21,"tag":55,"props":256,"children":257},{"style":89},[258],{"type":26,"value":194},{"type":21,"tag":55,"props":260,"children":261},{"style":62},[262],{"type":26,"value":199},{"type":21,"tag":55,"props":264,"children":265},{"style":89},[266],{"type":26,"value":267},"DepthClampRangeEXT",{"type":21,"tag":55,"props":269,"children":270},{"style":74},[271],{"type":26,"value":97},{"type":21,"tag":55,"props":273,"children":275},{"class":57,"line":274},5,[276],{"type":21,"tag":55,"props":277,"children":278},{"style":74},[279],{"type":26,"value":144},{"type":21,"tag":281,"props":282,"children":283},"ul",{},[284,295,305],{"type":21,"tag":285,"props":286,"children":287},"li",{},[288,293],{"type":21,"tag":51,"props":289,"children":291},{"className":290},[],[292],{"type":26,"value":92},{"type":26,"value":294}," is the command buffer into which the command will be\nrecorded.",{"type":21,"tag":285,"props":296,"children":297},{},[298,303],{"type":21,"tag":51,"props":299,"children":301},{"className":300},[],[302],{"type":26,"value":111},{"type":26,"value":304}," determines how the clamp range is determined for\neach viewport.",{"type":21,"tag":285,"props":306,"children":307},{},[308,314,316,321,323,329],{"type":21,"tag":51,"props":309,"children":311},{"className":310},[],[312],{"type":26,"value":313},"pDepthClampRange",{"type":26,"value":315}," sets the depth clamp range for all viewports if\n",{"type":21,"tag":51,"props":317,"children":319},{"className":318},[],[320],{"type":26,"value":111},{"type":26,"value":322}," is\n",{"type":21,"tag":51,"props":324,"children":326},{"className":325},[],[327],{"type":26,"value":328},"VK_DEPTH_CLAMP_MODE_USER_DEFINED_RANGE_EXT",{"type":26,"value":330},".",{"type":21,"tag":22,"props":332,"children":333},{},[334,336,342,344,350,352,358,359,365,367,373,374,379],{"type":26,"value":335},"This command sets the viewport depth clamp range for subsequent drawing\ncommands\nwhen drawing using ",{"type":21,"tag":29,"props":337,"children":339},{"href":338},"/chapters/shaders#shaders-objects",[340],{"type":26,"value":341},"shader objects",{"type":26,"value":343},", or\nwhen the graphics pipeline is created with\n",{"type":21,"tag":51,"props":345,"children":347},{"className":346},[],[348],{"type":26,"value":349},"VK_DYNAMIC_STATE_DEPTH_CLAMP_RANGE_EXT",{"type":26,"value":351}," set in\n",{"type":21,"tag":29,"props":353,"children":355},{"href":354},"/man/VkPipelineDynamicStateCreateInfo",[356],{"type":26,"value":357},"VkPipelineDynamicStateCreateInfo",{"type":26,"value":199},{"type":21,"tag":51,"props":360,"children":362},{"className":361},[],[363],{"type":26,"value":364},"pDynamicStates",{"type":26,"value":366},".\nOtherwise, this state is specified by the\n",{"type":21,"tag":29,"props":368,"children":370},{"href":369},"/man/VkPipelineViewportDepthClampControlCreateInfoEXT",[371],{"type":26,"value":372},"VkPipelineViewportDepthClampControlCreateInfoEXT",{"type":26,"value":199},{"type":21,"tag":51,"props":375,"children":377},{"className":376},[],[378],{"type":26,"value":111},{"type":26,"value":380},"\nvalue used to create the currently active pipeline.",{"type":21,"tag":382,"props":383,"children":385},"validity-group",{"name":384},"Valid Usage",[386],{"type":21,"tag":387,"props":388,"children":390},"validity-field",{"name":389},"VUID-vkCmdSetDepthClampRangeEXT-pDepthClampRange-09647",[391],{"type":21,"tag":22,"props":392,"children":393},{},[394,396,401,402,407,409,414,416,422],{"type":26,"value":395},"If ",{"type":21,"tag":51,"props":397,"children":399},{"className":398},[],[400],{"type":26,"value":111},{"type":26,"value":322},{"type":21,"tag":51,"props":403,"children":405},{"className":404},[],[406],{"type":26,"value":328},{"type":26,"value":408},", then\n",{"type":21,"tag":51,"props":410,"children":412},{"className":411},[],[413],{"type":26,"value":313},{"type":26,"value":415}," must be a valid pointer to a valid\n",{"type":21,"tag":51,"props":417,"children":419},{"className":418},[],[420],{"type":26,"value":421},"VkDepthClampRangeEXT",{"type":26,"value":423}," structure",{"type":21,"tag":382,"props":425,"children":427},{"name":426},"Valid Usage (Implicit)",[428,457,482,522,546,575],{"type":21,"tag":387,"props":429,"children":431},{"name":430},"VUID-vkCmdSetDepthClampRangeEXT-commandBuffer-parameter",[432],{"type":21,"tag":22,"props":433,"children":434},{},[435,440,442,447,449,455],{"type":21,"tag":51,"props":436,"children":438},{"className":437},[],[439],{"type":26,"value":92},{"type":26,"value":441}," ",{"type":21,"tag":443,"props":444,"children":446},"normative",{"type":445},"must",[],{"type":26,"value":448}," be a valid ",{"type":21,"tag":29,"props":450,"children":452},{"href":451},"/man/VkCommandBuffer",[453],{"type":26,"value":454},"VkCommandBuffer",{"type":26,"value":456}," handle",{"type":21,"tag":387,"props":458,"children":460},{"name":459},"VUID-vkCmdSetDepthClampRangeEXT-depthClampMode-parameter",[461],{"type":21,"tag":22,"props":462,"children":463},{},[464,469,470,473,474,480],{"type":21,"tag":51,"props":465,"children":467},{"className":466},[],[468],{"type":26,"value":111},{"type":26,"value":441},{"type":21,"tag":443,"props":471,"children":472},{"type":445},[],{"type":26,"value":448},{"type":21,"tag":29,"props":475,"children":477},{"href":476},"/man/VkDepthClampModeEXT",[478],{"type":26,"value":479},"VkDepthClampModeEXT",{"type":26,"value":481}," value",{"type":21,"tag":387,"props":483,"children":485},{"name":484},"VUID-vkCmdSetDepthClampRangeEXT-pDepthClampRange-parameter",[486],{"type":21,"tag":22,"props":487,"children":488},{},[489,490,495,497,503,505,510,511,514,516,521],{"type":26,"value":395},{"type":21,"tag":51,"props":491,"children":493},{"className":492},[],[494],{"type":26,"value":313},{"type":26,"value":496}," is not ",{"type":21,"tag":51,"props":498,"children":500},{"className":499},[],[501],{"type":26,"value":502},"NULL",{"type":26,"value":504},", ",{"type":21,"tag":51,"props":506,"children":508},{"className":507},[],[509],{"type":26,"value":313},{"type":26,"value":441},{"type":21,"tag":443,"props":512,"children":513},{"type":445},[],{"type":26,"value":515}," be a valid pointer to a valid ",{"type":21,"tag":29,"props":517,"children":519},{"href":518},"/man/VkDepthClampRangeEXT",[520],{"type":26,"value":421},{"type":26,"value":423},{"type":21,"tag":387,"props":523,"children":525},{"name":524},"VUID-vkCmdSetDepthClampRangeEXT-commandBuffer-recording",[526],{"type":21,"tag":22,"props":527,"children":528},{},[529,534,535,538,540],{"type":21,"tag":51,"props":530,"children":532},{"className":531},[],[533],{"type":26,"value":92},{"type":26,"value":441},{"type":21,"tag":443,"props":536,"children":537},{"type":445},[],{"type":26,"value":539}," be in the ",{"type":21,"tag":29,"props":541,"children":543},{"href":542},"/chapters/commandbuffers#commandbuffers-lifecycle",[544],{"type":26,"value":545},"recording state",{"type":21,"tag":387,"props":547,"children":549},{"name":548},"VUID-vkCmdSetDepthClampRangeEXT-commandBuffer-cmdpool",[550],{"type":21,"tag":22,"props":551,"children":552},{},[553,555,561,563,568,570,573],{"type":26,"value":554},"The ",{"type":21,"tag":51,"props":556,"children":558},{"className":557},[],[559],{"type":26,"value":560},"VkCommandPool",{"type":26,"value":562}," that ",{"type":21,"tag":51,"props":564,"children":566},{"className":565},[],[567],{"type":26,"value":92},{"type":26,"value":569}," was allocated from ",{"type":21,"tag":443,"props":571,"children":572},{"type":445},[],{"type":26,"value":574}," support graphics operations",{"type":21,"tag":387,"props":576,"children":578},{"name":577},"VUID-vkCmdSetDepthClampRangeEXT-videocoding",[579],{"type":21,"tag":22,"props":580,"children":581},{},[582,584,587],{"type":26,"value":583},"This command ",{"type":21,"tag":443,"props":585,"children":586},{"type":445},[],{"type":26,"value":588}," only be called outside of a video coding scope",{"type":21,"tag":590,"props":591,"children":593},"validity-box",{"name":592},"Host Synchronization",[594],{"type":21,"tag":281,"props":595,"children":596},{},[597,613],{"type":21,"tag":285,"props":598,"children":599},{},[600,602,607,608,611],{"type":26,"value":601},"Host access to ",{"type":21,"tag":51,"props":603,"children":605},{"className":604},[],[606],{"type":26,"value":92},{"type":26,"value":441},{"type":21,"tag":443,"props":609,"children":610},{"type":445},[],{"type":26,"value":612}," be externally synchronized",{"type":21,"tag":285,"props":614,"children":615},{},[616,618,623,624,629,630,633],{"type":26,"value":617},"Host access to the ",{"type":21,"tag":51,"props":619,"children":621},{"className":620},[],[622],{"type":26,"value":560},{"type":26,"value":562},{"type":21,"tag":51,"props":625,"children":627},{"className":626},[],[628],{"type":26,"value":92},{"type":26,"value":569},{"type":21,"tag":443,"props":631,"children":632},{"type":445},[],{"type":26,"value":634}," be externally synchronized\n::",{"type":21,"tag":636,"props":637,"children":638},"style",{},[639],{"type":26,"value":640},"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":642},[],"markdown",1729612504753]