[{"data":1,"prerenderedAt":287},["ShallowReactive",2],{"LBgVabZrjm":3},{"title":4,"description":5,"type":6,"xrefs":7,"body":8,"_type":286,"_id":4},"LocalInvocationIndex","Linear local invocation index","builtins",[],{"type":9,"children":10,"toc":284},"root",[11,24,45,137,278],{"type":12,"tag":13,"props":14,"children":16},"element","h6",{"id":15},"localinvocationindex",[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,43],{"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\nwill make that variable contain a one-dimensional representation of\n",{"type":12,"tag":18,"props":38,"children":40},{"className":39},[],[41],{"type":23,"value":42},"LocalInvocationId",{"type":23,"value":44},".\nThis is computed as:",{"type":12,"tag":46,"props":47,"children":52},"pre",{"className":48,"code":49,"language":50,"meta":51,"style":51},"language-c++ shiki shiki-themes github-light-default github-dark-default","LocalInvocationIndex =\n LocalInvocationId.z * WorkgroupSize.x * WorkgroupSize.y +\n LocalInvocationId.y * WorkgroupSize.x +\n LocalInvocationId.x;\n","c++","",[53],{"type":12,"tag":18,"props":54,"children":55},{"__ignoreMap":51},[56,74,107,128],{"type":12,"tag":57,"props":58,"children":61},"span",{"class":59,"line":60},"line",1,[62,68],{"type":12,"tag":57,"props":63,"children":65},{"style":64},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[66],{"type":23,"value":67},"LocalInvocationIndex ",{"type":12,"tag":57,"props":69,"children":71},{"style":70},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[72],{"type":23,"value":73},"=\n",{"type":12,"tag":57,"props":75,"children":77},{"class":59,"line":76},2,[78,83,88,93,97,102],{"type":12,"tag":57,"props":79,"children":80},{"style":64},[81],{"type":23,"value":82}," LocalInvocationId.z ",{"type":12,"tag":57,"props":84,"children":85},{"style":70},[86],{"type":23,"value":87},"*",{"type":12,"tag":57,"props":89,"children":90},{"style":64},[91],{"type":23,"value":92}," WorkgroupSize.x ",{"type":12,"tag":57,"props":94,"children":95},{"style":70},[96],{"type":23,"value":87},{"type":12,"tag":57,"props":98,"children":99},{"style":64},[100],{"type":23,"value":101}," WorkgroupSize.y ",{"type":12,"tag":57,"props":103,"children":104},{"style":70},[105],{"type":23,"value":106},"+\n",{"type":12,"tag":57,"props":108,"children":110},{"class":59,"line":109},3,[111,116,120,124],{"type":12,"tag":57,"props":112,"children":113},{"style":64},[114],{"type":23,"value":115}," LocalInvocationId.y ",{"type":12,"tag":57,"props":117,"children":118},{"style":70},[119],{"type":23,"value":87},{"type":12,"tag":57,"props":121,"children":122},{"style":64},[123],{"type":23,"value":92},{"type":12,"tag":57,"props":125,"children":126},{"style":70},[127],{"type":23,"value":106},{"type":12,"tag":57,"props":129,"children":131},{"class":59,"line":130},4,[132],{"type":12,"tag":57,"props":133,"children":134},{"style":64},[135],{"type":23,"value":136}," LocalInvocationId.x;\n",{"type":12,"tag":138,"props":139,"children":141},"validity-group",{"name":140},"Valid Usage",[142,219,259],{"type":12,"tag":143,"props":144,"children":146},"validity-field",{"name":145},"VUID-LocalInvocationIndex-LocalInvocationIndex-04284",[147,202],{"type":12,"tag":25,"props":148,"children":149},{},[150,152,157,159,164,166,172,174,180,181,187,188,194,196],{"type":23,"value":151},"The ",{"type":12,"tag":18,"props":153,"children":155},{"className":154},[],[156],{"type":23,"value":4},{"type":23,"value":158}," decoration ",{"type":12,"tag":160,"props":161,"children":163},"normative",{"type":162},"must",[],{"type":23,"value":165}," be used only within the\n",{"type":12,"tag":18,"props":167,"children":169},{"className":168},[],[170],{"type":23,"value":171},"GLCompute",{"type":23,"value":173},", ",{"type":12,"tag":18,"props":175,"children":177},{"className":176},[],[178],{"type":23,"value":179},"MeshEXT",{"type":23,"value":173},{"type":12,"tag":18,"props":182,"children":184},{"className":183},[],[185],{"type":23,"value":186},"TaskEXT",{"type":23,"value":173},{"type":12,"tag":18,"props":189,"children":191},{"className":190},[],[192],{"type":23,"value":193},"MeshNV",{"type":23,"value":195},", or ",{"type":12,"tag":18,"props":197,"children":199},{"className":198},[],[200],{"type":23,"value":201},"TaskNV",{"type":12,"tag":25,"props":203,"children":204},{},[205,211,213],{"type":12,"tag":18,"props":206,"children":208},{"className":207},[],[209],{"type":23,"value":210},"Execution",{"type":23,"value":212}," ",{"type":12,"tag":18,"props":214,"children":216},{"className":215},[],[217],{"type":23,"value":218},"Model",{"type":12,"tag":143,"props":220,"children":222},{"name":221},"VUID-LocalInvocationIndex-LocalInvocationIndex-04285",[223],{"type":12,"tag":25,"props":224,"children":225},{},[226,228,233,234,237,239,245,246,252,253],{"type":23,"value":227},"The variable decorated with ",{"type":12,"tag":18,"props":229,"children":231},{"className":230},[],[232],{"type":23,"value":4},{"type":23,"value":212},{"type":12,"tag":160,"props":235,"children":236},{"type":162},[],{"type":23,"value":238}," be declared\nusing the ",{"type":12,"tag":18,"props":240,"children":242},{"className":241},[],[243],{"type":23,"value":244},"Input",{"type":23,"value":212},{"type":12,"tag":18,"props":247,"children":249},{"className":248},[],[250],{"type":23,"value":251},"Storage",{"type":23,"value":212},{"type":12,"tag":18,"props":254,"children":256},{"className":255},[],[257],{"type":23,"value":258},"Class",{"type":12,"tag":143,"props":260,"children":262},{"name":261},"VUID-LocalInvocationIndex-LocalInvocationIndex-04286",[263],{"type":12,"tag":25,"props":264,"children":265},{},[266,267,272,273,276],{"type":23,"value":227},{"type":12,"tag":18,"props":268,"children":270},{"className":269},[],[271],{"type":23,"value":4},{"type":23,"value":212},{"type":12,"tag":160,"props":274,"children":275},{"type":162},[],{"type":23,"value":277}," be declared\nas a scalar 32-bit integer value",{"type":12,"tag":279,"props":280,"children":281},"style",{},[282],{"type":23,"value":283},"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":51,"searchDepth":76,"depth":76,"links":285},[],"markdown",1725732532201]