[{"data":1,"prerenderedAt":205},["ShallowReactive",2],{"ck6CkE3pIN":3},{"title":4,"description":5,"type":6,"xrefs":7,"body":8,"_type":204,"_id":4},"SamplePosition","Position of a shaded sample","builtins",[],{"type":9,"children":10,"toc":200},"root",[11,24,37,42,71,91],{"type":12,"tag":13,"props":14,"children":16},"element","h6",{"id":15},"sampleposition",[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 sub-pixel position of the sample being\nshaded.\nThe top left of the pixel is considered to be at coordinate (0,0) and\nthe bottom right of the pixel is considered to be at coordinate (1,1).",{"type":12,"tag":25,"props":38,"children":39},{},[40],{"type":23,"value":41},"If the render pass has a fragment density map attachment, the variable will\ninstead contain the sub-fragment position of the sample being shaded.\nThe top left of the fragment is considered to be at coordinate (0,0)\nand the bottom right of the fragment is considered to be at coordinate\n(1,1) for any fragment area.",{"type":12,"tag":25,"props":43,"children":44},{},[45,47,52,54,61,63,69],{"type":23,"value":46},"If a fragment shader entry point’s interface includes an input variable\ndecorated with ",{"type":12,"tag":18,"props":48,"children":50},{"className":49},[],[51],{"type":23,"value":4},{"type":23,"value":53},", ",{"type":12,"tag":55,"props":56,"children":58},"a",{"href":57},"/chapters/primsrast#primsrast-sampleshading",[59],{"type":23,"value":60},"Sample\nShading",{"type":23,"value":62}," is considered enabled with a ",{"type":12,"tag":18,"props":64,"children":66},{"className":65},[],[67],{"type":23,"value":68},"minSampleShading",{"type":23,"value":70}," value of 1.0.",{"type":12,"tag":25,"props":72,"children":73},{},[74,76,82,84,89],{"type":23,"value":75},"If the current pipeline uses ",{"type":12,"tag":55,"props":77,"children":79},{"href":78},"/chapters/primsrast#primsrast-samplelocations",[80],{"type":23,"value":81},"custom sample\nlocations",{"type":23,"value":83}," the value of any variable decorated with the ",{"type":12,"tag":18,"props":85,"children":87},{"className":86},[],[88],{"type":23,"value":4},{"type":23,"value":90},"\nbuilt-in decoration is undefined:.",{"type":12,"tag":92,"props":93,"children":95},"validity-group",{"name":94},"Valid Usage",[96,141,181],{"type":12,"tag":97,"props":98,"children":100},"validity-field",{"name":99},"VUID-SamplePosition-SamplePosition-04360",[101],{"type":12,"tag":25,"props":102,"children":103},{},[104,106,111,113,118,120,126,128,134,135],{"type":23,"value":105},"The ",{"type":12,"tag":18,"props":107,"children":109},{"className":108},[],[110],{"type":23,"value":4},{"type":23,"value":112}," decoration ",{"type":12,"tag":114,"props":115,"children":117},"normative",{"type":116},"must",[],{"type":23,"value":119}," be used only within the\n",{"type":12,"tag":18,"props":121,"children":123},{"className":122},[],[124],{"type":23,"value":125},"Fragment",{"type":23,"value":127}," ",{"type":12,"tag":18,"props":129,"children":131},{"className":130},[],[132],{"type":23,"value":133},"Execution",{"type":23,"value":127},{"type":12,"tag":18,"props":136,"children":138},{"className":137},[],[139],{"type":23,"value":140},"Model",{"type":12,"tag":97,"props":142,"children":144},{"name":143},"VUID-SamplePosition-SamplePosition-04361",[145],{"type":12,"tag":25,"props":146,"children":147},{},[148,150,155,156,159,161,167,168,174,175],{"type":23,"value":149},"The variable decorated with ",{"type":12,"tag":18,"props":151,"children":153},{"className":152},[],[154],{"type":23,"value":4},{"type":23,"value":127},{"type":12,"tag":114,"props":157,"children":158},{"type":116},[],{"type":23,"value":160}," be declared using\nthe ",{"type":12,"tag":18,"props":162,"children":164},{"className":163},[],[165],{"type":23,"value":166},"Input",{"type":23,"value":127},{"type":12,"tag":18,"props":169,"children":171},{"className":170},[],[172],{"type":23,"value":173},"Storage",{"type":23,"value":127},{"type":12,"tag":18,"props":176,"children":178},{"className":177},[],[179],{"type":23,"value":180},"Class",{"type":12,"tag":97,"props":182,"children":184},{"name":183},"VUID-SamplePosition-SamplePosition-04362",[185],{"type":12,"tag":25,"props":186,"children":187},{},[188,189,194,195,198],{"type":23,"value":149},{"type":12,"tag":18,"props":190,"children":192},{"className":191},[],[193],{"type":23,"value":4},{"type":23,"value":127},{"type":12,"tag":114,"props":196,"children":197},{"type":116},[],{"type":23,"value":199}," be declared as a\ntwo-component vector of 32-bit floating-point values",{"title":201,"searchDepth":202,"depth":202,"links":203},"",2,[],"markdown",1729612426962]