[{"data":1,"prerenderedAt":543},["ShallowReactive",2],{"u2btnFNmt6":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":542,"_id":4},"vkCmdSetDepthCompareOp","Set depth comparison operator dynamically for a command buffer","VK_VERSION_1_3","protos",[],{"type":10,"children":11,"toc":540},"root",[12,29,210,259,309,394,417,441,470,484,488,534],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27],{"type":18,"value":19},"text","To ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/chapters/pipelines#pipelines-dynamic-state",[25],{"type":18,"value":26},"dynamically set",{"type":18,"value":28}," the depth compare operator,\ncall:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,109],{"type":13,"tag":34,"props":35,"children":41},"pre",{"className":36,"code":37,"filename":38,"language":39,"meta":40,"style":40},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdSetDepthCompareOpEXT(\n VkCommandBuffer commandBuffer,\n VkCompareOp depthCompareOp);\n","C","c","",[42],{"type":13,"tag":43,"props":44,"children":45},"code",{"__ignoreMap":40},[46,70,90],{"type":13,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,64],{"type":13,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[56],{"type":18,"value":57},"void",{"type":13,"tag":47,"props":59,"children":61},{"style":60},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[62],{"type":18,"value":63}," vkCmdSetDepthCompareOpEXT",{"type":13,"tag":47,"props":65,"children":67},{"style":66},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[68],{"type":18,"value":69},"(\n",{"type":13,"tag":47,"props":71,"children":73},{"class":49,"line":72},2,[74,79,85],{"type":13,"tag":47,"props":75,"children":76},{"style":66},[77],{"type":18,"value":78}," VkCommandBuffer ",{"type":13,"tag":47,"props":80,"children":82},{"style":81},"--shiki-default:#953800;--shiki-dark:#FFA657",[83],{"type":18,"value":84},"commandBuffer",{"type":13,"tag":47,"props":86,"children":87},{"style":66},[88],{"type":18,"value":89},",\n",{"type":13,"tag":47,"props":91,"children":93},{"class":49,"line":92},3,[94,99,104],{"type":13,"tag":47,"props":95,"children":96},{"style":66},[97],{"type":18,"value":98}," VkCompareOp ",{"type":13,"tag":47,"props":100,"children":101},{"style":81},[102],{"type":18,"value":103},"depthCompareOp",{"type":13,"tag":47,"props":105,"children":106},{"style":66},[107],{"type":18,"value":108},");\n",{"type":13,"tag":34,"props":110,"children":115},{"className":111,"code":112,"filename":113,"language":114,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_set_depth_compare_op_ext(\n command_buffer: vk::CommandBuffer,\n depth_compare_op: vk::CompareOp,\n);\n","Rust","rs",[116],{"type":13,"tag":43,"props":117,"children":118},{"__ignoreMap":40},[119,141,173,202],{"type":13,"tag":47,"props":120,"children":121},{"class":49,"line":50},[122,127,132,137],{"type":13,"tag":47,"props":123,"children":124},{"style":54},[125],{"type":18,"value":126},"pub",{"type":13,"tag":47,"props":128,"children":129},{"style":54},[130],{"type":18,"value":131}," fn",{"type":13,"tag":47,"props":133,"children":134},{"style":60},[135],{"type":18,"value":136}," cmd_set_depth_compare_op_ext",{"type":13,"tag":47,"props":138,"children":139},{"style":66},[140],{"type":18,"value":69},{"type":13,"tag":47,"props":142,"children":143},{"class":49,"line":72},[144,149,154,159,164,169],{"type":13,"tag":47,"props":145,"children":146},{"style":66},[147],{"type":18,"value":148}," command_buffer",{"type":13,"tag":47,"props":150,"children":151},{"style":54},[152],{"type":18,"value":153},":",{"type":13,"tag":47,"props":155,"children":156},{"style":81},[157],{"type":18,"value":158}," vk",{"type":13,"tag":47,"props":160,"children":161},{"style":54},[162],{"type":18,"value":163},"::",{"type":13,"tag":47,"props":165,"children":166},{"style":81},[167],{"type":18,"value":168},"CommandBuffer",{"type":13,"tag":47,"props":170,"children":171},{"style":66},[172],{"type":18,"value":89},{"type":13,"tag":47,"props":174,"children":175},{"class":49,"line":92},[176,181,185,189,193,198],{"type":13,"tag":47,"props":177,"children":178},{"style":66},[179],{"type":18,"value":180}," depth_compare_op",{"type":13,"tag":47,"props":182,"children":183},{"style":54},[184],{"type":18,"value":153},{"type":13,"tag":47,"props":186,"children":187},{"style":81},[188],{"type":18,"value":158},{"type":13,"tag":47,"props":190,"children":191},{"style":54},[192],{"type":18,"value":163},{"type":13,"tag":47,"props":194,"children":195},{"style":81},[196],{"type":18,"value":197},"CompareOp",{"type":13,"tag":47,"props":199,"children":200},{"style":66},[201],{"type":18,"value":89},{"type":13,"tag":47,"props":203,"children":205},{"class":49,"line":204},4,[206],{"type":13,"tag":47,"props":207,"children":208},{"style":66},[209],{"type":18,"value":108},{"type":13,"tag":211,"props":212,"children":213},"ul",{},[214,225],{"type":13,"tag":215,"props":216,"children":217},"li",{},[218,223],{"type":13,"tag":43,"props":219,"children":221},{"className":220},[],[222],{"type":18,"value":84},{"type":18,"value":224}," is the command buffer into which the command will be\nrecorded.",{"type":13,"tag":215,"props":226,"children":227},{},[228,233,235,241,243,249,251,257],{"type":13,"tag":43,"props":229,"children":231},{"className":230},[],[232],{"type":18,"value":103},{"type":18,"value":234}," is a ",{"type":13,"tag":21,"props":236,"children":238},{"href":237},"/man/VkCompareOp",[239],{"type":18,"value":240},"VkCompareOp",{"type":18,"value":242}," value specifying the\ncomparison operator used for the ",{"type":13,"tag":21,"props":244,"children":246},{"href":245},"/chapters/fragops#fragops-depth-comparison",[247],{"type":18,"value":248},"Depth\nComparison",{"type":18,"value":250}," step of the ",{"type":13,"tag":21,"props":252,"children":254},{"href":253},"/chapters/fragops#fragops-depth",[255],{"type":18,"value":256},"depth test",{"type":18,"value":258},".",{"type":13,"tag":14,"props":260,"children":261},{},[262,264,270,272,278,280,286,287,293,295,301,302,307],{"type":18,"value":263},"This command sets the depth comparison operator for subsequent drawing\ncommands\nwhen drawing using ",{"type":13,"tag":21,"props":265,"children":267},{"href":266},"/chapters/shaders#shaders-objects",[268],{"type":18,"value":269},"shader objects",{"type":18,"value":271},", or\nwhen the graphics pipeline is created with\n",{"type":13,"tag":43,"props":273,"children":275},{"className":274},[],[276],{"type":18,"value":277},"VK_DYNAMIC_STATE_DEPTH_COMPARE_OP",{"type":18,"value":279}," set in\n",{"type":13,"tag":21,"props":281,"children":283},{"href":282},"/man/VkPipelineDynamicStateCreateInfo",[284],{"type":18,"value":285},"VkPipelineDynamicStateCreateInfo",{"type":18,"value":163},{"type":13,"tag":43,"props":288,"children":290},{"className":289},[],[291],{"type":18,"value":292},"pDynamicStates",{"type":18,"value":294},".\nOtherwise, this state is specified by the\n",{"type":13,"tag":21,"props":296,"children":298},{"href":297},"/man/VkPipelineDepthStencilStateCreateInfo",[299],{"type":18,"value":300},"VkPipelineDepthStencilStateCreateInfo",{"type":18,"value":163},{"type":13,"tag":43,"props":303,"children":305},{"className":304},[],[306],{"type":18,"value":103},{"type":18,"value":308}," value used\nto create the currently active pipeline.",{"type":13,"tag":310,"props":311,"children":313},"validity-group",{"name":312},"Valid Usage",[314,363],{"type":13,"tag":315,"props":316,"children":318},"validity-field",{"name":317},"VUID-vkCmdSetDepthCompareOp-None-08971",[319,343],{"type":13,"tag":14,"props":320,"children":321},{},[322,324,329,331,341],{"type":18,"value":323},"At least one of the following ",{"type":13,"tag":325,"props":326,"children":328},"normative",{"type":327},"must",[],{"type":18,"value":330}," be true:- the ",{"type":13,"tag":21,"props":332,"children":334},{"href":333},"/man/VkPhysicalDeviceExtendedDynamicStateFeaturesEXT#features-extendedDynamicState",[335],{"type":13,"tag":43,"props":336,"children":338},{"className":337},[],[339],{"type":18,"value":340},"extendedDynamicState",{"type":18,"value":342},"\nfeature is enabled",{"type":13,"tag":211,"props":344,"children":345},{},[346],{"type":13,"tag":215,"props":347,"children":348},{},[349,351,361],{"type":18,"value":350},"the ",{"type":13,"tag":21,"props":352,"children":354},{"href":353},"/man/VkPhysicalDeviceShaderObjectFeaturesEXT#features-shaderObject",[355],{"type":13,"tag":43,"props":356,"children":358},{"className":357},[],[359],{"type":18,"value":360},"shaderObject",{"type":18,"value":362}," feature is enabled\n::",{"type":13,"tag":310,"props":364,"children":366},{"name":365},"Valid Usage (Implicit)",[367],{"type":13,"tag":315,"props":368,"children":370},{"name":369},"VUID-vkCmdSetDepthCompareOp-commandBuffer-parameter",[371],{"type":13,"tag":14,"props":372,"children":373},{},[374,379,381,384,386,392],{"type":13,"tag":43,"props":375,"children":377},{"className":376},[],[378],{"type":18,"value":84},{"type":18,"value":380}," ",{"type":13,"tag":325,"props":382,"children":383},{"type":327},[],{"type":18,"value":385}," be a valid ",{"type":13,"tag":21,"props":387,"children":389},{"href":388},"/man/VkCommandBuffer",[390],{"type":18,"value":391},"VkCommandBuffer",{"type":18,"value":393}," handle",{"type":13,"tag":315,"props":395,"children":397},{"name":396},"VUID-vkCmdSetDepthCompareOp-depthCompareOp-parameter",[398],{"type":13,"tag":14,"props":399,"children":400},{},[401,406,407,410,411,415],{"type":13,"tag":43,"props":402,"children":404},{"className":403},[],[405],{"type":18,"value":103},{"type":18,"value":380},{"type":13,"tag":325,"props":408,"children":409},{"type":327},[],{"type":18,"value":385},{"type":13,"tag":21,"props":412,"children":413},{"href":237},[414],{"type":18,"value":240},{"type":18,"value":416}," value",{"type":13,"tag":315,"props":418,"children":420},{"name":419},"VUID-vkCmdSetDepthCompareOp-commandBuffer-recording",[421],{"type":13,"tag":14,"props":422,"children":423},{},[424,429,430,433,435],{"type":13,"tag":43,"props":425,"children":427},{"className":426},[],[428],{"type":18,"value":84},{"type":18,"value":380},{"type":13,"tag":325,"props":431,"children":432},{"type":327},[],{"type":18,"value":434}," be in the ",{"type":13,"tag":21,"props":436,"children":438},{"href":437},"/chapters/commandbuffers#commandbuffers-lifecycle",[439],{"type":18,"value":440},"recording state",{"type":13,"tag":315,"props":442,"children":444},{"name":443},"VUID-vkCmdSetDepthCompareOp-commandBuffer-cmdpool",[445],{"type":13,"tag":14,"props":446,"children":447},{},[448,450,456,458,463,465,468],{"type":18,"value":449},"The ",{"type":13,"tag":43,"props":451,"children":453},{"className":452},[],[454],{"type":18,"value":455},"VkCommandPool",{"type":18,"value":457}," that ",{"type":13,"tag":43,"props":459,"children":461},{"className":460},[],[462],{"type":18,"value":84},{"type":18,"value":464}," was allocated from ",{"type":13,"tag":325,"props":466,"children":467},{"type":327},[],{"type":18,"value":469}," support graphics operations",{"type":13,"tag":315,"props":471,"children":473},{"name":472},"VUID-vkCmdSetDepthCompareOp-videocoding",[474],{"type":13,"tag":14,"props":475,"children":476},{},[477,479,482],{"type":18,"value":478},"This command ",{"type":13,"tag":325,"props":480,"children":481},{"type":327},[],{"type":18,"value":483}," only be called outside of a video coding scope",{"type":13,"tag":14,"props":485,"children":486},{},[487],{"type":18,"value":163},{"type":13,"tag":489,"props":490,"children":492},"validity-box",{"name":491},"Host Synchronization",[493],{"type":13,"tag":211,"props":494,"children":495},{},[496,512],{"type":13,"tag":215,"props":497,"children":498},{},[499,501,506,507,510],{"type":18,"value":500},"Host access to ",{"type":13,"tag":43,"props":502,"children":504},{"className":503},[],[505],{"type":18,"value":84},{"type":18,"value":380},{"type":13,"tag":325,"props":508,"children":509},{"type":327},[],{"type":18,"value":511}," be externally synchronized",{"type":13,"tag":215,"props":513,"children":514},{},[515,517,522,523,528,529,532],{"type":18,"value":516},"Host access to the ",{"type":13,"tag":43,"props":518,"children":520},{"className":519},[],[521],{"type":18,"value":455},{"type":18,"value":457},{"type":13,"tag":43,"props":524,"children":526},{"className":525},[],[527],{"type":18,"value":84},{"type":18,"value":464},{"type":13,"tag":325,"props":530,"children":531},{"type":327},[],{"type":18,"value":533}," be externally synchronized\n::",{"type":13,"tag":535,"props":536,"children":537},"style",{},[538],{"type":18,"value":539},"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":40,"searchDepth":72,"depth":72,"links":541},[],"markdown",1729612504848]