[{"data":1,"prerenderedAt":182},["ShallowReactive",2],{"iDotigO1aC":3},{"title":4,"description":5,"type":6,"xrefs":7,"body":8,"_type":181,"_id":4},"PatchVertices","Number of vertices in an input patch","builtins",[],{"type":9,"children":10,"toc":177},"root",[11,24,60],{"type":12,"tag":13,"props":14,"children":16},"element","h6",{"id":15},"patchvertices",[17],{"type":12,"tag":18,"props":19,"children":21},"code",{"className":20},[],[22],{"type":23,"value":4},"text",{"type":12,"tag":25,"props":26,"children":27},"p",{},[28,30,35,37,44,46,51,53,58],{"type":23,"value":29},"Decorating a variable with the ",{"type":12,"tag":18,"props":31,"children":33},{"className":32},[],[34],{"type":23,"value":4},{"type":23,"value":36}," built-in decoration will\nmake that variable contain the number of vertices in the input patch being\nprocessed by the shader.\nIn a Tessellation Control Shader, this is the same as the\nname:patchControlPoints member of\n",{"type":12,"tag":38,"props":39,"children":41},"a",{"href":40},"/man/VkPipelineTessellationStateCreateInfo",[42],{"type":23,"value":43},"VkPipelineTessellationStateCreateInfo",{"type":23,"value":45},".\nIn a Tessellation Evaluation Shader, ",{"type":12,"tag":18,"props":47,"children":49},{"className":48},[],[50],{"type":23,"value":4},{"type":23,"value":52}," is equal to the\ntessellation control output patch size.\nWhen the same shader is used in different pipelines where the patch sizes\nare configured differently, the value of the ",{"type":12,"tag":18,"props":54,"children":56},{"className":55},[],[57],{"type":23,"value":4},{"type":23,"value":59}," variable\nwill also differ.",{"type":12,"tag":61,"props":62,"children":64},"validity-group",{"name":63},"Valid Usage",[65,118,158],{"type":12,"tag":66,"props":67,"children":69},"validity-field",{"name":68},"VUID-PatchVertices-PatchVertices-04308",[70],{"type":12,"tag":25,"props":71,"children":72},{},[73,75,80,82,87,89,95,97,103,105,111,112],{"type":23,"value":74},"The ",{"type":12,"tag":18,"props":76,"children":78},{"className":77},[],[79],{"type":23,"value":4},{"type":23,"value":81}," decoration ",{"type":12,"tag":83,"props":84,"children":86},"normative",{"type":85},"must",[],{"type":23,"value":88}," be used only within the\n",{"type":12,"tag":18,"props":90,"children":92},{"className":91},[],[93],{"type":23,"value":94},"TessellationControl",{"type":23,"value":96}," or ",{"type":12,"tag":18,"props":98,"children":100},{"className":99},[],[101],{"type":23,"value":102},"TessellationEvaluation",{"type":23,"value":104}," ",{"type":12,"tag":18,"props":106,"children":108},{"className":107},[],[109],{"type":23,"value":110},"Execution",{"type":23,"value":104},{"type":12,"tag":18,"props":113,"children":115},{"className":114},[],[116],{"type":23,"value":117},"Model",{"type":12,"tag":66,"props":119,"children":121},{"name":120},"VUID-PatchVertices-PatchVertices-04309",[122],{"type":12,"tag":25,"props":123,"children":124},{},[125,127,132,133,136,138,144,145,151,152],{"type":23,"value":126},"The variable decorated with ",{"type":12,"tag":18,"props":128,"children":130},{"className":129},[],[131],{"type":23,"value":4},{"type":23,"value":104},{"type":12,"tag":83,"props":134,"children":135},{"type":85},[],{"type":23,"value":137}," be declared using\nthe ",{"type":12,"tag":18,"props":139,"children":141},{"className":140},[],[142],{"type":23,"value":143},"Input",{"type":23,"value":104},{"type":12,"tag":18,"props":146,"children":148},{"className":147},[],[149],{"type":23,"value":150},"Storage",{"type":23,"value":104},{"type":12,"tag":18,"props":153,"children":155},{"className":154},[],[156],{"type":23,"value":157},"Class",{"type":12,"tag":66,"props":159,"children":161},{"name":160},"VUID-PatchVertices-PatchVertices-04310",[162],{"type":12,"tag":25,"props":163,"children":164},{},[165,166,171,172,175],{"type":23,"value":126},{"type":12,"tag":18,"props":167,"children":169},{"className":168},[],[170],{"type":23,"value":4},{"type":23,"value":104},{"type":12,"tag":83,"props":173,"children":174},{"type":85},[],{"type":23,"value":176}," be declared as a\nscalar 32-bit integer value",{"title":178,"searchDepth":179,"depth":179,"links":180},"",2,[],"markdown",1729612426252]