[{"data":1,"prerenderedAt":206},["ShallowReactive",2],{"BVPevaMxLy":3},{"title":4,"description":5,"type":6,"xrefs":7,"body":8,"_type":205,"_id":4},"InstanceIndex","Index of an instance","builtins",[],{"type":9,"children":10,"toc":201},"root",[11,24,92],{"type":12,"tag":13,"props":14,"children":16},"element","h6",{"id":15},"instanceindex",[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,42,44,50,52,59,61,67,69,74,76,82,84,90],{"type":23,"value":29},"Decorating a variable in a vertex shader with the ",{"type":12,"tag":18,"props":31,"children":33},{"className":32},[],[34],{"type":23,"value":4},{"type":23,"value":36},"\nbuilt-in decoration will make that variable contain the index of the\ninstance that is being processed by the current vertex shader invocation.\n",{"type":12,"tag":18,"props":38,"children":40},{"className":39},[],[41],{"type":23,"value":4},{"type":23,"value":43}," begins at the ",{"type":12,"tag":18,"props":45,"children":47},{"className":46},[],[48],{"type":23,"value":49},"firstInstance",{"type":23,"value":51}," parameter to\n",{"type":12,"tag":53,"props":54,"children":56},"a",{"href":55},"/man/vkCmdDraw",[57],{"type":23,"value":58},"vkCmdDraw",{"type":23,"value":60}," or ",{"type":12,"tag":53,"props":62,"children":64},{"href":63},"/man/vkCmdDrawIndexed",[65],{"type":23,"value":66},"vkCmdDrawIndexed",{"type":23,"value":68}," or at the ",{"type":12,"tag":18,"props":70,"children":72},{"className":71},[],[73],{"type":23,"value":49},{"type":23,"value":75},"\nmember of a structure consumed by ",{"type":12,"tag":53,"props":77,"children":79},{"href":78},"/man/vkCmdDrawIndirect",[80],{"type":23,"value":81},"vkCmdDrawIndirect",{"type":23,"value":83}," or\n",{"type":12,"tag":53,"props":85,"children":87},{"href":86},"/man/vkCmdDrawIndexedIndirect",[88],{"type":23,"value":89},"vkCmdDrawIndexedIndirect",{"type":23,"value":91},".",{"type":12,"tag":93,"props":94,"children":96},"validity-group",{"name":95},"Valid Usage",[97,142,182],{"type":12,"tag":98,"props":99,"children":101},"validity-field",{"name":100},"VUID-InstanceIndex-InstanceIndex-04263",[102],{"type":12,"tag":25,"props":103,"children":104},{},[105,107,112,114,119,121,127,129,135,136],{"type":23,"value":106},"The ",{"type":12,"tag":18,"props":108,"children":110},{"className":109},[],[111],{"type":23,"value":4},{"type":23,"value":113}," decoration ",{"type":12,"tag":115,"props":116,"children":118},"normative",{"type":117},"must",[],{"type":23,"value":120}," be used only within the\n",{"type":12,"tag":18,"props":122,"children":124},{"className":123},[],[125],{"type":23,"value":126},"Vertex",{"type":23,"value":128}," ",{"type":12,"tag":18,"props":130,"children":132},{"className":131},[],[133],{"type":23,"value":134},"Execution",{"type":23,"value":128},{"type":12,"tag":18,"props":137,"children":139},{"className":138},[],[140],{"type":23,"value":141},"Model",{"type":12,"tag":98,"props":143,"children":145},{"name":144},"VUID-InstanceIndex-InstanceIndex-04264",[146],{"type":12,"tag":25,"props":147,"children":148},{},[149,151,156,157,160,162,168,169,175,176],{"type":23,"value":150},"The variable decorated with ",{"type":12,"tag":18,"props":152,"children":154},{"className":153},[],[155],{"type":23,"value":4},{"type":23,"value":128},{"type":12,"tag":115,"props":158,"children":159},{"type":117},[],{"type":23,"value":161}," be declared using\nthe ",{"type":12,"tag":18,"props":163,"children":165},{"className":164},[],[166],{"type":23,"value":167},"Input",{"type":23,"value":128},{"type":12,"tag":18,"props":170,"children":172},{"className":171},[],[173],{"type":23,"value":174},"Storage",{"type":23,"value":128},{"type":12,"tag":18,"props":177,"children":179},{"className":178},[],[180],{"type":23,"value":181},"Class",{"type":12,"tag":98,"props":183,"children":185},{"name":184},"VUID-InstanceIndex-InstanceIndex-04265",[186],{"type":12,"tag":25,"props":187,"children":188},{},[189,190,195,196,199],{"type":23,"value":150},{"type":12,"tag":18,"props":191,"children":193},{"className":192},[],[194],{"type":23,"value":4},{"type":23,"value":128},{"type":12,"tag":115,"props":197,"children":198},{"type":117},[],{"type":23,"value":200}," be declared as a\nscalar 32-bit integer value",{"title":202,"searchDepth":203,"depth":203,"links":204},"",2,[],"markdown",1725732531926]