[{"data":1,"prerenderedAt":167},["ShallowReactive",2],{"WyQQ9qwtCY":3},{"title":4,"description":5,"type":6,"xrefs":7,"body":8,"_type":166,"_id":4},"NumWorkgroups","Number of workgroups in a dispatch","builtins",[],{"type":9,"children":10,"toc":162},"root",[11,24,37],{"type":12,"tag":13,"props":14,"children":16},"element","h6",{"id":15},"numworkgroups",[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],{"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 local workgroups that are part of\nthe dispatch that the invocation belongs to.\nEach component is equal to the values of the workgroup count parameters\npassed into the dispatching commands.",{"type":12,"tag":38,"props":39,"children":41},"validity-group",{"name":40},"Valid Usage",[42,103,143],{"type":12,"tag":43,"props":44,"children":46},"validity-field",{"name":45},"VUID-NumWorkgroups-NumWorkgroups-04296",[47],{"type":12,"tag":25,"props":48,"children":49},{},[50,52,57,59,64,66,72,74,80,82,88,90,96,97],{"type":23,"value":51},"The ",{"type":12,"tag":18,"props":53,"children":55},{"className":54},[],[56],{"type":23,"value":4},{"type":23,"value":58}," decoration ",{"type":12,"tag":60,"props":61,"children":63},"normative",{"type":62},"must",[],{"type":23,"value":65}," be used only within the\n",{"type":12,"tag":18,"props":67,"children":69},{"className":68},[],[70],{"type":23,"value":71},"GLCompute",{"type":23,"value":73},", ",{"type":12,"tag":18,"props":75,"children":77},{"className":76},[],[78],{"type":23,"value":79},"MeshEXT",{"type":23,"value":81},", or ",{"type":12,"tag":18,"props":83,"children":85},{"className":84},[],[86],{"type":23,"value":87},"TaskEXT",{"type":23,"value":89}," ",{"type":12,"tag":18,"props":91,"children":93},{"className":92},[],[94],{"type":23,"value":95},"Execution",{"type":23,"value":89},{"type":12,"tag":18,"props":98,"children":100},{"className":99},[],[101],{"type":23,"value":102},"Model",{"type":12,"tag":43,"props":104,"children":106},{"name":105},"VUID-NumWorkgroups-NumWorkgroups-04297",[107],{"type":12,"tag":25,"props":108,"children":109},{},[110,112,117,118,121,123,129,130,136,137],{"type":23,"value":111},"The variable decorated with ",{"type":12,"tag":18,"props":113,"children":115},{"className":114},[],[116],{"type":23,"value":4},{"type":23,"value":89},{"type":12,"tag":60,"props":119,"children":120},{"type":62},[],{"type":23,"value":122}," be declared using\nthe ",{"type":12,"tag":18,"props":124,"children":126},{"className":125},[],[127],{"type":23,"value":128},"Input",{"type":23,"value":89},{"type":12,"tag":18,"props":131,"children":133},{"className":132},[],[134],{"type":23,"value":135},"Storage",{"type":23,"value":89},{"type":12,"tag":18,"props":138,"children":140},{"className":139},[],[141],{"type":23,"value":142},"Class",{"type":12,"tag":43,"props":144,"children":146},{"name":145},"VUID-NumWorkgroups-NumWorkgroups-04298",[147],{"type":12,"tag":25,"props":148,"children":149},{},[150,151,156,157,160],{"type":23,"value":111},{"type":12,"tag":18,"props":152,"children":154},{"className":153},[],[155],{"type":23,"value":4},{"type":23,"value":89},{"type":12,"tag":60,"props":158,"children":159},{"type":62},[],{"type":23,"value":161}," be declared as a\nthree-component vector of 32-bit integer values",{"title":163,"searchDepth":164,"depth":164,"links":165},"",2,[],"markdown",1725732532516]