[{"data":1,"prerenderedAt":188},["ShallowReactive",2],{"ojNY6H8xuW":3},{"title":4,"description":5,"type":6,"xrefs":7,"body":8,"_type":187,"_id":4},"PointCoord","Fragment coordinates in screen-space within a point primitive","builtins",[],{"type":9,"children":10,"toc":183},"root",[11,24,53,76],{"type":12,"tag":13,"props":14,"children":16},"element","h6",{"id":15},"pointcoord",[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],{"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 make\nthat variable contain the coordinate of the current fragment within the\npoint being rasterized, normalized to the size of the point with origin in\nthe upper left corner of the point, as described in\n",{"type":12,"tag":38,"props":39,"children":41},"a",{"href":40},"/chapters/primsrast#primsrast-points-basic",[42],{"type":23,"value":43},"Basic Point Rasterization",{"type":23,"value":45},".\nIf the primitive the fragment shader invocation belongs to is not a point,\nthen the variable decorated with ",{"type":12,"tag":18,"props":47,"children":49},{"className":48},[],[50],{"type":23,"value":4},{"type":23,"value":52}," contains an undefined:\nvalue.",{"type":12,"tag":54,"props":55,"children":56},"note",{},[57],{"type":12,"tag":25,"props":58,"children":59},{},[60,62,67,69,74],{"type":23,"value":61},"Depending on how the point is rasterized, ",{"type":12,"tag":18,"props":63,"children":65},{"className":64},[],[66],{"type":23,"value":4},{"type":23,"value":68}," ",{"type":12,"tag":70,"props":71,"children":73},"normative",{"type":72},"may",[],{"type":23,"value":75}," never reach\n(0,0) or (1,1).",{"type":12,"tag":77,"props":78,"children":80},"validity-group",{"name":79},"Valid Usage",[81,124,164],{"type":12,"tag":82,"props":83,"children":85},"validity-field",{"name":84},"VUID-PointCoord-PointCoord-04311",[86],{"type":12,"tag":25,"props":87,"children":88},{},[89,91,96,98,102,104,110,111,117,118],{"type":23,"value":90},"The ",{"type":12,"tag":18,"props":92,"children":94},{"className":93},[],[95],{"type":23,"value":4},{"type":23,"value":97}," decoration ",{"type":12,"tag":70,"props":99,"children":101},{"type":100},"must",[],{"type":23,"value":103}," be used only within the\n",{"type":12,"tag":18,"props":105,"children":107},{"className":106},[],[108],{"type":23,"value":109},"Fragment",{"type":23,"value":68},{"type":12,"tag":18,"props":112,"children":114},{"className":113},[],[115],{"type":23,"value":116},"Execution",{"type":23,"value":68},{"type":12,"tag":18,"props":119,"children":121},{"className":120},[],[122],{"type":23,"value":123},"Model",{"type":12,"tag":82,"props":125,"children":127},{"name":126},"VUID-PointCoord-PointCoord-04312",[128],{"type":12,"tag":25,"props":129,"children":130},{},[131,133,138,139,142,144,150,151,157,158],{"type":23,"value":132},"The variable decorated with ",{"type":12,"tag":18,"props":134,"children":136},{"className":135},[],[137],{"type":23,"value":4},{"type":23,"value":68},{"type":12,"tag":70,"props":140,"children":141},{"type":100},[],{"type":23,"value":143}," be declared using the\n",{"type":12,"tag":18,"props":145,"children":147},{"className":146},[],[148],{"type":23,"value":149},"Input",{"type":23,"value":68},{"type":12,"tag":18,"props":152,"children":154},{"className":153},[],[155],{"type":23,"value":156},"Storage",{"type":23,"value":68},{"type":12,"tag":18,"props":159,"children":161},{"className":160},[],[162],{"type":23,"value":163},"Class",{"type":12,"tag":82,"props":165,"children":167},{"name":166},"VUID-PointCoord-PointCoord-04313",[168],{"type":12,"tag":25,"props":169,"children":170},{},[171,172,177,178,181],{"type":23,"value":132},{"type":12,"tag":18,"props":173,"children":175},{"className":174},[],[176],{"type":23,"value":4},{"type":23,"value":68},{"type":12,"tag":70,"props":179,"children":180},{"type":100},[],{"type":23,"value":182}," be declared as a\ntwo-component vector of 32-bit floating-point values",{"title":184,"searchDepth":185,"depth":185,"links":186},"",2,[],"markdown",1725732533045]