[{"data":1,"prerenderedAt":198},["ShallowReactive",2],{"3i56Hbaa3g":3},{"title":4,"description":5,"type":6,"xrefs":7,"body":8,"_type":197,"_id":4},"ViewIndex","View index of a shader invocation","builtins",[],{"type":9,"children":10,"toc":193},"root",[11,24,44,49],{"type":12,"tag":13,"props":14,"children":16},"element","h6",{"id":15},"viewindex",[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],{"type":23,"value":29},"The ",{"type":12,"tag":18,"props":31,"children":33},{"className":32},[],[34],{"type":23,"value":4},{"type":23,"value":36}," decoration ",{"type":12,"tag":38,"props":39,"children":41},"normative",{"type":40},"can",[],{"type":23,"value":43}," be applied to a shader input which will\nbe filled with the index of the view that is being processed by the current\nshader invocation.",{"type":12,"tag":25,"props":45,"children":46},{},[47],{"type":23,"value":48},"If multiview is enabled in the render pass, this value will be the index of\none of the bits set in the view mask of the subpass the pipeline is compiled\nagainst.\nIf multiview is not enabled in the render pass, this value will be zero.",{"type":12,"tag":50,"props":51,"children":53},"validity-group",{"name":52},"Valid Usage",[54,134,174],{"type":12,"tag":55,"props":56,"children":58},"validity-field",{"name":57},"VUID-ViewIndex-ViewIndex-04401",[59],{"type":12,"tag":25,"props":60,"children":61},{},[62,63,68,69,73,75,81,83,89,90,96,97,103,105,111,113,119,121,127,128],{"type":23,"value":29},{"type":12,"tag":18,"props":64,"children":66},{"className":65},[],[67],{"type":23,"value":4},{"type":23,"value":36},{"type":12,"tag":38,"props":70,"children":72},{"type":71},"must",[],{"type":23,"value":74}," be used only within the\n",{"type":12,"tag":18,"props":76,"children":78},{"className":77},[],[79],{"type":23,"value":80},"MeshEXT",{"type":23,"value":82},", ",{"type":12,"tag":18,"props":84,"children":86},{"className":85},[],[87],{"type":23,"value":88},"Vertex",{"type":23,"value":82},{"type":12,"tag":18,"props":91,"children":93},{"className":92},[],[94],{"type":23,"value":95},"Geometry",{"type":23,"value":82},{"type":12,"tag":18,"props":98,"children":100},{"className":99},[],[101],{"type":23,"value":102},"TessellationControl",{"type":23,"value":104},",\n",{"type":12,"tag":18,"props":106,"children":108},{"className":107},[],[109],{"type":23,"value":110},"TessellationEvaluation",{"type":23,"value":112}," or ",{"type":12,"tag":18,"props":114,"children":116},{"className":115},[],[117],{"type":23,"value":118},"Fragment",{"type":23,"value":120}," ",{"type":12,"tag":18,"props":122,"children":124},{"className":123},[],[125],{"type":23,"value":126},"Execution",{"type":23,"value":120},{"type":12,"tag":18,"props":129,"children":131},{"className":130},[],[132],{"type":23,"value":133},"Model",{"type":12,"tag":55,"props":135,"children":137},{"name":136},"VUID-ViewIndex-ViewIndex-04402",[138],{"type":12,"tag":25,"props":139,"children":140},{},[141,143,148,149,152,154,160,161,167,168],{"type":23,"value":142},"The variable decorated with ",{"type":12,"tag":18,"props":144,"children":146},{"className":145},[],[147],{"type":23,"value":4},{"type":23,"value":120},{"type":12,"tag":38,"props":150,"children":151},{"type":71},[],{"type":23,"value":153}," be declared using the\n",{"type":12,"tag":18,"props":155,"children":157},{"className":156},[],[158],{"type":23,"value":159},"Input",{"type":23,"value":120},{"type":12,"tag":18,"props":162,"children":164},{"className":163},[],[165],{"type":23,"value":166},"Storage",{"type":23,"value":120},{"type":12,"tag":18,"props":169,"children":171},{"className":170},[],[172],{"type":23,"value":173},"Class",{"type":12,"tag":55,"props":175,"children":177},{"name":176},"VUID-ViewIndex-ViewIndex-04403",[178],{"type":12,"tag":25,"props":179,"children":180},{},[181,182,187,188,191],{"type":23,"value":142},{"type":12,"tag":18,"props":183,"children":185},{"className":184},[],[186],{"type":23,"value":4},{"type":23,"value":120},{"type":12,"tag":38,"props":189,"children":190},{"type":71},[],{"type":23,"value":192}," be declared as a scalar\n32-bit integer value",{"title":194,"searchDepth":195,"depth":195,"links":196},"",2,[],"markdown",1729612430655]